|
#1
|
||||
|
||||
|
Example: Prompt the user for confirmation before exiting
Hello,
Originally posted by Worm, use this technique to prompt your users to confirm they want to exit before your application actually closes. The following function is automatically called whenever the close (x) button is pressed, or Application.Exit is used. For more information, please consult our online help file. Code:
function QueryAllowProjectClose()
result = Dialog.Message("Exit Application?", "Would you like to exit the application?", MB_YESNO, MB_ICONEXCLAMATION, MB_DEFBUTTON1);
--the no button was pressed
if result == 7 then
--cancel exit
return false;
else
--allow exit
return true;
end
end
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Asking the User for Confirmation Before Exiting | Desmond | AutoPlay Media Studio 5.0 Examples | 1 | 12-11-2005 07:53 PM |
| Prompt User to run Program after Installation | OHDev | Setup Factory 6.0 | 8 | 10-13-2005 01:25 PM |
| How do I get the exit status of a program? | ahewgill | AutoPlay Media Studio 5.0 | 2 | 07-22-2004 04:46 PM |
| HOWTO: Prompt the User for Confirmation Before Exiting | Support | AutoPlay Media Studio 4.0 Examples | 0 | 10-03-2002 10:50 AM |
| Win 2000 user privileges issue | ibrod | Setup Factory 6.0 | 2 | 12-18-2001 11:05 AM |
All times are GMT -6. The time now is 03:13 AM.








Linear Mode

