O
orekin
Hi
The application I am working on has a starting screen with some
configuration choices and the following:
- OK button
- QUIT button
- x button in the Control/System menu box (top right corner)
The user may quit the application by pressing 'QUIT' or x, or the user
may continue with the application by pressing 'OK'. In both cases,
the form is closed.
You can prboably see where I am going here ... In the form closing
event, I want to be able to capture if the user has :
- pressed OK; or
- clicked x or clicked QUIT (both x and QUIT are handled exactly the
same way)
At the moment I am storing a boolean variable
'CloseRequestSentFromOKbutton' and it works, but surely there must be
a better way?
Thanks
Orekin
The application I am working on has a starting screen with some
configuration choices and the following:
- OK button
- QUIT button
- x button in the Control/System menu box (top right corner)
The user may quit the application by pressing 'QUIT' or x, or the user
may continue with the application by pressing 'OK'. In both cases,
the form is closed.
You can prboably see where I am going here ... In the form closing
event, I want to be able to capture if the user has :
- pressed OK; or
- clicked x or clicked QUIT (both x and QUIT are handled exactly the
same way)
At the moment I am storing a boolean variable
'CloseRequestSentFromOKbutton' and it works, but surely there must be
a better way?
Thanks
Orekin