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

TControl.MouseDown

Handler for MouseDown events.

Declaration

Source position: controls.pp line 1359

protected procedure TControl.MouseDown(

  Button: TMouseButton;

  Shift: TShiftState;

  X: Integer;

  Y: Integer

); virtual;

Arguments

Button

  

which buttons are down

Shift

  

which of Ctrl, Shift or Alt keys are also pressed

X

  

Mouse position in client coordinates.

Description

Called by the MouseDown message handler. Handles Focus changes, notifies the DragManager while dragging. Finally calls the TControl.OnMouseDown handler.

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