Indigo Rose Software

Go Back   Indigo Rose Software Forums > AutoPlay Media Studio 7.5 > AutoPlay Media Studio 7.5 Examples

Reply
 
Thread Tools Display Modes
  #1  
Old 10-17-2005
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
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
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software