Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » Docking: How to call a callback on DockableCtrl's close
Docking: How to call a callback on DockableCtrl's close [message #26506] Thu, 06 May 2010 22:53 Go to next message
ktj9 is currently offline  ktj9
Messages: 17
Registered: April 2010
Promising Member
Hello,
I am wondering, without changing Docking source, how to call a callback when I close a dockable tab or dockable ctrl. It seems that Dockable::WhenState is always called by DockCont on any state change, and there is no way to differentiate what kind of state change. And I don't see a state change associated with closing a dockable.
Thanks!
Re: Docking: How to call a callback on DockableCtrl's close [message #26627 is a reply to message #26506] Mon, 17 May 2010 13:40 Go to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
This is how I'd do it:

When asigning the callback:
mydockablectrl.WhenState = THISBACK1(OnState, &mydockablectrl);

void OnState(DockableCtrl *d)
{
   if (d->IsHidden())
      // DockableCtrl has been closed
}
Previous Topic: Svg Painter
Next Topic: How to use GetCtrl(r,c) in GridCtrl ???
Goto Forum:
  


Current Time: Fri Mar 29 12:35:22 CET 2024

Total time taken to generate the page: 0.01445 seconds