Button.SetState

Button.SetState ( 

string ObjectName,

number State = BTN_UP )

Description

Sets the up/down state of a button object.

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

Parameters

ObjectName

(string) The name of the button object.

State

(number) The new state of the button:

CONSTANT

VALUE

DESCRIPTION

BTN_UP

0

Button is up (normal). (default)

BTN_DOWN

1

Button is down (pressed).

Returns

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

See also:  Related Actions