Home » U++ Library support » TopWindow&PopUp, TrayIcon » How to call a new window?
How to call a new window? [message #34448] |
Wed, 23 November 2011 00:58 |
lectus
Messages: 329 Registered: September 2006 Location: Brazil
|
Senior Member |
|
|
Hey guys!
I have a Main window that has layout.
I created another layout for a settings window. How do I call this window?
Thanks
|
|
|
Re: How to call a new window? [message #34451 is a reply to message #34448] |
Wed, 23 November 2011 07:26 |
|
lectus wrote on Wed, 23 November 2011 00:58 | Hey guys!
I have a Main window that has layout.
I created another layout for a settings window. How do I call this window?
Thanks
|
The window can be opened using MyWin.Run(). There are also other methods: RunAppModal(), Execute(), ExectueOK(), ExecuteCancel(), see the topwindow reference for details about all of them.
Best regards,
Honza
|
|
|
|
Re: How to call a new window? [message #34464 is a reply to message #34448] |
Wed, 23 November 2011 15:54 |
lectus
Messages: 329 Registered: September 2006 Location: Brazil
|
Senior Member |
|
|
Thanks!
But does this apply to Windows with layouts?
I tried:
WithMyDialogLayout<TopWindow> w;
CtrlLayout(w);
w.Run();
It seems to work.
But I don't know if this is the right way.
EDIT:
I think I got how it works:
WithMyDialogLayout<TopWindow> w;
CtrlLayoutOKCancel(w,"test");
if(w.ExecuteOK())
Exclamation("Selected ok");
Thanks for the information guys!
[Updated on: Wed, 23 November 2011 16:02] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Fri Mar 29 12:30:55 CET 2024
Total time taken to generate the page: 0.01289 seconds
|