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 » Multiple window project advice,examples? (Visual designer layouts and navigation between all.)
Re: Multiple Layout (forms) project examples? [message #44339 is a reply to message #44337] Tue, 24 February 2015 09:26 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
Edward wrote on Mon, 23 February 2015 23:25
Should each layout (eg. form1.lay) have it's own corresponding header file (eg, form1.h)?


Well, that is completely your decision. You can have 3 headers, you can put all struct definitions into single header, or you can even even avoid header and put struct (or class) into .cpp.

Does not really matter. It is all same as any other struct/class in C++, same rules apply here.

There is nothing magic about layouts. Layout, as defined in designer (and included somewhere) practically does nothing else than define a templates that contains all widgets as member variables and a method that places them on parent widget (that is the task of CtrlLayout method). You use this template to declare your own struct/class that then contains all widgets.

I guess you are confused because the whole system is much simpler than you think...
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Layout Designer, Code Generator : some switch options are hidden
Next Topic: Layout Designer causes compile errors
Goto Forum:
  


Current Time: Wed Jun 11 08:35:31 CEST 2025

Total time taken to generate the page: 0.04404 seconds