KeyEvent Class |
Namespace: VO
The KeyEvent type exposes the following members.
Name | Description | |
---|---|---|
ASCIIChar |
A numeric value representing the normal ASCII code for the key that caused this KeyEvent.
| |
Handle |
The pointer to the window where the event occurred
(Inherited from Event.) | |
KeyCode |
A constant, indicating the code for the key that was pressed:
| |
Message |
A dword representing the Windows API message associated with the given event.
(Inherited from Event.) | |
RepeatCount |
A numeric value determining whether a user depressed a key repeatedly or held it down for an extended period of time.
| |
System |
A logical value determining whether the Alt key was pressed at the same time as another key (TRUE if yes, FALSE if no).
| |
Window |
An object indicating the window or control in which the event occurred. This is helpful, for example, for distinguishing between similar menu events coming from the same context menu attached to different controls.
(Inherited from Event.) |
Name | Description | |
---|---|---|
hWnd | (Inherited from Event.) | |
lParam | (Inherited from Event.) | |
oWindow | (Inherited from Event.) | |
uMsg | (Inherited from Event.) | |
wParam | (Inherited from Event.) |
1METHOD KeyDown(aKeyEvt) CLASS TopAppWindow 2IF(aKeyEvt:KeyCode() = KeyEnter) 3ts := SELF:TextSize('A'):Height() + 2 4oCursorPoint := Point{10,oCursorPoint:Y() - ts} 5ENDIF