Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

TLMDDockPanel: OnDock / OnUndock events?

Is there anything similar to an OnUndock event for the TLMDdockPanel?
If not, where in the TLMDdockPanel code could I create it?
I need to know when a panel is undocked (right after it happens) from the dockingsite, and LMDDockSite.UnDock never happens on that case.

Comments

  • 4 Comments sorted by Votes Date Added
  • Hi,

    OnUndock event works in non drag-content mode; for example in VS 2005 style. In drag-content mode, where a panel is undocked at the drag start, its impossible to make it work.

    You can add notification at the following point: in the TLMDDragObject.Init method after the following lines: 

    FDragForm.ActivateOnNextShow; // Before DockControl.
    FDragForm.Site.DockControl(Control);
    FDragForm.SetDraggingMode(True, False);
  • Thanks, I think that is exactly it.
    I'll give it a try and let you know how it behaved.

Sign In or Register to comment.