In this context, a general event is any kind of event that is generated by the Window Server and delivered to the client, with the exception of redraw and priority key events.
Variant: ScreenPlay and non-ScreenPlay. Target audience: Application developers.
All events generated by the Window Server, except redraw events and priority
key events, are delivered to the client in a TWsEvent
which
is requested asynchronously by the RWsSession::EventReady()
function.
When this request completes, it is handled by an active object CActive::RunL()
function
which must use RWsSession::GetEvent()
to get the TWsEvent
representing
the event. The TWsEvent::Type()
function is used to identify
the event type which can then retrieve the appropriate type of data.
The following table lists for each event type returned by TWsEvent::Type()
,
what object TWsEvent::EventData()
returns, and what the TWsEvent::Handle()
represents.
TWsEvent::Type() |
TWsEvent::EventData() |
TWsEvent::Handle() |
EEventNull |
n/a |
n/a |
EEventKey |
|
|
EEventKeyUp |
|
|
EEventKeyDown |
|
|
EEventModifiersChanged |
The client handle of the |
|
EEventPointer |
|
|
EEventPointerEnter |
|
|
EEventPointerExit |
|
|
EEventPointerBufferReady |
None - call |
|
EEventDragDrop |
|
|
EEventFocusLost |
None |
|
EEventFocusGained |
None |
|
EEventSwitchOn |
None |
The client handle of the |
EEventPassword |
None |
The client handle of the |
EEventWindowGroupsChanged |
None |
The client handle of the |
EEventErrorMessage |
The client handle of the |
|
EEventMessageReady |
None |
|
EEventMarkInvalid |
n/a |
n/a |
EEventSwitchOff |
None |
The client handle of the |
EEventKeySwitchOff |
None |
The client handle of the |
EEventScreenDeviceChanged |
None |
The client handle of the object on which |
EEventDisplayChanged |
The client handle of the |
|
EEventFocusGroupChanged |
None |
The client handle of the |
EEventWindowVisibilityChanged |
The client handle of the |
|
EEventCaseOpened |
None |
The client handle of the |
EEventCaseClosed |
None |
The client handle of the |
EEventWindowGroupListChanged |
None |
The client handle of the |
EEventKeyRepeat |
n/a (only sent to the key click plug-in interface) |
n/a |
EEventUser |
n/a |
n/a |