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

TCustomListBox.ClickOnSelChange

Allows selection changes to generate a Click event.

Declaration

Source position: stdctrls.pp line 591

public property TCustomListBox.ClickOnSelChange : Boolean
  read FClickOnSelChange
  write FClickOnSelChange
  default True;

Description

Delphi generates an OnClick event when the selection changes. The LCL adds a more specific OnSelectionChange event. Set ClickOnSelChange to False, when selection changes should be handled only in OnSelectionChange, and should not generate an OnClick event (Delphi compatible).

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