Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6

Thread: dialogue box

  1. #1
    Join Date
    Nov 2004
    Posts
    14

    Lightbulb dialogue box

    Can you have a dialogue box ask a question and based on the users response jump to a specific page?

    Example:

    The user click on the Forms button, a dialogue box appears and asked the question.

    Are you a Graduate or Undergraduate?

    The user can click the appropriate button or icon.

    Thanks! Rookie…

  2. #2
    Josué Alba Guest
    Quote Originally Posted by rookie
    Can you have a dialogue box ask a question and based on the users response jump to a specific page?

    Example:

    The user click on the Forms button, a dialogue box appears and asked the question.

    Are you a Graduate or Undergraduate?

    The user can click the appropriate button or icon.

    Thanks! Rookie…
    Just add this code to the selected Button
    Code:
    answer = Dialog.Message("Title of the Dialog", "The question you want", MB_YESNO, MB_ICONQUESTION, MB_DEFBUTTON1);
    
    if answer ~= "CANCEL" then
             Page.Jump("Page2") --this are the graduated
             else
                       Page.Jump("Page3") --this are the ungraduated
    end

  3. #3
    Join Date
    Nov 2004
    Posts
    14
    Awesome…thanks!!
    Rookie

  4. #4
    Join Date
    Nov 2003
    Location
    Salzburg / Austria
    Posts
    312
    You can use Action "Dialog.Message"

    Text="Are you a Graduate"
    Type=MB_YESNO
    ResultVariable=result

    Button : 'On Click'
    result=Dialog.Message("Question #023", "Are you a Graduate?", MB_YESNO, MB_ICONQUESTION, MB_DEFBUTTON1);
    if result==IDYES then
    Page.jump("Page1")
    else
    Page.jump("Page2")
    end


    Stefan_M
    "With a rubber duck, one's never alone."

    Douglas Adams, The Hitchhiker's Guide to the Galaxy

  5. #5
    Join Date
    Nov 2004
    Posts
    14
    Thanks...rookie

  6. #6
    Join Date
    Nov 2004
    Posts
    14

    dialogue box 2

    This works great…how do I get the buttons to display something different than yes or no?


    answer = Dialog.Message("Title of the Dialog", "The question you want", MB_YESNO, MB_ICONQUESTION, MB_DEFBUTTON1);

    if answer ~= "CANCEL" then
    Page.Jump("Page2") --this are the graduated
    else
    Page.Jump("Page3") --this are the ungraduated
    end

    Rookie...

Similar Threads

  1. Dialogue Box for Reboot after Uninstalling?
    By Kai in forum Setup Factory 6.0
    Replies: 4
    Last Post: 12-08-2003, 04:26 AM
  2. HOWTO: Display Conditional Text Based Upon a List Box Selection
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-15-2002, 10:54 AM
  3. OK Dialogue box - Bug or normal?
    By kpsmith in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 09-11-2002, 01:26 PM
  4. Packages and If Statements
    By Medlir in forum Setup Factory 6.0
    Replies: 4
    Last Post: 05-09-2002, 03:51 PM
  5. Yes/No Dialogue Box
    By JMS3 in forum AutoPlay Menu Studio 3.0
    Replies: 6
    Last Post: 11-11-2001, 04:48 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