Associating Events to a Screen or a Control
Overview
An event is a specific action performed by the operator, which triggers actions within the application. These actions, which are defined by the programmer, are designated, in the MCL-Designer environment, as processes. See Adding and Editing Processes.
Every control includes a specific default event. In the case of the screen, there is no default event to start with so the necessary events must be added to it.
Not all controls accept events/processes - the "Display Line", "Display Shape", "SoftKey and "Gauge" controls are exceptions that do NOT contain an "Actions" tab.
List of Events available:
Change
Click
Hotkey
Ready
Validate
RFID (see The RFID Event)
Power
Timer - This event is an exception. It occurs due to the "lack of activity" on the part of the operator. It triggers an action (process) after a specified time frame.
Button # - This event is only associated to the "Advanced List Box" control, if the control contains button elements in its style.
Barcode (see Barcode)
NFC (see NFC)
Receive Message (see Receive Message)
For more information on the available events for screens or controls refer to:
To Add Events to a Screen or Control
Step-by-step
1. Go to the "Actions" tab of either screen or specific control (in the properties window).
2. Click (at the bottom of the "Actions" tab) and open the "Event" window.
If the
option is not available, it means the existing event is the only possibility for the selected element and all processes must be added to that event.
Ex: A "Display Image" control only accepts the "Click" event. Once it exists in the "Actions" tab, there are no more compatible events to add so the button is deactivated.
3. In the "Event" box, select an event from the drop-down list.
Remember that not all the events are available for each screen or control. The drop-down list varies according to the selected element (screen or control).
4. Click to apply your options.
All of the events (whether default or added ones) are displayed in the tree view (in the "Programs" module).
If you right-click an event, displayed in the tree view, you access the "Delete" option.
Double-clicking an event, in the tree view, opens the properties window of the element it is inserted in (screen or control), directly in the "Actions" tab. This enables the adding of processes to that event. See Adding and Editing Processes.