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 » Community » Newbie corner » Switching layout inside class
Re: Switching layout inside class [message #48443 is a reply to message #48442] Tue, 04 July 2017 11:17 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1093
Registered: August 2007
Senior Contributor
Hello,

Traditional U++ way to do what you want to do is to use a ParentCtrl (It is basically Ctrl but used for grouping other ctrls. So the same rules for Ctrl apply to ParentCtrl.):
OnClickButton1()
{
    WithLayout1<ParentCtrl> layout1;
  //...
}

OnClickButton2()
{
    WithLayout2<ParentCtrl> layout2;
  //...
}


Best regards,

Oblivion


[Updated on: Tue, 04 July 2017 11:19]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: cc1plus crash
Next Topic: Adding Tab and Slaves to a TabCtrl
Goto Forum:
  


Current Time: Mon Apr 29 16:27:46 CEST 2024

Total time taken to generate the page: 0.01659 seconds