LCL: fixed calling TApplication.OnShowHint

git-svn-id: trunk@44557 -
This commit is contained in:
mattias 2014-03-30 19:09:25 +00:00
parent 3dc25d4870
commit 7a5bfb6e30

View File

@ -813,10 +813,10 @@ begin
or (not HintInfo.HintWindowClass.InheritsFrom(THintWindow)) then
HintInfo.HintWindowClass := HintWindowClass;
i:=FApplicationHandlers[ahtShowHint].Count;
if CanShow and (i>0) then begin
if CanShow then begin
if Assigned(FOnShowHint) then
FOnShowHint(HintInfo.HintStr, CanShow, HintInfo);
i:=FApplicationHandlers[ahtShowHint].Count;
while FApplicationHandlers[ahtShowHint].NextDownIndex(i) do
TShowHintEvent(FApplicationHandlers[ahtShowHint][i])(HintInfo.HintStr, CanShow, HintInfo);
end;