Why program exited after setting window's visible=false ?

General help: new users, installing the Ecere SDK, using the IDE to compile and run applications.
Post Reply
nicktick
Posts: 17
Joined: Tue Nov 13, 2012 8:34 pm

Why program exited after setting window's visible=false ?

Post by nicktick »

how to prevent program exit after setting property of window visible=false?
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: Why program exited after setting window's visible=false

Post by jerome »

Hi nicktick,

The default implementation of Main() in the GuiApplication class is used if you do not define a class inheriting off GuiApplication. This implementation will keep the application running as long as a window is created and visible. To prevent the application from exiting, simply make sure another window is up before returning to GuiApplication, or override GuiApplication::Main() to use a different criteria for exiting the application.

Regards,

Jerome
Post Reply