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 » Derived Layouts Show/Hide & Run/Close in the Same Window
Re: Derived Layouts Show/Hide & Run/Close in the Same Window [message #37732 is a reply to message #37712] Tue, 06 November 2012 19:43 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1792
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Sorry nejnio,

Seems like I kind of misunderstood the problem, my mistake. Also, there were some mistakes in the code I posted, sorry for that too. I hope I got it all right this time Smile

Attached is a code of an example application allowing to dynamically change part of your layout, while keeping the "base" constant. It is not using inheritance, so it is not really derived layouts, but the design part stays the same and the general idea of not repeating the same thing over and over in each layout holds too. I believe that you also want to keep the state of the "base part" constant when switching the "variable parts".

The general idea is same as what I proposed in my last post, showing and hiding the parts as desired. I think it is quite easy to read the code, so I won't go in to details here... If you find something unclear, just ask Smile

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TabDlg Change Default Background Window
Next Topic: UserClass Layout Placeholder
Goto Forum:
  


Current Time: Sun Aug 24 22:27:11 CEST 2025

Total time taken to generate the page: 0.05817 seconds