Re: [Gambas-user] Form exit code when [X] clicked

2009-10-17 Thread bbb888
Thanks Kad that does the trick! Bruce -- View this message in context: http://www.nabble.com/Form-exit-code-when--X--clicked-tp25919887p25937554.html Sent from the gambas-user mailing list archive at Nabble.com. -- Com

Re: [Gambas-user] Form exit code when [X] clicked

2009-10-16 Thread Kad Mann
On Fri, 2009-10-16 at 17:44 -0700, bbb888 wrote: > I can get an exit code from a form shown with rtn = fm.ShowDialog() correctly > if the user uses an in-form exit such as a exit button : > > > PUBLIC SUB btExit_Click() > > ME.Close(60) > > END > > > > But if the user clicks on the [X] i

Re: [Gambas-user] Form exit code when [X] clicked

2009-10-16 Thread Kad Mann
On Fri, 2009-10-16 at 20:13 -0600, Dimitris Anogiatis wrote: > Hey Bruce, > > Does it work for a normal form (not a Modal one)? lol -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only dev

Re: [Gambas-user] Form exit code when [X] clicked

2009-10-16 Thread Dimitris Anogiatis
Hey Bruce, Does it work for a normal form (not a Modal one)? Regards, Dimitris On Fri, Oct 16, 2009 at 6:44 PM, bbb888 wrote: > > I can get an exit code from a form shown with rtn = fm.ShowDialog() > correctly > if the user uses an in-form exit such as a exit button : > > > PUBLIC SUB btExit_C

[Gambas-user] Form exit code when [X] clicked

2009-10-16 Thread bbb888
I can get an exit code from a form shown with rtn = fm.ShowDialog() correctly if the user uses an in-form exit such as a exit button : PUBLIC SUB btExit_Click() ME.Close(60) END But if the user clicks on the [X] in the titlebar all I get is 0 in rtn. Is there a way to trap the exit