RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMouse Class

TMouse surfaces information about the mouse and specifies how the application responds to mouse messages.

Pascal
TMouse = class;
C++
class TMouse;

Controls

Use the global Mouse variable, which is a TMouse object, to get information about the mouse. 

TControl descendants surface several events that let you respond to actions users make with the mouse. Typically, the event handlers for these events provide most of the information about the mouse that you need and you do not need to use the global Mouse variable. Instead, use the Mouse variable to obtain similar information outside of a mouse-related event or to specify more global aspects of how your application responds to mouse messages, such as how much the user must move the mouse to start a drag operation. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!