mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 18:29:12 +02:00
MG: added persistent hints for main ide bar
git-svn-id: trunk@1284 -
This commit is contained in:
parent
f139594f1a
commit
c444873f84
@ -1897,7 +1897,23 @@ end;
|
||||
------------------------------------------------------------------------------}
|
||||
function TControl.HasParent : Boolean;
|
||||
begin
|
||||
Result := (FParent <> nil);
|
||||
Result := (FParent <> nil);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
function TControl.IsParentOf(AControl: TControl): boolean;
|
||||
|
||||
------------------------------------------------------------------------------}
|
||||
function TControl.IsParentOf(AControl: TControl): boolean;
|
||||
begin
|
||||
Result:=false;
|
||||
while AControl<>nil do begin
|
||||
AControl:=AControl.Parent;
|
||||
if Self=AControl then begin
|
||||
Result:=true;
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
@ -1987,6 +2003,9 @@ end;
|
||||
|
||||
{ =============================================================================
|
||||
$Log$
|
||||
Revision 1.98 2002/11/04 19:49:36 lazarus
|
||||
MG: added persistent hints for main ide bar
|
||||
|
||||
Revision 1.97 2002/11/03 22:40:28 lazarus
|
||||
MG: fixed ControlAtPos
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user