Welcome! Log In Create A New Profile

Advanced

Detect use of closing cross on window

Posted by Wilfried 
Wilfried
Detect use of closing cross on window
October 11, 2012 11:51AM
Hello,

how can i detect that a user clicked on the cross in the right top corner to close a window?


Thanks,
Markus K.
Re: Detect use of closing cross on window
October 11, 2012 12:50PM
In the windows' "Closing of"- Event you can handle the closing. It fires after the press of the upper right close button.
Allard
Re: Detect use of closing cross on window
October 11, 2012 12:50PM
Hi
The x ( cross)is a button with standaard a preset action to close the window. You can remove that and add codethat does the same like Window.close()

so you can write code into that section. ( Select the cross and click on “Code” )

In theory you can add code that does anything you want.

Regards

Allard
Paulo Oliveira
Re: Detect use of closing cross on window
October 11, 2012 12:51PM
Just create one button and define it as cancelation, when the user clicks the cross in the right top corner the code of the click of that button runs.

[doc.windev.com]
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: