Skip to content

#Events

Grid Events

3. Grid Specific Events
a. OnCellChange
b. OnCellLeftClick
c. OnCellLeftDblClick
d. OnCellRightClick
e. OnCellRightDblClick
f. OnCellSelect
g. OnColWidthChange
h. OnLabelClick
i. OnLabelLeftDblClick
j. OnLabelRightClick
k. OnLabelRightDblClick
l. OnRowHeightChange

4. Datagrid Events
a. OnRecordDelete
b. OnRecordNew
c. OnRecordSave

These are all grid specific, these will apply to both wxformgrid and dataform1datagrid unless otherwise specified

oncellchange

Triggered when the user changes the content of a cell. The event handling function requires the following parameters:

wxformgrid me, integer row, integer col[, type(*) reference])

The reference is only passed if it has been provided

oncellleftclick

Triggered when the user left clicks on a cell. The event handling function requires the following parameters:

wxformgrid me, integer row, integer col[, type(*) reference]

The reference is only passed if it has been provided

oncellleftdblclick

Triggered when the user double left clicks on a cell. The event handling function requires the following parameters:

wxformgrid me, integer row, integer col[, type(*) reference])

The reference is only passed if it has been provided

oncellrightclick

Triggered when the user right clicks on a cell. The event handling function requires the following parameters:

wxformgrid me, integer row, integer col[, type(*) reference])

The reference is only passed if it has been provided

oncellrightdblclick

Triggered when the user double right clicks on a cell. The event handling function requires the following parameters:

wxformgrid me, integer row, integer col[, type(*) reference])

The reference is only passed if it has been provided

oncellselect

This event is triggered when the user selects a cell. The event handling function requires the following parameters:

wxformgrid me, integer row, integer col[, type(*) reference])

The reference is only passed if it has been provided

oncolwidthchange

This event is triggered when the user resizes a column. The event handling function requires the following parameters:

wxformgrid me, integer col[, type(*) reference])

The reference is only passed if it has been provided

ongotfocus

See above

onlabelclick

This event is triggered when the user clicks on a row or column label or the corner field. The event handling function requires the following parameters:

wxformgrid me, integer row, integer col[, type(*) reference])

The reference is only passed if it has been provided.

If row is equal to -1 and col is equal to -1 the user clicked the corner label, otherwise if row is equal to -1, they clicked on the column label. If col is equal to -1 they clicked a row label

onlabelleftdblclick

This event is triggered when the user double left clicks on a label. The event handling function requires the following parameters:

wxformgrid me, integer row, integer col[, type(*) reference])

The reference is only passed if it has been provided. The same rules for row and col count apply here as for onlabelclick

onlabelrightclick

This event is triggered when the user right clicks on a label. The event handling function requires the following parameters:

wxformgrid me, integer row, integer col[, type(*) reference])

The reference is only passed if it has been provided. The same rules for row and col count apply here as for onlabelclick

onlabelrightdblclick

This event is triggered when the user double right clicks on a label. The event handling function requires the following parameters:

wxformgrid me, integer row, integer col[, type(*) reference])

The reference is only passed if it has been provided. The same rules for row and col count apply here as for onlabelclick

onlostfocus

See above

onrowheightchange

This event is triggered when the user resizes a row. The event handling function requires the following parameters:

wxformgrid me, integer row[, type(*) reference])

The reference is only passed if it has been provided.

Dataform1datagrid specific events

The following events are all specific to the dataform1datagrid.

onrecorddelete

This event is triggered when a record gets deleted, I believe this is the same as ondeleterecord and the event handling function will require the following paramters:

type(wxformcontrol) me [, type(*) reference])

onrecordnew

This event is triggered when a new record is created, the event handling function requires the following parameters

type(wxformcontrol) me [, type(*) reference])

onrecordsave

This event will be triggered when a record is saved, I believe this is the same as onsaverecord and the event handling function will require the following parameters:

type(wxformcontrol) me [, type(*) reference])
Pages: 1 2 3 4