mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 17:00:57 +02:00
LCL: fixed typo
git-svn-id: trunk@25378 -
This commit is contained in:
parent
4090eae3a3
commit
000b5de949
@ -37,7 +37,7 @@ const CheckClientRectName = 'LCLInterfaceRadioGroup';
|
|||||||
{off $DEFINE CHECK_POSITION}
|
{off $DEFINE CHECK_POSITION}
|
||||||
{$IFDEF CHECK_POSITION}
|
{$IFDEF CHECK_POSITION}
|
||||||
const CheckPostionClassName = 'xxTPage';
|
const CheckPostionClassName = 'xxTPage';
|
||||||
const CheckPostionName = 'LCLInterfaceRadioGroup';
|
const CheckPostionName = 'Button2';
|
||||||
const CheckPostionParentName = 'xxxEnvVarsPage';
|
const CheckPostionParentName = 'xxxEnvVarsPage';
|
||||||
|
|
||||||
function CheckPosition(AControl: TControl): boolean;
|
function CheckPosition(AControl: TControl): boolean;
|
||||||
@ -2599,9 +2599,9 @@ var
|
|||||||
//DebugLn(['GetAnchorSidePosition ',DbgSName(Control),' ReferenceControl=',DbgSName(ReferenceControl)]);
|
//DebugLn(['GetAnchorSidePosition ',DbgSName(Control),' ReferenceControl=',DbgSName(ReferenceControl)]);
|
||||||
Result:=Position;
|
Result:=Position;
|
||||||
end;
|
end;
|
||||||
//if CheckPosition(Control) and (Kind=akLeft) then begin
|
//if CheckPosition(Control) and (Kind=akRight) then begin
|
||||||
//debugln('GetAnchorSidePosition B Self=',DbgSName(Self),' Control=',DbgSName(Control),' Result=',dbgs(Result),' ReferenceControl=',dbgsName(ReferenceControl));
|
// debugln('GetAnchorSidePosition B Self=',DbgSName(Self),' Control=',DbgSName(Control),' Result=',dbgs(Result),' ReferenceControl=',dbgsName(ReferenceControl));
|
||||||
//if ReferenceControl<>nil then DebugLn(['GetAnchorSidePosition ReferenceControl.BoundsRect=',dbgs(ReferenceControl.BoundsRect)]);
|
// if ReferenceControl<>nil then DebugLn(['GetAnchorSidePosition ReferenceControl.BoundsRect=',dbgs(ReferenceControl.BoundsRect)]);
|
||||||
//end;
|
//end;
|
||||||
AnchorSideCacheValid[Kind]:=true;
|
AnchorSideCacheValid[Kind]:=true;
|
||||||
AnchorSideCache[Kind]:=Result;
|
AnchorSideCache[Kind]:=Result;
|
||||||
@ -2693,7 +2693,7 @@ var
|
|||||||
DebugLn('[TWinControl.AlignControls.DoPosition] Before Anchoring ',
|
DebugLn('[TWinControl.AlignControls.DoPosition] Before Anchoring ',
|
||||||
' Self='+DbgSName(Self),' Control='+DbgSName(Control),
|
' Self='+DbgSName(Self),' Control='+DbgSName(Control),
|
||||||
' CurBaseBounds='+dbgs(CurBaseBounds.Left)+','+dbgs(CurBaseBounds.Top)+','+dbgs(CurBaseBounds.Right-CurBaseBounds.Left)+','+dbgs(CurBaseBounds.Bottom-CurBaseBounds.Top),
|
' CurBaseBounds='+dbgs(CurBaseBounds.Left)+','+dbgs(CurBaseBounds.Top)+','+dbgs(CurBaseBounds.Right-CurBaseBounds.Left)+','+dbgs(CurBaseBounds.Bottom-CurBaseBounds.Top),
|
||||||
' ParentBaseClientSize='+dbgs(ParentBaseClientSize.X)+','+dbgs(ParentBaseClientSize.Y),
|
' ParentBaseClientSize='+dbgs(ParentBaseClientSize.cx)+','+dbgs(ParentBaseClientSize.cy),
|
||||||
' ControlParent.Client='+dbgs(ParentClientWidth)+','+dbgs(ParentClientHeight),
|
' ControlParent.Client='+dbgs(ParentClientWidth)+','+dbgs(ParentClientHeight),
|
||||||
' NewBounds='+dbgs(NewLeft)+','+dbgs(NewTop)+','+dbgs(NewWidth)+','+dbgs(NewHeight),
|
' NewBounds='+dbgs(NewLeft)+','+dbgs(NewTop)+','+dbgs(NewWidth)+','+dbgs(NewHeight),
|
||||||
'');
|
'');
|
||||||
@ -2721,7 +2721,7 @@ var
|
|||||||
// keep distance to right side of parent
|
// keep distance to right side of parent
|
||||||
// and keep new width
|
// and keep new width
|
||||||
NewRight:=ParentClientWidth
|
NewRight:=ParentClientWidth
|
||||||
-(ParentBaseClientSize.cy-CurBaseBounds.Right);
|
-(ParentBaseClientSize.cx-CurBaseBounds.Right);
|
||||||
if (not (akRight in CurAlignAnchors))
|
if (not (akRight in CurAlignAnchors))
|
||||||
and (akRight in Control.Anchors) then
|
and (akRight in Control.Anchors) then
|
||||||
NewRight:=GetAnchorSidePosition(akRight,NewRight);
|
NewRight:=GetAnchorSidePosition(akRight,NewRight);
|
||||||
|
Loading…
Reference in New Issue
Block a user