GradLayout set first two columns equal width to last two columnshttps://www.eclipse.org/forums/index.php/mv/msg/198643/633520/#msg_633520
I am having the following problem:

I have a 4 column grid layout and i set the equal width property to false because the contents look like this

FirstName: | TextField | LastName: | TextField

now i don't want the label's cell to consume the same space as the text field's cell does. But I want that the first two columns consume the same space than the last two columns.

I am using this in an editor and depending which contents the controls have the sizing varies and it looks awkward if you skim thru the editors.

I tried nesting grid layouts but I get vertical alignment proplems.

Is there any decent solution to this ?

Thanks ]]>Sebastian 2010-10-18T10:22:36-00:00Re: GradLayout set first two columns equal width to last two columnshttps://www.eclipse.org/forums/index.php/mv/msg/198643/633854/#msg_633854
I think what you need to do is assign a GridData object to your Text/Label objects.

Double check my syntax but this should solve your issue. ]]>eshvar60 2010-10-19T15:39:36-00:00Re: GradLayout set first two columns equal width to last two columnshttps://www.eclipse.org/forums/index.php/mv/msg/198643/634401/#msg_634401
thanks for your reply.

Thing is, i don't want to set hints because I want the columns to grow dynamically when the window is resized. Any idea ?]]>Sebastian 2010-10-21T14:47:20-00:00Re: GradLayout set first two columns equal width to last two columnshttps://www.eclipse.org/forums/index.php/mv/msg/198643/634414/#msg_634414
eshvar60 2010-10-21T15:33:42-00:00Re: GradLayout set first two columns equal width to last two columnshttps://www.eclipse.org/forums/index.php/mv/msg/198643/635038/#msg_635038
equal-width columns, then within each of these columns would be a Composite
whose layout specified two columns. What vertical layout problems is this
giving you?

Grant

"Sebastian" <hamlax@gmail.com> wrote in message
news:i9pjjc$8tk$1@news.eclipse.org...
> Hey,
> thanks for your reply.
>
> Thing is, i don't want to set hints because I want the columns to grow
> dynamically when the window is resized. Any idea ?]]>Grant Gayed2010-10-25T13:46:01-00:00