TControl.DoMouseDown procedure
Performs actions needed to handle a mouse down event for the control.
Declaration
procedure DoMouseDown(var Message: TLMMouse; Button: TMouseButton;
Shift: TShiftState); virtualArguments
Message | Mouse message examined and handled in the method. |
Button | Mouse button for the message. |
Shift | Ctrl, Shift, or Alt modifier for the mouse button event. |
Description
DoMouseDown is a virtual method used to apply the mouse button
down event in the Message and Button arguments. DoMouseDown checks the
control style flags in ControlStyle to determine whether the control responds
to standard mouse events.
No actions are performed in the method when csNoStdEvents has been included in ControlStyle. This indicates that mouse events are handled by the widgetset class instance for the control.
Otherwise, values in Message and Button are applied in the method. The mouse coordinates in Message are converted to screen coordinates, and the message is applied by calling the MouseDown method.
DoMouseDown is called from methods like: WMLButtonDown, WMRButtonDown, WMMButtonDown, and WMXButtonDown.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
