mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 05:38:25 +02:00
lcl: DBLookupComboBox, DBLookupListBox: update Lookup on handle destroy. Issue #31486
git-svn-id: trunk@54441 -
This commit is contained in:
parent
95f94e25d1
commit
cd7fd1bc6e
@ -450,6 +450,7 @@ Type
|
||||
procedure DataChange(Sender: TObject); override;
|
||||
procedure DoSelectionChange(User: Boolean); override;
|
||||
procedure InitializeWnd; override;
|
||||
procedure DestroyWnd; override;
|
||||
procedure KeyDown(var Key: Word; Shift: TShiftState); override;
|
||||
procedure Loaded; override;
|
||||
procedure UpdateData(Sender: TObject); override;
|
||||
@ -799,6 +800,7 @@ Type
|
||||
protected
|
||||
procedure CloseUp; override;
|
||||
procedure InitializeWnd; override;
|
||||
procedure DestroyWnd; override;
|
||||
procedure KeyDown(var Key: Word; Shift: TShiftState); override;
|
||||
procedure Loaded; override;
|
||||
procedure UpdateData(Sender: TObject); override;
|
||||
|
@ -57,6 +57,13 @@ begin
|
||||
Text := '';
|
||||
end;
|
||||
|
||||
procedure TDBLookupComboBox.DestroyWnd;
|
||||
begin
|
||||
inherited;
|
||||
//after handle destroy Items address changes
|
||||
FLookup.ControlItems := Items;
|
||||
end;
|
||||
|
||||
procedure TDBLookupComboBox.Select;
|
||||
begin
|
||||
FDataLink.UpdateData;
|
||||
|
@ -44,6 +44,13 @@ begin
|
||||
ItemIndex := -1;
|
||||
end;
|
||||
|
||||
procedure TDBLookupListBox.DestroyWnd;
|
||||
begin
|
||||
inherited;
|
||||
//after handle destroy Items address changes
|
||||
FLookup.ControlItems := Items;
|
||||
end;
|
||||
|
||||
procedure TDBLookupListBox.DoSelectionChange(User: Boolean);
|
||||
begin
|
||||
if User then
|
||||
|
Loading…
Reference in New Issue
Block a user