|Re: KTable's header text is partially missing [message #466053 is a reply to message #465994]
||Thu, 29 December 2005 22:42
Originally posted by: friederich.kupzog.de|
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.
> 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.
Elektronik & Software
Neusser Str. 5-7
Tel +49 241 9979356
Fax +49 221 726670
Powered by FUDForum
. Page generated in 0.02339 seconds