Reply to Thread

Post a reply to the thread: Events in Loop Wizard

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 06-13-2012, 05:16 AM
    linder

    Re: Events in Loop Wizard

    You are very welcome!!

    Friedrich
  • 06-13-2012, 04:45 AM
    Chris

    Re: Events in Loop Wizard

    Thank you for your help.
  • 06-13-2012, 04:17 AM
    linder

    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
  • 06-13-2012, 03:41 AM
    Chris

    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.
  • 06-13-2012, 12:06 AM
    linder

    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
  • 06-13-2012, 12:05 AM
    linder

    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
  • 06-12-2012, 11:39 PM
    linder

    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
  • 06-12-2012, 12:34 PM
    Chris

    Re: Events in Loop Wizard

    >>> click NEXT, the variable %_SB_BUTTONID% returns $NEXT_BTN$.

    It seems the variable %_SB_BUTTONID% is set to $NEXT_BTN$ even before the each dialog appears, even if I set it to nothing in between.
    So my test "If variable %_SB_BUTTONID% equals $NEXT_BTN$" is always true, which somewhat lessens its usefulness :-(

    (Though it also DOES get triggered when I DO press the Next button :-)
  • 06-12-2012, 12:24 PM
    Chris

    Re: Events in Loop Wizard

    I have been playing with the example Custom dialog Demo 1
    and I seem to find that the variable %_SB_BUTTONID% retains its value from one Dialog to the next.

    >> click NEXT, the variable %_SB_BUTTONID% returns $NEXT_BTN$.

    I guess this makes sense since it is just a variable rather than an Event.
    If this is true, it probably explains all the problems I have been having :-)
    If this is true, then I guess I need to set this (and other??) variables to "" at some point in the Loop Wizard?
  • 06-12-2012, 09:51 AM
    Chris

    Re: Events in Loop Wizard

    Perhaps I should just ask one question per post :-)

    If I have two dialogs, Dialog1 and Dialog2,

    What event or variable do I use so that when user clicks NEXT on Dialog1
    I can decide whether to show or hide Dialog2 ?
This thread has more than 10 replies. Click here to review the whole thread.

Posting Permissions

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