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
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
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
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.
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
Thank you for your help.
You are very welcome!!
Friedrich
There are currently 1 users browsing this thread. (0 members and 1 guests)