[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: RowLayout.pack

Here is what the JavaDoc says for 2.1:

 /**
  * pack specifies whether all controls in the layout take
  * their preferred size.  If pack is false, all controls will
  * have the same size which is the size required to accommodate the
  * largest preferred height and the largest preferred width of all
  * the controls in the layout.
  *
  * The default value is true.
  */

"Yoway Buorn" <yoway.buorn@xxxxxxxxxx> wrote in message
news:b7mqfk$l0c$1@xxxxxxxxxxxxxxxx
> This is kind of a small point, but I was using RowLayout to display a Text
> and a Button.  The API says, "pack specifies whether all controls in the
> layout are forced to be the same size. The default value is true."  I find
> that when I set it to false, all the controls become the same size, while
> setting pack to true shrinks the controls down to the set sizes.
>