Supported Events

The functions designed on the Function Builder can be attached to the available Infinity objects and triggered by the various events raised by these objects. You can add Script, Screen and Control functions to events as described below. There is also the additional global event GlobalExecute.

Each control has its own "canvas", onto which you can define a function for multiple events the control can raise. Thus, you can build an "action" function that can contain multiple code blocks for each of the events that can be triggered by the control it is attached to. E.g., for a Script control, Start, End and CodeCall event handlers can be defined in the same function to run different chunks of code. By having a single function per control you can see all the code associated with it at a glance.

Images of these events can be seen on the Events topic .

Script

The script functions can be defined and edited by selecting the Perform an action... in the 'Settings' tab of the Script Properties:

Screen

The screen functions can be defined and edited by selecting the Add Function action in the 'Action' section of the Screen Properties.

Controls

The control functions can be defined and edited for the following events by either right-clicking on a control and selecting the Add/Edit Function options, or via the Control properties window.

Event Supported Controls Description
onChange Browser, Checkbox, CheckedListbox, Combobox, DataGrid, DatePicker, DateTime, Listbox, NumericSelect, RadioButton, WebService

Called when the user changes the value of the control

Note: Τhe Βrowser control will call an onChange event whenever it gets a DocumentCompleted event from the browser.

onCheckedChange DataGrid Called when a checkbox columns ‘checked state’ changes
OnClick Button, Browser, DataGrid, Hotspot, Image, Label, TextBox, Timer

Called when the user clicks the control

onDoubleClick DataGrid

Called when the user double-clicks a row shown in the control

onKeyPress

Combobox, Textbox

Called when a key is pressed

onExit All controls

Called when a control loses focus

OnFocus All

Called when a control gets focus