mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 10:18:17 +02:00
only show hints if control is enabled (bug #1029)
git-svn-id: trunk@7503 -
This commit is contained in:
parent
e448939084
commit
4ccd15af8b
@ -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
|
||||
|
@ -1210,7 +1210,7 @@ begin
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
procedure TControl.DoOnShowHint(var HintInfo: THintInfo);
|
||||
procedure TControl.DoOnShowHint(HintInfo: Pointer);
|
||||
------------------------------------------------------------------------------}
|
||||
procedure TControl.DoOnShowHint(HintInfo: Pointer);
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user