Sign in Join
FPDoc Onlineexperiment

TCustomListBox.ClickOnSelChange property

Member of TCustomListBoxpublicIn unit StdCtrls

Allows selection changes to generate a Click event.

Declaration

pascal
property 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 by the OnSelectionChange event, and should not generate an OnClick event. Setting ClickOnSelChange to True gives the Delphi compatible behavior. The default value for the property is True.

See also

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