QUOTE (flattspott @ Feb 11 2004, 11:46 PM) |
How do we go about using the Dialog elements: like the test button for example. What needs to be done to get it to to do some something?
Are we spose to use something like IF CrtlID{101} == "1" GOTO
Oh, yeah the dialog looks pretty great for being newborn and all |
In the event handler, you can use a switch statement:
CODE |
:EVentHandler SWITCH %UIObjectHandle% CASE MyDialog ; Now look at the control id (UITriggerID) SWITCH %UITriggerID% CASE 1 SWITCH %UIEventID% CASE 1 ...SOMECODEHERE... ENDCASE ENDSWITCH ENDCASE ENDSWITCH ENDCASE ENDSWITCH
|
It doesn't have to be that complicated, depending on how you number your controls (if you number them all uniquely, even among different dialogs, you could skip the UIObjectHandle stuff.)
Another technique might be to put a LABEL in the XML of the dialog controls to handle specific control's events, and extract that.