DefaultSingleCDockable: how can it prevent any drag-drop?
basically I am trying to make placeholders
which are moved by framework only
and not by user; hence the question;
DefaultSingleCDockable: how can it prevent any drag-drop?
basically I am trying to make placeholders
which are moved by framework only
and not by user; hence the question;
Completely disabling dragNdrop is hard. Be sure that you cannot achieve the same effect with a very restricive DockAcceptance before trying this solution:
Extend the class DefaultDockRelocator, override the methods “dragMousePressed”. Just do nothing if the Dockable is selected that you don’t want to move.
Extend DefaultDockControllerFactory, override “createRelocator”, return your new class.
Extend EfficientControllerFactory, override “createController”. Use your new factory from 2. to create the new DockController.
Use your factory from 3. to create a new CControl.
got it; thanks!
it feels like guides/common need a section: “how to extend docking-frames/common - by example”
I will post my examples here when done: http://code.google.com/p/docking-frames/