Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-dev] GridLayout with >2 columns and imaginary center line

Hi Marcus,

I think you could create a custom widget containing a label and a text
and use this in a Gridlayout with two columns using the span attribute
to decide how much space is allocated for it.

Or look at FormLayout, which is the most flexible standard layout
manager. It is a bit hard to use but allows fine grained control.

See https://www.eclipse.org/articles/article.php?file=Article-Understanding-Layouts/index.html


Best regards, Lars

On Tue, Sep 27, 2022 at 2:38 PM Wim Jongman <wim.jongman@xxxxxxxxx> wrote:
>
> Use Eclipse WindowBuilder to WYSIWYG design your GUI, including managing the layout as you describe here:
>
> https://eclipse.org/windowbuilder
>
> Find  "HorizontalSpan and VerticalSpan" here:
>
> https://www.eclipse.org/articles/Article-Understanding-Layouts/Understanding-Layouts.htm
>
>
>
> On Tue, 27 Sept 2022 at 11:37, Mickael Istria <mistria@xxxxxxxxxx> wrote:
>>
>> Hi,
>>
>> 1 parent composite with GridLayout(numColumns: 2, equalWidth: true) and 3 children:: 1 composite for `Label1: Text1________` another for `Label2: Text2_________` and another for `Label3: Text3________`. The latest one must has a GridData.horizontalSpan=2; each child composite has a GridLayout(2, false) and the Text have GridData.grabExcessibeHorizontalSpace=true.
>>
>> HTH
>> _______________________________________________
>> eclipse-dev mailing list
>> eclipse-dev@xxxxxxxxxxx
>> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/eclipse-dev
>
> _______________________________________________
> eclipse-dev mailing list
> eclipse-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/eclipse-dev



-- 
Eclipse Platform project co-lead
CEO vogella GmbH

Haindaalwisch 17a, 22395 Hamburg
Amtsgericht Hamburg: HRB 127058
Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel
USt-IdNr.: DE284122352
Fax (040) 5247 6322, Email: lars.vogel@xxxxxxxxxxx, Web: http://www.vogella.com


Back to the top