Jump to content
uniGUI Discussion Forums
Sign in to follow this  
zilav

Closing application

Recommended Posts

Is there a proper way to close application if I have a "Quit" button?

- calling Close on MainForm

- MainModule.UniMainModule.Terminate

- anything else?

 

Share this post


Link to post
Share on other sites

UniApplication.Terminate('See you next time');
  • Upvote 1

Share this post


Link to post
Share on other sites

Yes there is - 

 

UniApplication.Terminate('GoodBye');  // to put the app in a closed state in the browser

PostThreadMessage(MainThreadID,wm_quit,0,0);  // will tell the main application to terminate 
 
Use only for testing though... or users will be able to terminate the server.exe

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×