State - property of the PmgButtonState object
Description:
State of the two-state button (0 or 1).
Note:
Property access
for read and write.
The default value of this property is defined in the "
Button state" configurator of this object.
If it is written into this property and if this property is linked to the data binding
PP,
AP,
SP,
OP or
GP, then this value is transferred also into the source of this data binding.
The button state can be read directly in the
onButtonUp event from the
pEvent.State property.
This property is also functional in
Web panels.
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oBtnState = pMe.Items("/BtnState");
var nState = oBtnState.State;
// Reading from the property
oBtnState.State = 1;
// Writing into the property
Dim oBtnState
Set oBtnState = pMe.Items("/BtnState")
Dim nState
nState = oBtnState.State
' Reading from the property
oBtnState.State = 1
' Writing into the property