How to drag the splitter windows in doc/view application
-
I divide my frame window into two parts by using splitter window(pane1,pane2). Now i want to drag pane1 to pane2 place in the frame. How can i implement this.Please help me... ganesh
-
I divide my frame window into two parts by using splitter window(pane1,pane2). Now i want to drag pane1 to pane2 place in the frame. How can i implement this.Please help me... ganesh
Anything's possible :laugh: I can't write it for you, but I have used placeholder "view" windows as panes in a splitter window. The place holder window has two main jobs: Keeping a pane in the splitter, and resizing the actual pane on top of itself. To control flicker, the placeholder frame should only erase its background if there's not an actual pane on top of it. You can get as fancy as you want with the drag and drop. It's the same as any drag and drop - Detect mouse click, hittest to see if the cursor is in a drag area of the window, move the window until the mouse button released, and place the window at the destination. I hope this made sense and helps a bit. Mark
"Go that way, really fast. If something gets in your way, turn."