help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Procedures and functions][Variables] Reference for unit 'Mouse' (#rtl)

TMouseEvent

Mouse event reporting record.

Declaration

Source position: mouseh.inc line 22

type TMouseEvent = packed record

  buttons: Word;

  

Pressed buttons at time of event.

  x: Word;

  

Horizontal position of mouse cursor.

  y: Word;

  

Vertical position of mouse cursor.

  Action: Word;

  

Type of event.

end;

Description

The TMouseEvent is the central type of the mouse unit, it is used to describe all mouse events.

The Buttons field describes which buttons were down when the event occurred. The x,y fields describe where the event occurred on the screen. The Action describes what action was going on when the event occurred. The Buttons and Action field can be examined using the constants defined in the unit interface.

See also

GetMouseEvent

  

Get next mouse event from the queue.

PollMouseEvent

  

Query next mouse event. Do not wait if none available.

PutMouseEvent

  

Put a mouse event in the venet queue.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505