KTable's header text is partially missing [message #465990] |
Wed, 28 December 2005 09:26 |
|
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 11:51 |
|
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 22:42 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03383 seconds