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

TCustomFileListBox.OnChange

Event handler signalled when the selected file in the list box control is changed.

Declaration

Source position: filectrl.pp line 78

public property TCustomFileListBox.OnChange : TNotifyEvent
  read FOnChange
  write FOnChange;

Description

OnChange is a TNotifyEvent property which contains the event handler signalled when the selected file for the control has been changed. This can occur when clicking on an entry in list box, when assigning a value directly to the FileName property, and when the list of file system entries in the control is reloaded.

OnChange is triggered (when assigned) from the DoChangeFile method. An application must implement and assign an object procedure to the handler to respond to the event notification.

See also

TCustomFileListBox.FileName

  

FileName - the name of the selected file.

TCustomFileListBox.UpdateFileList

  

Loads the list of files and/or directories for the list box control.

TCustomFileListBox.DoChangeFile

  

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


Version 3.2 Generated 2024-02-25 Home