The Add Trigger dialog helps you associate an event (also called a trigger) with an object in the AppBuilder (.w) file. This option is available only with the AppBuilder (.w) files.
You can access this wizard from the
or right-click on the ABL Editor and select from the context menu.The Add Trigger wizard includes the following controls:
Widget | Select an object from the drop-down to which you want to add trigger. This list contains all the objects that are present on the current design window. |
Event category | Select an event category from the drop-down. This lists contains
the following event categories:
|
Event name | Select an event name from the drop-down. This list contains the event names based on the selection you make in the Widget and Event category drop-downs. |
Define key (Key label) | Enter a label for the keyboard event such as
F1 or F2. Note: This option is available when you specify Keyboard
Events in the Event category
drop-down.
|
Key function | Displays the pre-defined function name associated with the key
label you have entered in the Key label field
such as Help for F1 or
GO for F2. If
there is no pre-defined function associated with the specified
key label, then the same key label text is displayed in the
Key function field.
Note: This option is available when you specify Keyboard Events
in the Event category
drop-down.
|
Generate code by | Allows you to generate the trigger code by either the
Key label or Key
function. Note: This option is available
when you specify Keyboard Events in the Event
category drop-down.
|
Generate | Generates the trigger code for the selected object and inserts in the (.w) procedure file. |
Cancel | Select to ignore your changes and exit the trigger wizard. |