only show hints if control is enabled (bug #1029)

git-svn-id: trunk@7503 -
This commit is contained in:
vincents 2005-08-15 13:21:50 +00:00
parent e448939084
commit 4ccd15af8b
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ end;
function GetHintControl(Control: TControl): TControl;
begin
Result := Control;
while (Result <> nil) and (not Result.ShowHint) do
while (Result <> nil) and (not (Result.ShowHint and Result.Enabled)) do
Result := Result.Parent;
if (Result <> nil)
and ([csDesigning,csDestroying,csLoading]*Result.ComponentState<>[]) then

View File

@ -1210,7 +1210,7 @@ begin
end;
{------------------------------------------------------------------------------
procedure TControl.DoOnShowHint(var HintInfo: THintInfo);
procedure TControl.DoOnShowHint(HintInfo: Pointer);
------------------------------------------------------------------------------}
procedure TControl.DoOnShowHint(HintInfo: Pointer);
begin