Event codes

EV_GAIN_FOCUS

Object has gained focus

EV_LOSE_FOCUS

Object has lost focus

EV_HELP

User has pressed F1 (HELP) key

EV_CREATE

Object has been created

EV_DESTROY

Object has been destroyed

EV_SINGLE_CLICK

Single mouse click on object

EV_SELECT

Identical to EV_SINGLE_CLICK

EV_MULTIPLE_SELECT

Multiple lines selected

EV_DOUBLE_CLICK

Double mouse click on object

EV_KEYSTROKE

A key has been typed

EV_RIGHT_MOUSE_UP

Right mouse released over object

EV_RIGHT_MOUSE_DOWN

Right mouse clicked down over object

EV_RIGHT_MOUSE

Identical to EV_RIGHT_MOUSE_UP. Obsolescent.

EV_MOUSE_OVER

Mouse passed over object

EV_SYSTEM_TRAY_ICON

Event in program’s system tray icon. Tested in conjunction with the code for that event.

EV_MINIMISED

Window has been minimised

EV_MAXIMISED

Window has been maximised

EV_RESTORE

Window has been restored from maximised state to its previous size.

EV_CLOSE

User has clicked window close icon

EV_SELECT_TAB

Tab window has been selected

EV_MENU

Menu item has been selected

EV_BUTTON_DOWN

Button has been moved down

EV_BUTTON_UP

Button has been moved up

EV_BUTTON_CLICKED

Push button has been clicked

EV_VALIDATE

Textbox or table cell data validation

EV_SUPPLY_VALUE

Request to supply values to table

EV_SUPPLY_COLOUR

Set RBG colours for table cells

EV_UNSELALL

All selected lines have been deselected from a table or listbox

EV_MULTIPLE_SELECT

A block of lines has been selected in a table

EV_FOCUS_CELL

Editable table cell has gained focus

EV_NOFOCUS_CELL

Editable table cell has lost focus

EV_OLE_EVENT

OLE control event

EV_PROPERTY_CHANGED

Property has changed (OLE controls only)

EV_REQUEST_EDIT

Permission to edit required (OLE controls only)

EV_DRAG_DROP

All drag and drop events

EV_DRAG_ENTER

Drag and Drop: Enter window

EV_DRAG_OVER

Drag and Drop: Over window

EV_DRAG_LEAVE

Drag and Drop: Leave window

EV_DROP

Drag and Drop: Drop in window

EV_CHANGE

Window resized, or a character typed into a textbox or list edit box

EV_CHANGE_NO_WINDOW

The control for which EV_CHANGE was generated is not a window

EV_CHANGE_NEW_SIZE

Window has been resized and “Show window contents while dragging” is checked

EV_CHANGE_SIZING

Window has been resized

EV_CHANGE_END_SIZE

Window has been resized and the user has released the left mouse button

EV_CHANGE_SCREEN_SIZE

Screen size has changed

EV_ALL

Enable all events for object

EV_DEFAULT

Enable all default events for object

These codes are automatically sent as the first argument to event functions. The second argument is the object’s object_id. EV_DEFAULT and EV_ALL are not sent to event functions, but are useful values for the event_enable = clause.

For details of the event function codes available for windows and for each control type, see:

Window events and functions

Button events and functions

Graphic events and functions

Listbox events and functions

Menu events and functions

OLE control events and functions

Static text events and functions

Table events and functions

Textbox events and functions


RELATED TOPICS

The include file sculptor.h