LCL/TApplication: ShowHintWindow calls ActivateHint when HintInfo.HintData is nil, otherwise ActivateHintData.

This commit is contained in:
wp_xyz 2025-03-17 19:23:15 +01:00
parent 209c68264b
commit 6a6db7e851

View File

@ -906,7 +906,10 @@ begin
FHintWindow.Color := HintInfo.HintColor;
//DebugLn(['TApplication.ShowHintWindow FHintWindow.Color=',dbgs(FHintWindow.Color),' HintInfo.HintColor=',dbgs(HintInfo.HintColor)]);
FHintWindow.ActivateHintData(HintWinRect, HintInfo.HintStr, HintInfo.HintData);
if Assigned(HintInfo.HintData) then
FHintWindow.ActivateHintData(HintWinRect, HintInfo.HintStr, HintInfo.HintData)
else
FHintWindow.ActivateHint(HintWinRect, HintInfo.HintStr);
FHintRect := HintInfo.CursorRect;
// start hide timer
if HintInfo.ReshowTimeout>0 then