Jump to content


Photo

Closing application


  • Please log in to reply
3 replies to this topic

#1 zilav

zilav

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 451 posts

Posted 06 November 2014 - 08:58 AM

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

- calling Close on MainForm

- MainModule.UniMainModule.Terminate

- anything else?

 


  • 0

#2 mohammad

mohammad

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 722 posts
  • LocationKufur Kassem, Palestine

Posted 06 November 2014 - 09:06 AM

UniApplication.Terminate('See you next time');

  • 1

#3 Farshad Mohajeri

Farshad Mohajeri

    Administrator

  • Administrators
  • 9980 posts

Posted 06 November 2014 - 06:02 PM

 

- calling Close on MainForm

- MainModule.UniMainModule.Terminate

 

 

Both have the same result.


  • 1

#4 Daryl McMurray

Daryl McMurray

    Member

  • uniGUI Subscriber
  • PipPip
  • 17 posts
  • LocationOntario, Canada

Posted 13 February 2018 - 06:20 PM

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

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users