Page 1 of 1

button with action and setting of a variable?

Posted: Fri Jun 02, 2006 4:16 pm
by Nick
Hi,

I have a button that I would like to set the action to "Return from Dialog" and have it set a variable prior to returning so that I can know which button was pressed (I have multiple of these) and do some work in the script.

Is there any controls that allow for setting of an action and a variable at the same time?

I tried to use SpeedButton and RzBmpButton hoping that I would be able to tie a rule to the Down property. But, it looks like that property is never changed when the button is pressed. I have a rule that changes the text of an edit box, as a test, and it isn't changing.

Posted: Fri Jun 02, 2006 4:21 pm
by Nick
update:

Out out blind luck I found out that the "return from dialog" action actually sets the WIZARD variable to be the name of the button, thereby giving me just what I needed.

nice!