[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] Color or other Font for ComboViewer items ?
|
Hi,
Such questions should be asked at the swt-newsgroup. In short this is
not possible with Combo because this element is not based upon
org.eclipse.swt.widgets.Item.
People have already resolved this kind of problem:
http://www.richclient2.eu/2006_03_03/enhancing-the-combo-widget-with-images/
The only thing you now need todo is create a Viewer around this widget.
Tom
Christian.Zimmer@xxxxxxxxxxxxxx schrieb:
> Hi,
>
> i've got the problem that i want to structure the entries of my
> ComboViewer through color and font change.
> What I want is the following ( <b> stands for bold font )
>
> <b>Category 1 </b>
> A
> B
> C
> <b>Category 2 </b>
> D
> E
>
>
> The categories from above should be displayed in gray.
> I tried to implement the IColorProvider and IFontProvider in my
> ComboViewer Label Provider, but that didn't work, because the methods
> never got called.
>
>
>
> Thanks in advance,
> Christian
>
>
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
>