[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TControl.WMLButtonDown

Handles a LM_LBUTTONDOWN (left mouse button down) message for the control.

Declaration

Source position: controls.pp line 1350

protected procedure TControl.WMLButtonDown(

  var Message: TLMLButtonDown

); message;

Arguments

Message

  

Message handled in the method.

Description

Sets MouseCapture to True when enabled in the ControlStyle property and the left mouse button is included in CaptureMouseButtons. Includes csClicked in ControlState when click events have been enabled in the ControlStyle property.

Calls the private DoMouseDown method to perform the mouse button event for the control, and to signal its OnMouseDown event handler (when assigned). No mouse down actions are performed when standard events are ignored by including csNoStdEvents in the ControlStyle property.

See also

TControl.ControlStyle

  

Style flags, specifying whether the control responds to mouse clicks, can be re-sized, has particular actions, etc.

TControl.MouseCapture

  

True when mouse messages are currently captured by this control.

TControl.CaptureMouseButtons

  

Which mouse button(s) to be used for capture? Default is the left button.

TControl.MouseDown

  

Handler for MouseDown events.

TControl.OnMouseDown

  

Event handler for mouse button going down.

TMouseButton

  

Enumeration of recognized mouse buttons.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.