onButtonUp - event of object PmiButtonTwo

The event fires on pressing the item 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 so far.
The button state can be obtained also by using the State property.
If pEvent.NextState = 1 Then
  ' transition to state 1
  ' transition to state 0
End If
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice