xButton.SetState

xButton.SetState ( 

string ObjectName,

number State = BTN_UP )

Example 1

xButton.SetState("TogglexButton1", BTN_DOWN);

Sets the "TogglexButton1" xButton object to the down state.

Example 2

xButton.SetState("Homer Donut 3", BTN_UP);

Sets the "Homer Donut 3" xButton object to the up state.

See also:  Related Actions