#include <system.h>
Public Attributes | |
ushort | what |
MouseEventType | mouse |
KeyDownEvent | keyDown |
MessageEvent | message |
KeyDownEvent MessageEvent MouseEventType
keyed by the what field. The TView::handleEvent() member functions and its derived classes take a TEvent object as argument and respond with the appropriate action.
Definition at line 349 of file system.h.
|
Undocumented. |
|
Undocumented. |
|
Undocumented. |
|
This field reports the event's type. Some mnemonics are defined to indicate types of events to TVision event handlers. The following evXXXX constants are used in several places: in the what data member of an TEvent structure, in the TView::eventMask data member of a view object, and in the positionalEvents and focusedEvents variables. The following event values designate standard event types:
Constant Value Meaning evMouseDown 0x0001 Mouse button pressed evMouseUp 0x0002 Mouse button released evMouseMove 0x0004 Mouse changed location evMouseAuto 0x0008 Periodic event while mouse button held down evKeyDown 0x0010 Key pressed evCommand 0x0100 Command event evBroadcast 0x0200 Broadcast event The following constants can be used to mask types of events:
Constant Value Meaning evNothing 0x0000 Event already handled evMouse 0x000F Mouse event evKeyboard 0x0010 Keyboard event evMessage 0xFF00 Message (command, broadcast, or user-defined) event The above standard event masks can be used to determine whether an event belongs to a particular "family" of events. For example:
if ((event.what & evMouse) != 0) doMouseEvent(); |