SetButtonState method: Utils class
Syntax
SetButtonState(&ButtonField, NewState)
Description
Use the SetButtonState method to set a button field as a "stateful" button (that is, as a toggle or on/off button); use this method to initialize the button state prior to initial display. Use this method with image-only buttons or with buttons that have the psc_button-simple style applied.
Parameters
| Parameter | Description |
|---|---|
|
&ButtonField |
Specifies the button field as a Field object. |
|
NewState |
Specifies the new state as a Boolean value. |
Returns
None
Example
/* Get the &oToggleButtonField Field object first */
(create PT_PAGE_UTILS:Utils()).SetButtonState(&oToggleButtonField, False);