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

TCustomFileListBox.Click

Performs actions needed when the mouse is clicked on the list box control.

Declaration

Source position: filectrl.pp line 70

public procedure TCustomFileListBox.Click; override;

Description

Click is an overridden method in TCustomFileListBox used to perform actions needed when the mouse is clicked in the list box control. Click ensures that the value in the FileName property is updated to reflect the selected file name in Items. ItemIndex contains the position for the current selection in the list box.

Click signals the OnChange event handler (when assigned) by calling the DoChangeFile method.

See also

TCustomFileListBox.FileName

  

FileName - the name of the selected file.

TCustomFileListBox.DoChangeFile

  

Performs actions needed when the selected file has changed in the control.

TCustomListBox.ItemIndex

  

Ordinal position for the currently selected item, -1 if none.

TCustomListBox.Items

  

The list of all items defined in the control.

TCustomListBox.MultiSelect

  

Allows selection of more than one item from the list.

TControl.Click

  

Signals OnClick and/or executes the ActionLink when the control has been clicked.


Version 4.0 Generated 2025-05-03 Home