Events
On widgets, depending on type and characteristics, some of the following events can be available, to which you can assign one or more actions:
- onMousePressed: event called when mouse key is pressed
- onMouseReleased: event called when mouse key is released
- onMouseClicked: event called when mouse is clicked (pressed + released). Warning: pressed + release must take place both on the same widget, otherwise the clicked event won’t be executed.
- onMouseDragged: event called after the mouse has been pressed then moved by keeping it pressed.
- onDataChanged: event called up when changing displayed data. The following system variables can be accessed in the event: @@VALUE: value of data to be displayed. The value displayed can be changed by modifying the content. For example (if action = script): @@VALUE := @@VALUE / 10;
- onDataEnteredevent called up when the user changes data on the screen. The following system variables can be accessed in the event: @@VALUE: value set by the user @@OLDVALUE: value prior to setting By changing the value of @@VALUE, the data set by the user can be changed. For example (if action = script): @@VALUE := @@VALUE * 10; To ignore an entered data: @@VALUE = @@OLDVALUE;
- onFocusGained: event called up when the component receives the setting cursor (movement from another component)
- onFocusLost: event called up when the component loses the setting cursor (movement to another component)