xButton.SetState

xButton.SetState ( 

string ObjectName,

number State = BTN_UP )

Description

Sets the up/down state of an xButton object.

Note: This action is only effective on toggle xButtons. You can change an xButton's type (standard or toggle) by changing the Style setting in the xButton's properties.

Parameters

ObjectName

(string) The name of the xButton object.

State

(number) The new state of the xButton:

CONSTANT

VALUE

DESCRIPTION

BTN_UP

0

xButton is up (normal). (default)

BTN_DOWN

1

xButton is down (pressed).

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also:  Related Actions