Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
605
How to catch toggling of tab's dock state?
posted

I would like to be notified whenever the user has moved a pane or pane group between docked and floating states. With the AfterDockChange event I get dragged panes, and with AfterToggleDockState I get panes whose captions have been double-clicked. But if the user double-clicks a pane's tab rather than its caption, neither event is raised.

How can I trap double-clicking of a tab?

As an aside, I'm interested in the pane that moved and its new location, not the dock area it was formerly part of, so it's awkward that the event args give me the latter, forcing me to look up the pane of interest.

I'm using v9.2.

Thanks

Parents
  • 605
    posted

    No need to answer this one. The events do get raised as expected.

    When double-clicking a tab the event args report the DockableControlPane with a dock state of floating, which is inconsistent with all the other situations in which the events are raised, including double-clicking the floating pane's caption to return it to its former location in the tab group. But I can work around that.

     

Reply Children
No Data