Sign in Join
FPDoc Onlineexperiment

TLazarusFileDialogForm.HandleSelectItem procedure

Member of TLazarusFileDialogFormpublicIn unit LazDialogs

Event handler for changes to the selected item in ShellListView.

Declaration

pascal
procedure HandleSelectItem(Sender: TObject; Item: TListItem; 
 Selected: Boolean)

Arguments

Sender

Component generating the event notification.

Item

List item selected in the ShellListView control.

Selected

Indicates that Item is selected when True.

Description

HandleSelectItem is a procedure used as the event handler for a change to the selected item in ShellListView. It is assigned to the OnSelectItem property in ShellListView in the Initialize method.

HandleSelectItem ensures that the value in SaveEdit is updated with the Caption for the selected item in Save dialogs (Kind is ldkSaveDesktop or ldkSavePDA). For other dialog types, the OK button in ButtonPanel is enabled or disabled depending on the selection of an item in ShellListView; the OK button is Enabled when the Selected parameter contains True.

See also

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