win32: fix calling of SetText for TCombobox (issue #0024591)

git-svn-id: trunk@41710 -
This commit is contained in:
paul 2013-06-14 02:36:30 +00:00
parent 87b70e8023
commit 1ff1a2384f
3 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -243,6 +243,7 @@ uses
WsControls,
Win32Proc,
Win32WSFactory,
Win32WSControls,
Win32WSButtons,
Win32WSMenus,
Win32WSStdCtrls,

View File

@ -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