Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » App window does not show up when run in Run_options/Console
Re: App window does not show up when run in Run_options/Console [message #17867 is a reply to message #17866] |
Mon, 01 September 2008 00:00 |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
I can (maybe) help with your GUI problems:
1- The problem with the Null value is caused by not having a Rejector set for the window. Normally this is assigned by CtrlLayoutOKCancel, CtrlLayoutCancel or CtrlLayoutExit so usually this isn't a problem. There are three ways around the problem I can think of:
Add an exit button and call CtrlLayoutExit.
Assign a rejector.
Rejector(*this, IDCANCEL);
Don't call Run on the main window (assuming that is the one causing the problem).
window.OpenMain();
EventLoop();
2- Key events propagate up if not handled by a child ctrl, so you can pick up the K_RETURN event in you main window (which makes more sense anyway)
|
|
|
Goto Forum:
Current Time: Fri May 17 04:46:44 CEST 2024
Total time taken to generate the page: 0.01635 seconds
|