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

TControl.OnDblClick

Event handler signalled when a mouse double click occurs in the control.

Declaration

Source position: controls.pp line 1590

protected property TControl.OnDblClick : TNotifyEvent
  read FOnDblClick
  write FOnDblClick;

Description

OnDblClick is a TNotifyEvent property with the event handler signalled when the mouse is double-clicked on the control. OnDblClick is signalled from the DblClick method, and occurs when the LM_LBUTTONDBLCLK message is handled in the WMLButtonDBLCLK method.

Remark: Click events are not generated if csClickEvents has been omitted from the ControlStyle flags for the control.

Double-clicking is much more common in a Windows environment than in Unix or Linux, where single-clicking is the default method for selecting an object. However, in all environments there could be valid use for a double-click, and a method should be supplied if appropriate.

Use OnClick to perform actions needed when a single mouse click occurs in the control.

See also

TControl.DblClick

  

Signals the OnDblClick event handler (when assigned).

TControl.WMLButtonDBLCLK

  

Handles a left mouse button double click message for the control.

TControl.ControlStyle

  

Contains style flags which control the features or behaviors enabled for the control.

TControl.OnClick

  

Notification handler for mouse clicks.

TNotifyEvent


Version 3.2 Generated 2024-02-25 Home