onButtonUp - event of object PmiButtonTwo

The event fires on pressing the button by the keyboard or the mouse.
pMe(Object) Reference to the graphic item where the event rises.
pEvent(Object) A referrence to object describing detailed information about the specific event.
pEvent.State - (Long) Original button state
pEvent.NextState - (Long) Next button state. It is preset by the system to the state value opposite to the State state. By changing this preset value it is possible to suppress toggling the state if it isn't desirable (e.g. the action failed and that's why it isn't desirable to toggle the button state).
This event will be called only if the Control enabled configurator is checked.
This event is also functional for Web panels. Writing into the pEvent.NextState property is not functional for the Web panel so far.
The button state can be obtained also by using the State property.
JavaScriptVBScriptSelect and copy to clipboard

if (pEvent.NextState == 1)
  //transition to state 1
  //transition to state 0
PROMOTIC 8.3.29 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice