+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Events in Loop Wizard

  1. #11
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Events in Loop Wizard

    Did you download the example (Chris3.zip) I developed for you? It demonstrates this scenario! You click NEXT on Dialog #3 and you decide whether to show hide Dialog #4.

    Friedrich

  2. #12
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Events in Loop Wizard

    No. %_SB_BUTTONID% is set to $NEXT_BTN$ after the user clicked NEXT. If the next dialog (to be displayed) is a custom wizard dialog, %_SB_BUTTONID% is also set to $NEXT_BTN$ when the $EVENT:ONINIT$ or $EVENT:ONREOPEN$ events are fired. And %_SB_BUTTONID% is set to $NEXT_BTN$ when a control (e.g. a checkbox or button) fires an event on a custom wizard dialog.

    We'll add this information to the documentation.

    Just curious, why do you handle %_SB_BUTTONID% at all?

    Friedrich

  3. #13
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Events in Loop Wizard

    Quote Originally Posted by Chris View Post
    If this is true, then I guess I need to set this (and other??) variables to "" at some point in the Loop Wizard?
    No, don't do this!

    Friedrich

  4. #14

    Default Re: Events in Loop Wizard

    Sorry, I read the Chris3.zip on the screen and thought I understood it. But now I have downloaded it I find it does exactly what I need -- THANKYOU --
    But I still don't understand it.

    How often does the Loop Wizard go round the loop? My guess is each time any button or control (eg checkbox) is clicked??

    What does CYCLE LOOP do? (PDF says it passes control to the top of the loop). My guess is "Top of the Loop" means it is then waiting for a button to be pressed before it goes round the loop again??



    >>> Just curious, why do you handle %_SB_BUTTONID% at all?
    Searched Forum for how to detect NEXT button. Found example which shows %_SB_BUTTONID% used. Thought that was the method I needed.

  5. #15
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Events in Loop Wizard

    For "standard" wizard dialogs, the Loop Wizard goes round the loop once when the Next or Back button is pressed.

    For "custom" wizard dialogs, the Loop Wizard goes round the loop when the Next or Back button is pressed -- and: 1.) if the "Disable EVENT:ONINIT" option is not marked, when the dialog gets "initialized", 2.) when the dialog is "re-displayed" (e.g. after a BACK/NEXT button combination), 3.) when a control fires an event (e.g. checkbox marked/unmarked).

    A Cycle Loop statement passes control immediately back to the top of the Loop. See attached screenshot. In this case, the password is not valid and the installer displays a message box. After that, it goes immediately back to the top of the Loop (and "HELLO WORLD!" is not displayed).

    HTH,

    Friedrich
    Attached Images Attached Images  

  6. #16

    Default Re: Events in Loop Wizard

    Thank you for your help.

  7. #17
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Events in Loop Wizard

    You are very welcome!!

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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