Table Switchable
Switchable component: checkbox, radio or switch.
This is a simple Component which draws a checkbox, radio or switch, and handles click and Space key to (un)check, switch on/off.
Summary
Return type | Function and summary |
---|---|
boolean | OnChange(Dialog dlg, Switchable switch, boolean state) Function fired when state is switched. |
Function
Switchable.OnChange(Dialog dlg, Switchable switch, boolean state)
Function fired when state is switched.
Parameter | Type | Default | Description |
---|---|---|---|
dlg | Dialog | The MyrScript Dialog object | |
switch | Switchable | The switchable component | |
state | boolean | The new state of the switchable |
- Return
- boolean: Return
true
ornil
to confirm the state change,false
to cancel the change.