type_="set"

Using type_="set" creates a button that sets the value of one or more variables defined by the containing <dynamic> tag.

Syntax

<dynamic variable="">
    <widget class_="button" type_="set" value_="@var" 
     newvalue_="[VALUE]" text_="[BUTTON_NAME]" 
     valueSUFFIX_="[SUFFIX]" newvalueSUFFIX_="[SUFFIX_VALUE]"/>
</dynamic>

Attributes for type_="set"

value_
Accepts a variable defined in the containing <dynamic> element. Variable is set upon the clicking of the button.
newvalue_
Accepts any value. Value is assigned to the variable provided to value_.
valueSUFFIX_
Accepts additional variables defined in the containing <dynamic> element. Values can be assigned to these variables with the same button press.
newvalueSUFFIX_
Accepts any value. Specifies the value to be assigned to the variable in valueSUFFIX_ with the corresponding suffix.

Example for type_="set"

<dynamic larry="Nyuck" moe="nyuck" curly="nyuck">
    <widget class_="button" type_="set" text_="Set values"
     value1_="@larry" newvalue1_="Why" value2_="@moe" newvalue2_="I"/>
    <widget class_="text" text_="{@larry}"/>
    <widget class_="text" text_="{@moe}"/>
    <widget class_="text" text_="{@curly}"/>
</dynamic>