TotalCross Forums
September 10, 2010, 06:52:08 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: TotalCross - the heaven of mobile application development
 
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: onExit() method of MainWindow  (Read 840 times)
kasunt
Newbie
*
Posts: 24


View Profile Email
« on: March 10, 2010, 06:41:24 pm »

Hi all,

Im trying to figure out how the onExit() method works because I have a MessageBox that im calling popupNonBlocking() on it. It doesnt cause the MessageBox to pop up ? This ofcourse used to work on Superwaba. How can i go about doing this ? All i'm trying to do is show a pop up message when the application exits. Any help is appreciated !
Logged
Fabio
Global Moderator
Full Member
*****
Posts: 182


View Profile Email
« Reply #1 on: March 10, 2010, 07:20:44 pm »

When you use popupNonBlocking to show a MessageBox the method execution is not interrupted, thus the application may be terminated before the message is shown.
You may use Vm.sleep to stop the execution of the method onExit for a few seconds, but if you want to make sure the user is notified before the application is closed, you should use popup instead.
Logged
kasunt
Newbie
*
Posts: 24


View Profile Email
« Reply #2 on: March 10, 2010, 09:52:32 pm »

Thanks a bunch that works =)
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!