mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 16:39:15 +02:00
added shrinking to TRadioGroup and TCheckGroup
git-svn-id: trunk@8621 -
This commit is contained in:
parent
022e1f68df
commit
2daff690f8
@ -34,6 +34,8 @@ begin
|
||||
FColumns := 1;
|
||||
ChildSizing.Layout:=cclLeftToRightThenTopToBottom;
|
||||
ChildSizing.ControlsPerLine:=FColumns;
|
||||
ChildSizing.ShrinkHorizontal:=crsScaleChilds;
|
||||
ChildSizing.ShrinkVertical:=crsScaleChilds;
|
||||
SetInitialBounds(0,0,250,200);
|
||||
end;
|
||||
|
||||
|
@ -73,6 +73,8 @@ begin
|
||||
FColumnLayout := clHorizontalThenVertical;
|
||||
ChildSizing.Layout:=cclLeftToRightThenTopToBottom;
|
||||
ChildSizing.ControlsPerLine:=FColumns;
|
||||
ChildSizing.ShrinkHorizontal:=crsScaleChilds;
|
||||
ChildSizing.ShrinkVertical:=crsScaleChilds;
|
||||
SetInitialBounds(0,0,250,200);
|
||||
TabStop := True;
|
||||
end;
|
||||
|
@ -1651,6 +1651,7 @@ end;
|
||||
procedure TWinControl.DoChildSizingChange(Sender: TObject);
|
||||
begin
|
||||
//debugln('TWinControl.DoChildSizingChange ',DbgSName(Self));
|
||||
if ControlCount=0 then exit;
|
||||
InvalidatePreferredSize;
|
||||
ReAlign;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user