Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 14 of 14
  1. #1
    Join Date
    Nov 2006
    Posts
    24

    Need Confirmation Message

    i need to be able to set a confirmation message asking if the user is sure thwey wish to exit my application, cant this be done?

  2. #2
    Join Date
    May 2005
    Posts
    1,115
    Yes, explanation is available in manual for that.
    It's one of the built-in functions and you define it in the global functions.

    (I'm not at home so I can't give you detailed info...)
    Never know what life is gonna throw at you.
    (Based on a true story.)

  3. #3
    Join Date
    Oct 2006
    Location
    Somewere over the rainbow
    Posts
    314
    do a search.. i know its already been done with an example posted

  4. #4
    Join Date
    Nov 2006
    Posts
    24
    i did do a search but i didnt find anything???

  5. #5
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    hmmm.... I did a search with these words: confirm exit

    here is the second hit:
    http://www.indigorose.com/forums/sho...t=confirm+exit

  6. #6
    Join Date
    May 2005
    Posts
    1,115
    Maybe should Tigg do a little Flash tutorial about search functionality...
    Never know what life is gonna throw at you.
    (Based on a true story.)

  7. #7
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Quote Originally Posted by bule View Post
    Maybe should Tigg do a little Flash tutorial about search functionality...
    lmao......
    Intrigued

  8. #8
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778

    Using EXIT from menu bar

    if e_ID == 300 then
    Pexit = Dialog.Message("Exit ?", "Do you wish to Exit ?", MB_YESNO, MB_ICONQUESTION);
    if Pexit == IDYES then
    Application.Exit(); end
    end


    I normally use the above code from a menu option.
    I hope this helps.
    Last edited by holtgrewe; 11-22-2006 at 04:54 PM.

  9. #9
    Join Date
    Nov 2006
    Posts
    24
    will these work when you press a button ? as i cant get it working .

  10. #10
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    If you put this code (from Worms' link) in the Global Functions, it will ask to confirm exit no matter how you exit, from a button, a menu, by clicking the X etc.

    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
    The neat thing about this is you can have an exit button on every poage for example but you need this one pioece of code.
    Dermot

    I am so out of here

  11. #11
    Join Date
    Nov 2006
    Posts
    24
    ok i will try again,

  12. #12
    Join Date
    Nov 2006
    Posts
    24
    nope still not working for me :(

    i have tried using it on a button ( this button exits the program ) but nothing happens, i have tried for hours and hours, please help

  13. #13
    Join Date
    Jul 2002
    Location
    Just South of Reality
    Posts
    778

    Dialog.Message

    Try this scripting in the On Click option on the button:

    Pexit = Dialog.Message("Exit ?", "Do you wish to Exit ?", MB_YESNO, MB_ICONQUESTION);
    if Pexit == IDYES then
    Application.Exit();
    end

    Dermot's example should work globally for you, whenever you call his function.

    My attached example will not work globally for you as is, and would need to be coded for each button or image in your project for 'exiting'.

    I hope this works for you.
    Last edited by holtgrewe; 11-24-2006 at 12:14 PM. Reason: typo

  14. #14
    Join Date
    Nov 2006
    Posts
    24
    thank you this worked really well.

Similar Threads

  1. Asking the User for Confirmation Before Exiting
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 1
    Last Post: 12-11-2005, 06:53 PM
  2. Changing message text
    By thormel in forum Setup Factory 6.0
    Replies: 2
    Last Post: 08-04-2003, 05:09 AM
  3. HOWTO: Prompt the User for Confirmation Before Exiting
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 09:50 AM
  4. INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 08:38 AM
  5. Packages and If Statements
    By Medlir in forum Setup Factory 6.0
    Replies: 4
    Last Post: 05-09-2002, 03:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts