TControl.DoMouseUp procedure
Performs actions needed to handle a mouse up event for the control.
Declaration
procedure DoMouseUp(var Message: TLMMouse; Button: TMouseButton)
; virtualDescription
DoMouseUp is a virtual method used to apply the mouse button up
event in the Message and Button arguments. DoMouseUp 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. When DragManager is active for a drag and drop operation, the mouse coordinates in Message are converted to screen coordinates and applied using the DragManager. The Result member in Message is set to 1 to show that is has been handled.
The MouseUp method is called to signal the OnMouseUp event handler (when assigned).
DoMouseUp is called from methods like WMLButtonUp, WMRButtonUp, WMMButtonUp, and WMXButtonUp.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
