BG Color for a PShelfItem [message #65239] |
Tue, 30 June 2009 08:54  |
Eclipse User |
|
|
|
Hi Everyone ,
I am relatively new to SWT and Nebula .
I have a requirement to display multiple composites within a PShelf which
i am able to do with ease .
However , I have another requirement to change the BG Color of the
PShelfItem if a particular threshold is reached .
PShelfItem item1 = new PShelfItem(pshelf,SWT.NONE);
item1.setText("Navigation");
// item1.setBackGround() ## Not available .
IS there a way to change the BG color of a PShelfItem ?
On analyzing, found that color changing prop is available only to PShelf
and a renderer can be set only to a PShelf
Please advice .
Thanks in advance,
Santhosh
|
|
|
|
|
Re: BG Color for a PShelfItem [message #595574 is a reply to message #65239] |
Thu, 09 July 2009 17:38  |
Eclipse User |
|
|
|
You need to implement your own renderer yes.
Tom
Santhosh schrieb:
> Hi Everyone ,
>
> I am relatively new to SWT and Nebula .
>
> I have a requirement to display multiple composites within a PShelf
> which i am able to do with ease .
>
> However , I have another requirement to change the BG Color of the
> PShelfItem if a particular threshold is reached .
> PShelfItem item1 = new PShelfItem(pshelf,SWT.NONE);
> item1.setText("Navigation");
>
> // item1.setBackGround() ## Not available .
>
> IS there a way to change the BG color of a PShelfItem ?
>
> On analyzing, found that color changing prop is available only to PShelf
> and a renderer can be set only to a PShelf
> Please advice .
>
> Thanks in advance,
> Santhosh
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03791 seconds