mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-24 16:19:21 +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
|
if i <> -1 then
|
||||||
FLookup.UpdateData(i, FScrollListDataset)
|
FLookup.UpdateData(i, FScrollListDataset)
|
||||||
else
|
else
|
||||||
Text := '';
|
UpdateLookup;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TDBLookupComboBox.DoEdit: boolean;
|
function TDBLookupComboBox.DoEdit: boolean;
|
||||||
@ -63,6 +63,13 @@ begin
|
|||||||
UpdateLookup;
|
UpdateLookup;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TDBLookupComboBox.DoOnSelect;
|
||||||
|
begin
|
||||||
|
if Style=csDropDownList then
|
||||||
|
UpdateRecord;
|
||||||
|
inherited DoOnSelect;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TDBLookupComboBox.DestroyWnd;
|
procedure TDBLookupComboBox.DestroyWnd;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
|
Loading…
Reference in New Issue
Block a user