Home » Community » Newbie corner » Problems when using layouts
Re: Problems when using layouts [message #27173 is a reply to message #27171] |
Tue, 29 June 2010 17:36   |
|
281264 wrote on Tue, 29 June 2010 17:04 | 2.- So the conclusion is that it is better (from the stand point of C++ modularity) to have different “.lay” files, one for the “main window” and others for the respective dialogs.
|
I would say it is a matter of taste For example if you look at theide, which is pretty complex application, you'll see that there is only single layout file included in ide.h. The separation of modules is used only for .cpp files.
281264 wrote on Tue, 29 June 2010 17:04 | 3.- What is this?:
Result<<=(double)~dialogo.entrada_a*(double)~dialogo.entrada_b;
What is the role of ~ in the expression?
|
In Ctrl, operator~() is used as a shorthand for GetData() and operator<<=(Value v) for SetData(Value v). It can save you some typing and increase readability of the code.
Honza
|
|
|
Goto Forum:
Current Time: Mon Apr 28 08:50:52 CEST 2025
Total time taken to generate the page: 0.03573 seconds
|