Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to set the item Height
How to set the item Height [message #445356] Thu, 04 November 2004 00:16 Go to next message
Nicole is currently offline NicoleFriend
Messages: 26
Registered: July 2009
Junior Member
Hi,

Really hope that someone can help me on this. Or if there is no solution,
at least tell me so.

I just embarked on building my own custom widget, somewhat similar to the
TableTree. I placed a Tree on the left and a Table on the right and have
managed to get the Table to react accordingly when I expand or collapse an
item in the Tree. However I find that the item heights of the Tree and the
Table could not sync, resulting in the whole widget looking very weird
when I expand or collapse the items. Is there any suggestions as to how I
can force the item heights of the two Controls to be the same?

Please help. Thanks.

Regards,
Nicole
Re: How to set the item Height [message #445427 is a reply to message #445356] Fri, 05 November 2004 12:59 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Item heights of both table and tree are determined by the font and the
images placed into the widgets. The presence or absence of gridlines or
table headers in the table will also impact the height of the rows. The
heights are not settable to a specific pixel value.

"Nicole" <nicole_kidding@yahoo.com> wrote in message
news:cmbsda$r64$1@eclipse.org...
> Hi,
>
> Really hope that someone can help me on this. Or if there is no solution,
> at least tell me so.
> I just embarked on building my own custom widget, somewhat similar to the
> TableTree. I placed a Tree on the left and a Table on the right and have
> managed to get the Table to react accordingly when I expand or collapse an
> item in the Tree. However I find that the item heights of the Tree and the
> Table could not sync, resulting in the whole widget looking very weird
> when I expand or collapse the items. Is there any suggestions as to how I
> can force the item heights of the two Controls to be the same?
>
> Please help. Thanks.
>
> Regards,
> Nicole
>
>
>
Re: How to set the item Height [message #445477 is a reply to message #445427] Sat, 06 November 2004 08:50 Go to previous message
Nicole is currently offline NicoleFriend
Messages: 26
Registered: July 2009
Junior Member
Hi,

Thanks for replying.

Regards,
Nicole

Veronika Irvine wrote:

> Item heights of both table and tree are determined by the font and the
> images placed into the widgets. The presence or absence of gridlines or
> table headers in the table will also impact the height of the rows. The
> heights are not settable to a specific pixel value.

> "Nicole" <nicole_kidding@yahoo.com> wrote in message
> news:cmbsda$r64$1@eclipse.org...
>> Hi,
>>
>> Really hope that someone can help me on this. Or if there is no solution,
>> at least tell me so.
>> I just embarked on building my own custom widget, somewhat similar to the
>> TableTree. I placed a Tree on the left and a Table on the right and have
>> managed to get the Table to react accordingly when I expand or collapse an
>> item in the Tree. However I find that the item heights of the Tree and the
>> Table could not sync, resulting in the whole widget looking very weird
>> when I expand or collapse the items. Is there any suggestions as to how I
>> can force the item heights of the two Controls to be the same?
>>
>> Please help. Thanks.
>>
>> Regards,
>> Nicole
>>
>>
>>
Previous Topic:Flat Look Design
Next Topic:Color and dispose
Goto Forum:
  


Current Time: Fri Mar 29 15:29:30 GMT 2024

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

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

Back to the top