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++ TheIDE » U++ TheIDE: Layout (Forms) Designer » Looking for a Panel Ctrl...
Re: Looking for a Panel Ctrl... [message #12987 is a reply to message #12986] Mon, 03 December 2007 11:44 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

Well it's quite easy to implement Smile
class PanelCtrl : public Ctrl
{
   void Enable(bool b)
   {
	Ctrl * ctrl = GetFirstChild();
	while(ctrl)
	{
            ctrl->Enable(b);
	    ctrl = ctrl->GetNext();
	}
   }
};

PanelCtrl panel;
panel.Add(droplist0);
panel.Add(droplist1);
panel.Enable(false);

Bad news is layout editor dosn't support visualisation of child<->parent relation, so you must add all control to panel manually.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Toggle button
Next Topic: Can't use mutators of custom widgets in Layout Designer
Goto Forum:
  


Current Time: Tue Jun 03 04:50:56 CEST 2025

Total time taken to generate the page: 0.02851 seconds