added shrinking to TRadioGroup and TCheckGroup

git-svn-id: trunk@8621 -
This commit is contained in:
mattias 2006-01-25 23:18:16 +00:00
parent 022e1f68df
commit 2daff690f8
3 changed files with 5 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -1651,6 +1651,7 @@ end;
procedure TWinControl.DoChildSizingChange(Sender: TObject);
begin
//debugln('TWinControl.DoChildSizingChange ',DbgSName(Self));
if ControlCount=0 then exit;
InvalidatePreferredSize;
ReAlign;
end;