Re: [lazarus] SVN Update: ChildSizing
Mattias Gaertner wrote: The following properties now work: TWinControl.ChildSizing. Layout, ControlsPerLine, EnlargeHorizontal, EnlargeVertical, ShrinkHorizontal, ShrinkVertical With these properties a TWinControl can automatically position its childs in rows and/or columns. An example are TRadioGroup and TCheckGroup, which layout code has been removed and instead use the new properties.Advantage: TRadioGroup columns can now have different sizes. I also added the new property TCheckGroup.AutoFill. It doesn't look good. See attached png. Vincent
Re: [lazarus] SVN Update: ChildSizing
Vincent Snijders wrote: An example are TRadioGroup and TCheckGroup, which layout code has been removed and instead use the new properties.Advantage: TRadioGroup columns can now have different sizes. I also added the new property TCheckGroup.AutoFill. It doesn't look good. See attached png. Wow cool! Looking good! :-) I think this is the same old issue should we include border space in preferred size calculation?. Win32 interface doesn't, and we agreed into adding so that is according to windows guidelines, no? I just didn't do it yet. Micha _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] SVN Update: ChildSizing
On Thu, 26 Jan 2006 12:14:11 +0100 Micha Nelissen [EMAIL PROTECTED] wrote: Vincent Snijders wrote: An example are TRadioGroup and TCheckGroup, which layout code has been removed and instead use the new properties.Advantage: TRadioGroup columns can now have different sizes. I also added the new property TCheckGroup.AutoFill. It doesn't look good. See attached png. Wow cool! Looking good! :-) I think this is the same old issue should we include border space in preferred size calculation?. Win32 interface doesn't, and we agreed into adding so that is according to windows guidelines, no? I just didn't do it yet. I set the AutoFill property to true, so the items will now fill up the TRadioGroup. AutoFill sets ChildSizing.EnlargeHorizontal to crsHomogenousSpaceResize. This means available space is distributed to the space around the items. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] SVN Update: ChildSizing
The following properties now work: TWinControl.ChildSizing. Layout, ControlsPerLine, EnlargeHorizontal, EnlargeVertical, ShrinkHorizontal, ShrinkVertical With these properties a TWinControl can automatically position its childs in rows and/or columns. An example are TRadioGroup and TCheckGroup, which layout code has been removed and instead use the new properties.Advantage: TRadioGroup columns can now have different sizes. I also added the new property TCheckGroup.AutoFill. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives