|
||
struct TPointerEvent;
Pointer event details.
The function TWsEvent::Pointer()const
is used to get this structure for a pointer event.
Defined in TPointerEvent
:
EButton1Down
Button 1 or pen down. EButton1Up
Button 1 or pen up. EButton2Down
Button 2 down.EButton2Up
Button 2 up.EButton3Down
Button 3 down. EButton3Up
Button 3 up. EButtonRepeat
Button repeat event. EDrag
Drag event.EMove
Move event.ESwitchOn
Switch on event caused by a screen tap. TType
Pointer event types.iModifiers
The state of the modifier keys, defined in TEventModifier. iParentPosition
Co-ordinates of the pointer event relative to the parent window of the window it...iPosition
Co-ordinates of the pointer event relative to the origin of the window it occurr...iType
The type of pointer event. TType
Pointer event types.
Note that the user actions that cause these events will vary according to the type of pointing device used.
|
TPoint iPosition;
Co-ordinates of the pointer event relative to the origin of the window it occurred in.
Positive co-ordinates indicate a position to the right of and down from the window's origin, negative co-ordinates indicate a position to the left and up.
TPoint iParentPosition;
Co-ordinates of the pointer event relative to the parent window of the window it occurred in.
Positive co-ordinates indicate a position to the right of and down from the window's origin, negative co-ordinates indicate a position to the left and up.