Ecere SDK/eC Forums • View topic - Why program exited after setting window's visible=false ?




Ecere SDK/eC Forums

Ecere Developers Community

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.

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

Postby nicktick » Mon Sep 23, 2013 4:31 am

how to prevent program exit after setting property of window visible=false?
nicktick
 
Posts: 17
Joined: Tue Nov 13, 2012 8:34 pm

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

Postby jerome » Mon Sep 23, 2013 12:03 pm

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
jerome
Site Admin
 
Posts: 623
Joined: Sat Jan 16, 2010 11:16 pm


Return to General Help

Who is online

Users browsing this forum: No registered users and 2 guests