Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Layout
Layout [message #232851] Wed, 11 April 2007 16:09 Go to next message
Piotr Górny is currently offline Piotr GórnyFriend
Messages: 72
Registered: July 2009
Member
Hi,
I'm using Draw2d alone. I want to get layout of 6 rows which goes as the
following:

1 row: it contains 8 cells of equal width (don't know the width - it is
horizontal area divided by 8) and 80px height
2 -> 6 row: colspan for 8 cells but equal height - don't know how many
pixels in height

I want this table spread for a whole available area horizontally and
vertically,
which means that i will have a table with 8 headers (of 80px height) in
the first row,
and 5 rows spreading for whole horizontal space. These rows should have some
height which is: availableHeight - 80px / 5. I don't know the
availableHeight
and I want to have all this stuff resized when I change dialog size :-)

Each header and each row will be a Figure instance.

Simple right? :P I've spent whole day on it today :-(

Thanks in advance for your help.


--
Greetings
Piotr Górny
Re: Layout [message #232921 is a reply to message #232851] Fri, 13 April 2007 11:32 Go to previous messageGo to next message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
Hi Piotr

Did you make use of the GridLayout available in Draw2D?

Cheers...
Anthony

"Piotr G
Re: Layout [message #232939 is a reply to message #232921] Fri, 13 April 2007 14:56 Go to previous message
Piotr Górny is currently offline Piotr GórnyFriend
Messages: 72
Registered: July 2009
Member
Anthony Hunter wrote:
> Hi Piotr
>
> Did you make use of the GridLayout available in Draw2D?
>
> Cheers...
> Anthony
>
> "Piotr Górny" <airform@o2.pl> wrote in message
> news:evj180$sl5$1@build.eclipse.org...
>> Hi,
>> I'm using Draw2d alone. I want to get layout of 6 rows which goes as the
>> following:
>>
>> 1 row: it contains 8 cells of equal width (don't know the width - it is
>> horizontal area divided by 8) and 80px height
>> 2 -> 6 row: colspan for 8 cells but equal height - don't know how many
>> pixels in height
>>
>> I want this table spread for a whole available area horizontally and
>> vertically,
>> which means that i will have a table with 8 headers (of 80px height) in
>> the first row,
>> and 5 rows spreading for whole horizontal space. These rows should have
>> some
>> height which is: availableHeight - 80px / 5. I don't know the
>> availableHeight
>> and I want to have all this stuff resized when I change dialog size :-)
>>
>> Each header and each row will be a Figure instance.
>>
>> Simple right? :P I've spent whole day on it today :-(
>>
>> Thanks in advance for your help.
>>
>>
>> --
>> Greetings
>> Piotr Górny
>
>
Yes, but how would you tell it to grab whole vertical space and make
rows 2-6 equal height?

--
Greetings
Piotr Górny
Previous Topic:change the color of the editor background
Next Topic:Large graphs
Goto Forum:
  


Current Time: Mon Sep 26 19:11:52 GMT 2022

Powered by FUDForum. Page generated in 0.02502 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top