another question today: is there a possibility to fake a drag gesture to activate drag&drop of dockables?
I have a list of available dockables in my application menu, where the user can select from. Well, sometimes it is not so easy to choose the right location for adding the new dockable into my content-area. So, I would like to manually initiate a drag, after the user selects the menu item, such that the user can directly choose the location where to drop the new dockable.
There is an interface for remotely dragging and dropping Dockables. It was originally intended to drag and drop Dockables that are already visible. If you can wait until the weekend I’ll modify the interface a bit in order to get it working with invisible Dockables as well.
Otherwise you would need to create some fake-visibility for the Dockable in order to get the interface working. For example adding the Dockable to some (invisible, temporary) StackDockStation should already be enough.
will this interface also provides the nice rectangles where the dockables can be placed?
I understood this interface in such a way, that I have to provide the coordinates by my own, where the dockable will be dropped. But I like to have a functionality, thats uses all the dnd possibilities of your framework, like highlighting possible drop locations etc.
Well, I can try to paint these things by my own to, e.g., the glasspane, but I think, I need some hints from you, how and where you solved this issue in your code.
You provide the interface with the current position of the mouse on the screen, everything else works as if the mouse would really be there, including hover effects and preview windows. The “real” DnD mechanism and the interface share the same code.