Vcl.Controls.TMouse
Delphi
TMouse = class
C++
class PASCALIMPLEMENTATION TMouse : public System::TObject
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | Vcl.Controls |
Description
TMouse surfaces information about the mouse and specifies how the application responds to mouse messages.
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.
See Also
Code Examples