mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 10:59:11 +02:00
win32: fix calling of SetText for TCombobox (issue #0024591)
git-svn-id: trunk@41710 -
This commit is contained in:
parent
87b70e8023
commit
1ff1a2384f
@ -614,7 +614,7 @@ var
|
||||
Index := ItemIndex;
|
||||
// Index might be -1, if current text is not in the list.
|
||||
if (Index>=0) then
|
||||
TWin32WSCustomComboBox.SetText(ComboBox, Items[Index]);
|
||||
TWin32WSWinControl.SetText(ComboBox, Items[Index]);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
@ -243,6 +243,7 @@ uses
|
||||
WsControls,
|
||||
Win32Proc,
|
||||
Win32WSFactory,
|
||||
Win32WSControls,
|
||||
Win32WSButtons,
|
||||
Win32WSMenus,
|
||||
Win32WSStdCtrls,
|
||||
|
@ -374,7 +374,7 @@ begin
|
||||
|
||||
// restore text in edit box
|
||||
UpdateComboHeight;
|
||||
TWin32WSCustomComboBox.SetText(FSender, EditText);
|
||||
TWin32WSWinControl.SetText(FSender, EditText);
|
||||
if EditText = '' then
|
||||
lItemIndex := -1
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user