Standard Events

The events listed here are standard events that apply to many different items. Items which have a standard event only include the event name in their event table - please use the entry here to read about the event.

Event Description
evAfter

Sent to a field when there is a chance it will cease to be the target field. For the JavaScript client, the data must also have changed

pEventCode The event code
pNextCode The event code to follow the evAfter
pClickedField A reference to the field which was clicked
pClickedWindow A reference to the field or window which was clicked
pMenuLine A reference to the menu line which was selected
pCommandNumber The Omnis command number selected from a built-in menu
pRow A reference to the list row
evBefore

Sent to a field when it becomes the target field

pEventCode The event code
pRow A reference to the list row
pLineNumber The line number in the list
evCanDrop

Sent to a field to test whether it can accept a drop

pEventCode The event code
pDragType The type of data being dragged (one of the kDrag... constants)
pDragValue The value being dragged
pDragField A reference to the field being dragged
evClick

Notification of a click on a button or field

pEventCode The event code
pRow A reference to the list row
pLineNumber The line number in the list
evClipChangedData

Sent to the field when the clipboard changed the data

pEventCode The event code
evDisabled

Sent to a field when it has been disabled

pEventCode The event code
evDoubleClick

Notification of a double click on a button or field

pEventCode The event code
pRow A reference to the list row
pLineNumber The line number in the list
evDrag

Sent to a field when its contents are about to be dragged

pEventCode The event code
pDragType The type of data being dragged (one of the kDrag... constants)
pDragValue The value being dragged
evDragBorder

The user has possibly resized the field (and therefore other fields in the same parent) using the drag border

pEventCode The event code
evDragFinished

Sent to the dragged field after a drag and drop operation has been completed or cancelled

pEventCode The event code
evDrop

Sent to a field when a drop occurs

pEventCode The event code
pDragType The type of data being dragged (one of the kDrag... constants)
pDragValue The value being dragged
pDragField A reference to the field being dragged
evEnabled

Sent to a field when it has been enabled

pEventCode The event code
evExecuteContextMenu

Sent to a field or remote form when a context menu item is selected

pEventCode The event code
pCommandID The command ID of the selected remote menu item
pClickedField A reference to the field which was clicked
pPosition The position of the menu within the control e.g. if the menu belongs to a tab, the tab number of the tab. Zero if position information is not relevant. (JavaScript client only)
evHidden

Sent to a field when it has been hidden

pEventCode The event code
evHScrolled

Sent to a field when it is scrolled horizontally

pEventCode The event code
evKey

Sent to the target field when a key is pressed

pEventCode The event code
pKey The key pressed
pSystemKey The system key pressed
evMouseDouble

Sent to a field when the left button is double clicked inside its border

pEventCode The event code
evMouseDown

Sent to a field when the left button is clicked inside its border

pEventCode The event code
pMouseX Mouse x coordinate
pMouseY Mouse y coordinate
pMouseHwnd Window identifier of the hwnd receiving the mouse event; the mouse coordinate parameters are relative to this hwnd
evMouseEnter

Sent to a field when the mouse enters its border

pEventCode The event code
pRow A reference to the list row
pLineNumber The line number in the list
evMouseLeave

Sent to a field when the mouse leaves its border

pEventCode The event code
pRow A reference to the list row
pLineNumber The line number in the list
evMouseUp

Sent to a field when the left button is released

pEventCode The event code
pMouseX Mouse x coordinate
pMouseY Mouse y coordinate
pMouseHwnd Window identifier of the hwnd receiving the mouse event; the mouse coordinate parameters are relative to this hwnd
evOpenContextMenu

Sent to a field or a remote form or a window when a context menu is about to open

pEventCode The event code
pContextMenu A reference to the menu instance or remote menu instance that is about to pop up as a context menu
pClickedField A reference to the field which was clicked
pPosition The position of the menu within the control e.g. if the menu belongs to a tab, the tab number of the tab. Zero if position information is not relevant. (JavaScript client only)
evRMouseDouble

Sent to a field when the right button is double clicked inside its border

pEventCode The event code
evRMouseDown

Sent to a field when the right button is clicked inside its border

pEventCode The event code
pMouseX Mouse x coordinate
pMouseY Mouse y coordinate
pMouseHwnd Window identifier of the hwnd receiving the mouse event; the mouse coordinate parameters are relative to this hwnd
evRMouseUp

Sent to a field when the right button is released

pEventCode The event code
pMouseX Mouse x coordinate
pMouseY Mouse y coordinate
pMouseHwnd Window identifier of the hwnd receiving the mouse event; the mouse coordinate parameters are relative to this hwnd
evSent

Sent when a field value has changed due to a DDE or AppleEvent operation

pEventCode The event code
pChannelNumber The DDE channel number (not relevant on macOS or Linux)
pDdeItemName The DDE data item name used to address the received value (not relevant on the macOS or Linux)
pDdeValue The new value received using DDE (not relevant on the macOS or Linux)
evShiftTab

Sent to the target field when the shift-tab key is pressed

pEventCode The event code
evShown

Sent to a field when it has been made visible

pEventCode The event code
evTab

Sent to the target field when the tab key is pressed

pEventCode The event code
evVScrolled

Sent to a field when it is scrolled vertically

pEventCode The event code
evWillDrop

Sent to a field before its contents are dropped on another field or window

pEventCode The event code
pDragType The type of data being dragged (one of the kDrag... constants)
pDragValue The value being dragged
pDropField A reference to the field or window which is to receive the drop