mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 07:21:34 +02:00
LCL: Hide emulated TextHint in TCustomComboBox.SetItemIndex. Issue #41108, based on patch by Iluha Companets.
This commit is contained in:
parent
cf462fa18d
commit
f7ab06f51d
@ -1053,7 +1053,13 @@ begin
|
||||
if csLoading in ComponentState then Exit;
|
||||
|
||||
if HandleAllocated then
|
||||
TWSCustomComboBoxClass(WidgetSetClass).SetItemIndex(Self, FItemIndex)
|
||||
begin
|
||||
if Val = -1 then
|
||||
ShowEmulatedTextHintIfYouCan
|
||||
else
|
||||
HideEmulatedTextHint;
|
||||
TWSCustomComboBoxClass(WidgetSetClass).SetItemIndex(Self, FItemIndex);
|
||||
end
|
||||
else
|
||||
begin
|
||||
// remember text, in case one reads text without creating handle
|
||||
|
Loading…
Reference in New Issue
Block a user