Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Checking if a user has clicked on the main window close button

Author
Message
xMystik
21
Years of Service
User Offline
Joined: 29th Jun 2003
Location:
Posted: 20th Oct 2003 12:42
Hi

I'm making a windowed app using dbp and I've noticed that when someone uses the close window button none of my exit code runs.

Is there any way to check if the user has clicked on the X button (close button at top right of window) so that I can remove any temp files etc that I have created?

I'm using the Blue GUI and Menu DLL so there may be a way to do this using that.

Any help appreciated.

Steve.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 20th Oct 2003 15:11
That's something that you could suggest to Rob - he could easily intercept the message for the close button.

Something like:
CAPTURE CLOSE GADGET - to get control from DBPro
RELEASE CLOSE GADGET - to return control to DBPro

and using the standard MESSAGE MSG() function to detect the close message.
xMystik
21
Years of Service
User Offline
Joined: 29th Jun 2003
Location:
Posted: 20th Oct 2003 15:31
Thanks for the reply.

I just wanted to check there was not a feature in Dark Basic to already do this before I contact Rob. Commands like that would do the trick.

Cheers

Steve.

Login to post a reply

Server time is: 2024-09-21 05:34:39
Your offset time is: 2024-09-21 05:34:39