mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 06:08:17 +02:00
LCL: TDBLookupComboBox and csDropDown - restore correct ItemIndex, modified patch from Michal Gawrycki, issue #32943
git-svn-id: trunk@58898 -
This commit is contained in:
parent
561246b1f9
commit
46263a6495
@ -35,7 +35,7 @@ begin
|
||||
if i <> -1 then
|
||||
FLookup.UpdateData(i, FScrollListDataset)
|
||||
else
|
||||
Text := '';
|
||||
UpdateLookup;
|
||||
end;
|
||||
|
||||
function TDBLookupComboBox.DoEdit: boolean;
|
||||
@ -63,6 +63,13 @@ begin
|
||||
UpdateLookup;
|
||||
end;
|
||||
|
||||
procedure TDBLookupComboBox.DoOnSelect;
|
||||
begin
|
||||
if Style=csDropDownList then
|
||||
UpdateRecord;
|
||||
inherited DoOnSelect;
|
||||
end;
|
||||
|
||||
procedure TDBLookupComboBox.DestroyWnd;
|
||||
begin
|
||||
inherited;
|
||||
|
Loading…
Reference in New Issue
Block a user