mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 04:29:28 +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 csLoading in ComponentState then Exit;
|
||||||
|
|
||||||
if HandleAllocated then
|
if HandleAllocated then
|
||||||
TWSCustomComboBoxClass(WidgetSetClass).SetItemIndex(Self, FItemIndex)
|
begin
|
||||||
|
if Val = -1 then
|
||||||
|
ShowEmulatedTextHintIfYouCan
|
||||||
|
else
|
||||||
|
HideEmulatedTextHint;
|
||||||
|
TWSCustomComboBoxClass(WidgetSetClass).SetItemIndex(Self, FItemIndex);
|
||||||
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
// remember text, in case one reads text without creating handle
|
// remember text, in case one reads text without creating handle
|
||||||
|
Loading…
Reference in New Issue
Block a user