Nate Lowrie wrote: > On Wed, Jul 2, 2008 at 4:06 PM, johnf <[EMAIL PROTECTED]> wrote: >> On Wednesday 02 July 2008 02:59:24 pm Nate Lowrie wrote: >>> Just set the labels Width property >> I thought that was a no-no when using sizers. I did use the "width" for my >> date control (it kept cutting off the right hand side). But normally I just >> let layout take care of the problem. > > You can set the width and height properties of any object you want. > You are resizing the object and the sizer will adjust to the resize. > The no-no's when using sizers are the Top and Left properties, which > specify the xy placement on the Form.
If you set a Width or Height on a control that is part of a sizer, the sizer will no longer set the width or height less than that explicit width you gave. It will however increase Width and Height if appropriate. So you could get a strange but expected situation where you: ctrl.Width = 50 print ctrl.Width 132 ctrl.Width = 150 print ctrl.Width 150 Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]
