Sign in Join
FPDoc Onlineexperiment

TControl.WMXButtonDown procedure

Member of TControlprotectedIn unit Controls

Handles a LM_XBUTTONDOWN (extra mouse button down) message for the control.

Declaration

pascal
procedure WMXButtonDown(var Message: TLMXButtonDown); message

Arguments

Message

Message examined and optionally handled in the method.

Description

Checks the Keys member in Message to determine whether the first or second extra mouse button is represented in the structure. No actions are performed in the method if Keys does not represent the mbExtra1 or mbExtra2 mouse button.

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

Calls the 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.