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

TControl.WMRButtonDown

Handles a LM_RBUTTONDOWN (right mouse button down) message for the control.

Declaration

Source position: controls.pp line 1351

protected procedure TControl.WMRButtonDown(

  var Message: TLMRButtonDown

); message;

Arguments

Message

  

Message handled in the method.

Description

Sets MouseCapture to True when enabled in the ControlStyle property and the right mouse button is included in CaptureMouseButtons.

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.