PDA

View Full Version : Events for built in Dialogs - using _SB_DIALOGNEXTID



NewsArchive
05-01-2012, 02:19 AM
Hi Friedrich,

I wanted to build my Ready To Install "extra" string during the OnInit
event for the Ready to Install dialog but found out it does not fire.
Also, it doesn't look like OnUpdate fires for the built-in dialogs.

I was able to work around it testing %_SB_DIALOGNEXTID% = $READYTOINSTALL$
inside the wizard loop.

Thought this might help someone else.

By building the extra info string all at once I can test each of the
variables that effect the output so if the user then decides to back and
then forward again I don't have to worry about what values were already
added.

It might be nice to have events OnInit and OnUpdate for the standard wizard
dialogs.

Thanks,
Rick

NewsArchive
05-01-2012, 02:20 AM
Hi Rick,

Only the "Custom Wizard Dialog" dialog type supports the $EVENT:ONINIT$,
$EVENT:ONREOPEN$ and $EVENT:ONUPDATE$ events.

Here is a quick-and-dirty demo on how to do this for the built-in (standard)
dialog type:

http://www.lindersoft.com/projects/RTI.zip

But of course, you can also use the "%_SB_DIALOGNEXTID% = $READYTOINSTALL$"
method. It's a perfectly valid option.

Friedrich

NewsArchive
05-02-2012, 01:32 AM
Hi Friedrich,

In the case I am working on I have more than one custom dialog and they
display conditionally. I do not want put my "Extra Info" logic in a bunch
of places where I make changes in multiple places when something changes. I
originally put the code in an sbi include file but I can't access the If
Feature script command in the sbi, so a bit of the logic was to be pushed
out into the script.
Once I thought of the Next Dialog idea I was able to keep all of the logic
in a single place for maintenance reasons and use all of the SB features.

Thanks,
Ric

NewsArchive
05-02-2012, 01:33 AM
Hi Rick,

Aha, okay. I understand. In this case "%_SB_DIALOGNEXTID% =
$READYTOINSTALL$" is the preferred method.

Friedrich