| View previous topic :: View next topic |
| Author |
Message |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Fri Nov 21, 2003 9:29 pm Post subject: Dialog / Cancel the Alt-F4 switch |
|
|
Seeking "How To" stop a user from using ALT-F4 to close a splash screen.
All feedback invited. Thanks, Mike |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri Nov 21, 2003 10:15 pm Post subject: |
|
|
In your :evloop, check for the "CLOSE" event, if the close event has been triggered, ignore it.
| Code: |
:EVENTLOOP
WAIT EVENT
%E = @event()
IF %E
IF @equal(%E,CLOSE)
GOTO EVENTLOOP
ELSE
GOTO %E
END
END
GOTO EVENTLOOP
|
At this point, there are only two ways to close your program;
1. Within your own code, close the program when you are ready.
2. Using the windows task manager to kill the program.l
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Sat Nov 22, 2003 3:29 am Post subject: Thanks, Garrett |
|
|
| Thank you, Garrett, it works great!, nt |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
|
| Back to top |
|
 |
|