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 » U++ Library support » U++ Widgets - General questions or Mixed problems » What is ParentCtrl?
Re: What is ParentCtrl? [message #19894 is a reply to message #19885] Fri, 30 January 2009 12:06 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
The only major differnce to Ctrl is that it ignores mouse actions and is transparent.

So you can use ParentCtrls as containers, but if you want layers then you have to handle the switching yourself by Hiding/Showing the containers:
WithPage1<ParentCtrl> page1;
WithPage2<ParentCtrl> page2;
....
CtrlLayout(page1);
CtrlLayout(page2);
Add(page1);
Add(page2);
page2.Hide();

virtual bool Key(dword key, int count) {
   if (key == K_CTRL_S) {
      page1.Show(!page1.IsShown());
      page2.Show(!page2.IsShown());
      return true;
   }
   return false;
}
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to define hot-keys not associated with any menu?
Next Topic: EditString validation
Goto Forum:
  


Current Time: Sat Jun 08 06:54:16 CEST 2024

Total time taken to generate the page: 0.02426 seconds