LCL: fixed typo GetChildsRect GetChildrenRect

git-svn-id: trunk@44663 -
This commit is contained in:
mattias 2014-04-09 15:12:36 +00:00
parent 204323d3ab
commit 2f637d4295
4 changed files with 9 additions and 9 deletions

View File

@ -1532,7 +1532,7 @@ type
function ControlToScreen(const APoint: TPoint): TPoint;
function ClientToParent(const Point: TPoint; AParent: TWinControl = nil): TPoint;
function ParentToClient(const Point: TPoint; AParent: TWinControl = nil): TPoint;
function GetChildsRect(Scrolled: boolean): TRect; virtual;
function GetChildrenRect(Scrolled: boolean): TRect; virtual;
procedure Show;
procedure Update; virtual;
function HandleObjectShouldBeVisible: boolean; virtual;
@ -2141,7 +2141,7 @@ type
procedure InvalidateClientRectCache(WithChildControls: boolean);
function ClientRectNeedsInterfaceUpdate: boolean;
procedure SetBounds(ALeft, ATop, AWidth, AHeight: integer); override;
function GetChildsRect(Scrolled: boolean): TRect; override;
function GetChildrenRect(Scrolled: boolean): TRect; override;
procedure DisableAlign;
procedure EnableAlign;
procedure ReAlign; // realign all children

View File

@ -1949,13 +1949,13 @@ begin
end;
{------------------------------------------------------------------------------
function TControl.GetChildsRect(Scrolled: boolean): TRect;
function TControl.GetChildrenRect(Scrolled: boolean): TRect;
Returns the Client rectangle relative to the controls left, top.
If Scrolled is true, the rectangle is moved by the current scrolling values
(for an example see TScrollingWincontrol).
------------------------------------------------------------------------------}
function TControl.GetChildsRect(Scrolled: boolean): TRect;
function TControl.GetChildrenRect(Scrolled: boolean): TRect;
var
ScrolledOffset: TPoint;
begin

View File

@ -260,7 +260,7 @@ begin
Result := -1;
if Panels.Count = 0 then
Exit;
R := GetChildsRect(False);
R := GetChildrenRect(False);
P := Point(X, Y);
if not PtInRect(R, P) then
Exit;

View File

@ -4060,13 +4060,13 @@ begin
end;
{------------------------------------------------------------------------------
function TWinControl.GetChildsRect(Scrolled: boolean): TRect;
function TWinControl.GetChildrenRect(Scrolled: boolean): TRect;
Returns the Client rectangle relative to the controls left, top.
If Scrolled is true, the rectangle is moved by the current scrolling values
(for an example see TScrollingWincontrol).
------------------------------------------------------------------------------}
function TWinControl.GetChildsRect(Scrolled: boolean): TRect;
function TWinControl.GetChildrenRect(Scrolled: boolean): TRect;
var
ScrolledOffset: TPoint;
begin
@ -4080,7 +4080,7 @@ begin
inc(Result.Bottom,ScrolledOffset.Y);
end;
end else
Result:=inherited GetChildsRect(Scrolled);
Result:=inherited GetChildrenRect(Scrolled);
end;
{------------------------------------------------------------------------------
@ -5056,7 +5056,7 @@ var
(ControlPos.X < Width) and (ControlPos.Y < Height);
if Result and (capfOnlyClientAreas in Flags) then
begin
ControlClientBounds := GetChildsRect(false);
ControlClientBounds := GetChildrenRect(false);
Result:=PtInRect(ControlClientBounds, ControlPos);
end;