Custom Font for Row Headers [message #66003] |
Fri, 24 July 2009 02:54  |
Eclipse User |
|
|
|
Originally posted by: m.kasid.gmail.com
Can we set custom fonts for row headers? I want to have certain row headers
to be listed in Bold or Italics, i don't see a way of doing that...
I tried passing a custom Font to RowHeaderLabelProvider through the getFont
method of ColumnLabelProvider, but this didn't worked.
--
Thanks,
Mustufa
|
|
|
|
|
|
|
|
|
|
Re: Custom Font for Row Headers [message #510664 is a reply to message #509789] |
Thu, 28 January 2010 04:42  |
Eclipse User |
|
|
|
Yes, there is no facility to set header fonts. Filed bug 301096 for this and
attached a patch for a possible fix.
--
Thanks and Regards
Mustufa Kasidwala
"Tom Schindl" <tom.schindl@bestsolution.at> wrote in message
news:hjk3cl$aqe$1@build.eclipse.org...
> Looks like. I don't know OTOH if setting a row-header font is already
> available if not file a bugzilla. It should be quite trivial to
> implement this feature.
>
> Tom
>
> Am 25.01.10 13:34, schrieb Mustufa Kasidwala:
>> Hi,
>>
>> I actually requested to have a facility to set custom 'Row Header' fonts.
>> I
>> guess what you fixed was to have custom 'Column Header' fonts.
>>
>
|
|
|
Re: Custom Font for Row Headers [message #598501 is a reply to message #66003] |
Thu, 29 October 2009 16:59  |
Eclipse User |
|
|
|
Looking at the source for the GridColumn. I don't see a way to set the font for the GridColumn. I added a getHeaderFont and setHeaderFont() method to the GridColumn class and modified the DefaultColumnHeaderRenderer class to use the HeaderFont in the Paint method and it does what you want it to do.
I will submit these changes as a patch to see if they want to incorporate them into the widget.
Marty
|
|
|
|
|
Re: Custom Font for Row Headers [message #598515 is a reply to message #494291] |
Fri, 30 October 2009 09:40  |
Eclipse User |
|
|
|
Marty Jones wrote:
> Matthew, I wasn't sure how you guys normally apply patches so I just
> included the source files that I modified as the patch.
>
> Please let me know if I am suppose to do it differently.
Typically the preferred method is to check out the component source from
CVS into your workspace. Make the changes to source files. Open the
Synchronize view and synchronize the sources with CVS to get a list of
the changed files. Select all the changed files, right click, and
select Create Patch. This wizard will generate a patch in the preferred
format.
If you're using Mylyn with the Mylyn-Bugzilla connector it is a little
easier. When you create the patch, select the clipboard as the patch
destination. Then open the bug in Mylyn, add a new attachment and
select the clipboard as the source.
Matthew
|
|
|
|
Re: Custom Font for Row Headers [message #598887 is a reply to message #494392] |
Mon, 25 January 2010 07:34  |
Eclipse User |
|
|
|
Hi,
I actually requested to have a facility to set custom 'Row Header' fonts. I
guess what you fixed was to have custom 'Column Header' fonts.
--
Thanks and Regards
Mustufa Kasidwala
"Marty Jones" <martybjones@gmail.com> wrote in message
news:hceshf$i4a$1@build.eclipse.org...
> Matthew,
>
> Thank you for the help on how to apply the patch.
>
> I have uploaded a new patch file with the changes.
>
> Marty
|
|
|
Re: Custom Font for Row Headers [message #598891 is a reply to message #509786] |
Mon, 25 January 2010 07:38  |
Eclipse User |
|
|
|
Looks like. I don't know OTOH if setting a row-header font is already
available if not file a bugzilla. It should be quite trivial to
implement this feature.
Tom
Am 25.01.10 13:34, schrieb Mustufa Kasidwala:
> Hi,
>
> I actually requested to have a facility to set custom 'Row Header' fonts. I
> guess what you fixed was to have custom 'Column Header' fonts.
>
|
|
|
Re: Custom Font for Row Headers [message #598934 is a reply to message #598891] |
Thu, 28 January 2010 04:42  |
Eclipse User |
|
|
|
Yes, there is no facility to set header fonts. Filed bug 301096 for this and
attached a patch for a possible fix.
--
Thanks and Regards
Mustufa Kasidwala
"Tom Schindl" <tom.schindl@bestsolution.at> wrote in message
news:hjk3cl$aqe$1@build.eclipse.org...
> Looks like. I don't know OTOH if setting a row-header font is already
> available if not file a bugzilla. It should be quite trivial to
> implement this feature.
>
> Tom
>
> Am 25.01.10 13:34, schrieb Mustufa Kasidwala:
>> Hi,
>>
>> I actually requested to have a facility to set custom 'Row Header' fonts.
>> I
>> guess what you fixed was to have custom 'Column Header' fonts.
>>
>
|
|
|
Powered by
FUDForum. Page generated in 0.05432 seconds