mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 04:56:02 +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;
|
function GetHintControl(Control: TControl): TControl;
|
||||||
begin
|
begin
|
||||||
Result := Control;
|
Result := Control;
|
||||||
while (Result <> nil) and (not Result.ShowHint) do
|
while (Result <> nil) and (not (Result.ShowHint and Result.Enabled)) do
|
||||||
Result := Result.Parent;
|
Result := Result.Parent;
|
||||||
if (Result <> nil)
|
if (Result <> nil)
|
||||||
and ([csDesigning,csDestroying,csLoading]*Result.ComponentState<>[]) then
|
and ([csDesigning,csDestroying,csLoading]*Result.ComponentState<>[]) then
|
||||||
|
@ -1210,7 +1210,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
procedure TControl.DoOnShowHint(var HintInfo: THintInfo);
|
procedure TControl.DoOnShowHint(HintInfo: Pointer);
|
||||||
------------------------------------------------------------------------------}
|
------------------------------------------------------------------------------}
|
||||||
procedure TControl.DoOnShowHint(HintInfo: Pointer);
|
procedure TControl.DoOnShowHint(HintInfo: Pointer);
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user