TotalCross Forums
September 10, 2010, 06:52:08 am
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: TotalCross - the heaven of mobile application development
French
Spanish Latin
German
Portuguese Brazilian
Spanish Es
English
Home
Help
Search
Login
Register
TotalCross Forums
>
English Boards
>
Migration to TotalCross
>
onExit() method of MainWindow
Pages: [
1
]
« previous
next »
Print
Author
Topic: onExit() method of MainWindow (Read 840 times)
kasunt
Newbie
Posts: 24
onExit() method of MainWindow
«
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
Re: onExit() method of MainWindow
«
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
Re: onExit() method of MainWindow
«
Reply #2 on:
March 10, 2010, 09:52:32 pm »
Thanks a bunch that works =)
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
English Boards
-----------------------------
=> Litebase
=> Connectivity
=> Deployment
=> Migration to TotalCross
=> General
=> Suggestions
=> Moderator Announcements
=> Job Opportunities
-----------------------------
Portuguese Boards
-----------------------------
=> Banco de dados Litebase
=> Conectividade
=> Empacotamento
=> Migração para TotalCross
=> Geral
=> Sugestões
=> Anúncios do Moderador
=> Vagas de emprego
Loading...