281264 Messages: 272 Registered: June 2010 Location: Spain
Experienced Member
Sergey,
Thanks a lot. I tried your proposal out and I have some question:
1.- Apparently, when the “Cancel” button is pressed in the dialog (in other words, when the user chooses not to do anything), the multiplication in the TopWindow is performed (which is something that shouldn’t ). How to avoid this? This question is related with the role of CtrlLayoutOKCancel: what is actually doing this function? How to control whether the user has pressed ok or cancel and, therefore, actuate accordingly in the TopWindow?
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.