Action Event
Occurs When The User Clicks On The Control
Syntax:
Action <ActionProcedure>
OnChange Event
Occurs When The Content Of a Control Changes
Syntax:
OnChange <ActionProcedure>
OnClick Event
Occurs when the user clicks on the control
Syntax:
OnCLick <ActionProcedure>
OnCloseUp Event
Occurs when the user closes the dropdown list of a ComboBox control
Syntax:
OnCloseUp <ActionProcedure>
OnDblClick Event
Occurs when the user double clicks on the control
Syntax:
OnDblClick <ActionProcedure>
The following data are available at ‘OnDblClick’ procedure:
This.CellRowIndex
This.CellColIndex
This.CellRow
This.CellCol
This.CellWidth
This.CellHeight
- Note: These properties are not available when OnDblClick procedure is fired by <Enter> key pressing.
OnDisplayChange Event
Occurs when the data in an editable ComboBox control is changed
Syntax:
OnDisplayChange <ActionProcedure>
OnDropDown Event
Occurs when the user open the dropdown list of a ComboBox control
Syntax:
OnDropDown <ActionProcedure>
OnEnter Event
Occurs when the user press the <Enter> key in a control with the input focus
Syntax:
OnEnter <ActionProcedure>
OnGotFocus Event
Occurs when a control or window gains the input focus
Syntax:
OnGotFocus <ActionProcedure>
OnHeadClick Event
Occurs when a Grid or Browse header is clicked
Syntax:
OnHeadClick <ActionProcedure>
OnHScrollBox Event
Occurs when the horizontal scrollbar button of a virtual dimensioned window is dragged
Syntax:
OnHScrollBox <ActionProcedure>
Position of scrollbars in a virtual dimensioned window can be retrieved via the ‘value’ property of ‘HscrollBar’ and ‘VscrollBar’ pseudo-controls:
WindowName.HscrollBar.value
WindowName.VscrollBar.value
OnInit Event
Occurs when a Window is initialized
Syntax:
OnInit <ActionProcedure>
OnInteractiveClose Event
Occurs when a Window is about to be closed by pressing the [X] button
Syntax:
OnInteractiveClose <ActionProcedure>
If the ‘InteractiveClose’ procedure returns .T., the window will be closed normally, otherwise it will not be closed.
OnKey
Occurs when the user press any key in Grids control with the input focus
Syntax:
OnKey <ActionProcedure>
You can also make use in your procedure function following HMG functions:
HMG_GetLastVirtualKeyDown() and HMG_CleanLastVirtualKeyDown()
Notes:
· Keyboard functions can be found in Advanced\/Read Keyboard and Mouse
· Keys values are defined in \hmg...\INCLUDE\i_keybd.ch file, same like as for HotKey definitions.
· ON KEY is used as a Grid property at Standard syntax (xBase style: @... Grid) and please do not confuse ON KEY for Keyboard Shortcuts (HotKeys) definition.
OnLostFocus Event
Occurs when a control or window had lost the input focus
Syntax:
OnLostFocus <ActionProcedure>
OnMaximize Event
Occurs when a Window is maximized
Syntax:
OnMaximize <ActionProcedure>
OnMinimize Event
Occurs when a Window is minimized
Syntax:
OnMinimize <ActionProcedure>
OnMouseClick Event
Occurs when the user click a Window
Syntax:
OnMouseClick <ActionProcedure>
The following data are available at ‘OnMouseClick’ procedure:
_HMG_SYSDATA [ 191 ] -> Mouse Row
_HMG_SYSDATA [ 192 ] -> Mouse Col
OnMouseDrag Event
Occurs when the user drag in a Window
Syntax:
OnMouseDrag <ActionProcedure>
The following data are available at ‘OnMouseClick’ procedure:
_HMG_SYSDATA [ 191 ] -> Mouse Row
_HMG_SYSDATA [ 192 ] -> Mouse Col
OnMouseMove Event
Occurs when the user moves the mouse over a Window
Syntax:
OnMouseMove <ActionProcedure>
The following data are available at ‘OnMouseClick’ procedure:
_HMG_SYSDATA [ 191 ] -> Mouse Row
_HMG_SYSDATA [ 192 ] -> Mouse Col
OnNotifyClick Event
Occurs when a notify icon is clicked
Syntax:
OnNotifyClick <ActionProcedure>
OnQueryData Event
Occurs when a virtual Grid control requires data to display a cell
Syntax:
OnQueryData <ActionProcedure>
The following data are available at ‘OnQueryData’ procedure:
This.QueryData
This.QueryRowIndex
This.QueryColIndex
OnPaint Event
Occurs when a Window is painted by the system
Syntax:
OnPaint <ActionProcedure>
OnRelease Event
Occurs when a Window is released
Syntax:
OnRelease <ActionProcedure>
OnSave Event
Occurs when a data-bound Grid control is saved
Syntax:
OnSave <ActionProcedure>
Properties Available For OnSave Procedure:
This.AppendBuffer
This.EditBuffer
This.MarkBuffer
This.EditBuffer: Array of one element per edited cell. The elements has the following structure: { nLogicalRow , nLogicalCol , xValue , nRecNo }
This.AppendBuffer: Array of one element per appended record. The elements has the following structure: { xFieldValue 1 , ... , xFieldValue n }
This.MarkBuffer: Array of one element per record marked to be deleted or recalled. The elements has the following structure: { nLogicalRow , nRecNo , cMark ( 'D' or 'R' ) }
Note: When an action procedure is specified for this eventt, the default one is not executed.
OnScrollDown Event
Occurs when a virtual dimensioned window is scrolled down
Syntax:
OnScrollDown <ActionProcedure>
Position of scrollbars in a virtual dimensioned window can be retrieved via the ‘value’ property of ‘HscrollBar’ and ‘VscrollBar’ pseudo-controls:
WindowName.HscrollBar.value
WindowName.VscrollBar.value
OnScrollLeft Event
Occurs when a virtual dimensioned window is scrolled left
Syntax:
OnScrollLeft <ActionProcedure>
Position of scrollbars in a virtual dimensioned window can be retrieved via the ‘value’ property of ‘HscrollBar’ and ‘VscrollBar’ pseudo-controls:
WindowName.HscrollBar.value
WindowName.VscrollBar.value
OnScrollRIght Event
Occurs when a virtual dimensioned window is scrolled right
Syntax:
OnScrollRight <ActionProcedure>
Position of scrollbars in a virtual dimensioned window can be retrieved via the ‘value’ property of ‘HscrollBar’ and ‘VscrollBar’ pseudo-controls:
WindowName.HscrollBar.value
WindowName.VscrollBar.value
OnScrollUp Event
Occurs when a virtual dimensioned window is scrolled up
Syntax:
OnScrollUp <ActionProcedure>
Position of scrollbars in a virtual dimensioned window can be retrieved via the ‘value’ property of ‘HscrollBar’ and ‘VscrollBar’ pseudo-controls:
WindowName.HscrollBar.value
WindowName.VscrollBar.value
OnSize Event
Occurs when a Window is sized
Syntax:
OnSize <ActionProcedure>
OnVScrollBox Event
Occurs when the vertical scrollbar button of a virtual dimensioned window is dragged
Syntax:
OnVScrollBox <ActionProcedure>
Position of scrollbars in a virtual dimensioned window can be retrieved via the ‘value’ property of ‘HscrollBar’ and ‘VscrollBar’ pseudo-controls:
WindowName.HscrollBar.value
WindowName.VscrollBar.value