Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » KTable's header text is partially missing
KTable's header text is partially missing [message #465990] Wed, 28 December 2005 04:26 Go to next message
Eclipse UserFriend
Hi all,

I set the KTable's header height to 17, when I use STYLE_FLAT the header
text is showing perfectly, but when I switch to STYLE_PUSH its header text
upper portion is missing unless I raise the height to 19 but I guess this
is to high.

Regards,


Setya
Re: KTable's header text is partially missing [message #465992 is a reply to message #465990] Wed, 28 December 2005 06:38 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

This might happen since when using push style, some additional drawing
is performed to achieve the desired look. And those reduce the height
available for the content text by a few pixels.

Try raising the height of only the header (row==0) to 19 - as you
already mentioned.

Setya wrote:
> Hi all,
>
> I set the KTable's header height to 17, when I use STYLE_FLAT the header
> text is showing perfectly, but when I switch to STYLE_PUSH its header
> text upper portion is missing unless I raise the height to 19 but I
> guess this is to high.
>
> Regards,
>
>
> Setya
>
Re: KTable's header text is partially missing [message #465994 is a reply to message #465992] Wed, 28 December 2005 06:51 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the response,

> This might happen since when using push style, some additional drawing
> is performed to achieve the desired look. And those reduce the height
> available for the content text by a few pixels.

> Try raising the height of only the header (row==0) to 19 - as you
> already mentioned.

My workaround so far is setting height to 19 when the style is STYLE_PUSH
and 17 otherwise. But this results in the height of header row that is not
proportional with the height of data row. Is it possible to modify the
header drawing instead ?

Any other workaround will be greatly appreciated.

Regards,

Setya
Re: KTable's header text is partially missing [message #466053 is a reply to message #465994] Thu, 29 December 2005 17:42 Go to previous message
Eclipse UserFriend
Originally posted by: friederich.kupzog.de

Hi Setya,

yes indeed, you can change the header drawing by implementing your own
cell renderer. The renderer used for each cell is determined by the
table model. You can write your own renderer on the basis any of the
existing ones. It is quite easy. Have a look into the renderer sources.
Have a look into recent KTable threads in this forum, there I posted
some code for drawing WinXP like headers.

Regards,
Friederich


Setya wrote:
> Thanks for the response,
>
>> This might happen since when using push style, some additional drawing
>> is performed to achieve the desired look. And those reduce the height
>> available for the content text by a few pixels.
>
>
>> Try raising the height of only the header (row==0) to 19 - as you
>> already mentioned.
>
>
> My workaround so far is setting height to 19 when the style is
> STYLE_PUSH and 17 otherwise. But this results in the height of header
> row that is not proportional with the height of data row. Is it possible
> to modify the header drawing instead ?
>
> Any other workaround will be greatly appreciated.
>
> Regards,
>
> Setya
>


--
Friederich Kupzog
Elektronik & Software
Neusser Str. 5-7
50670 Köln
Tel +49 241 9979356
Fax +49 221 726670
www.kupzog.de/fkmk
Previous Topic:JFace ApplicationWindow: Simple Problem
Next Topic:Brwoser - toolbar
Goto Forum:
  


Current Time: Wed Jul 23 04:59:14 EDT 2025

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

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

Back to the top