mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 02:19:16 +02:00
LCL/FileListbox: Update selected filename when ItemIndex is set
git-svn-id: trunk@64211 -
This commit is contained in:
parent
569e49e3cb
commit
1c9c36d205
@ -62,6 +62,7 @@ Type
|
||||
procedure Loaded; override;
|
||||
function IndexOfFile(const AFilename: string): integer;
|
||||
procedure KeyUp(var Key: Word; Shift: TShiftState); override;
|
||||
procedure SetItemIndex(AIndex: Integer); override;
|
||||
public
|
||||
constructor Create(TheOwner: TComponent); override;
|
||||
destructor Destroy; override;
|
||||
@ -420,6 +421,12 @@ begin
|
||||
UpdateFileList;
|
||||
end;
|
||||
|
||||
procedure TCustomFileListbox.SetItemIndex(AIndex: Integer);
|
||||
begin
|
||||
inherited;
|
||||
UpdateSelectedFileName;
|
||||
end;
|
||||
|
||||
procedure TCustomFileListBox.SetFileName(const AValue: String);
|
||||
var
|
||||
i: Integer;
|
||||
|
Loading…
Reference in New Issue
Block a user