TreeItem setText mixed font style [message #451759] |
Tue, 08 March 2005 11:23  |
Eclipse User |
|
|
|
Originally posted by: susieeatsicecream.yahoo.com
Hello,
I would like to have some text in a tree item bold and some not bold for
example in html: normal hello <strong>bold hello </strong> normal hello
I don't see how it is possible, becuase setFont works on the whole thing.
can someone help?
susie
|
|
|
|
|
|
|
|
Re: TreeItem setText mixed font style [message #451813 is a reply to message #451774] |
Wed, 09 March 2005 08:20   |
Eclipse User |
|
|
|
You can set foreground, background colours and font per cell in the Table or
Tree. See TreeItem.setForeground(int, Color) etc.
You can not change the colour or font multiple times within one cell.
"Kashif Riaz" <kash.riazNOSPAM@gmail.com> wrote in message
news:d0l8in$1n7$1@www.eclipse.org...
> Hi,
>
> I need to do something similar, but instead of changing the font, I wish
> to change the colour of certain TableItem's (NOT the whole tree). Can this
> be done?
>
>
> susie wrote:
>
>> thanks for the info.
>
>> Veronika Irvine wrote:
>
>>> Sorry, that is not supported.
>
>>> "susie" <susieeatsicecream@yahoo.com> wrote in message
>>> news:d0kkv5$v4p$1@www.eclipse.org...
>>>> Veronika Irvine wrote:
>>>>
>>>>> You are lookign at Tree.setFont(), look also at TreeItem.setFont().
>>>>
>>>>> "susie" <susieeatsicecream@yahoo.com> wrote in message
>>>>> news:d0kjij$nj3$1@www.eclipse.org...
>>>>>> Hello,
>>>>>>
>>>>>> I would like to have some text in a tree item bold and some not bold
>>>>>> for example in html: normal hello <strong>bold hello </strong> normal
>>>>>> hello
>>>>>>
>>>>>> I don't see how it is possible, becuase setFont works on the whole
>>>>>> thing.
>>>>>>
>>>>>> can someone help?
>>>>>>
>>>>>> susie
>>>>>>
>>>> when I say setFont works on the whole thing I mean on the whole item
>>>> label not the whole tree.
>>>>
>>>> I would like bold and notbold within one TreeItem, for example I would
>>>> like to highlight one word in the text of a treeitem.
>>>> thanx
>>>>
>
>
|
|
|
Re: TreeItem setText mixed font style [message #451859 is a reply to message #451813] |
Wed, 09 March 2005 14:45  |
Eclipse User |
|
|
|
Originally posted by: kash.riazNOSPAM.gmail.com
Thanks Veronika :)
Veronika Irvine wrote:
> You can set foreground, background colours and font per cell in the Table or
> Tree. See TreeItem.setForeground(int, Color) etc.
> You can not change the colour or font multiple times within one cell.
> "Kashif Riaz" <kash.riazNOSPAM@gmail.com> wrote in message
> news:d0l8in$1n7$1@www.eclipse.org...
>> Hi,
>>
>> I need to do something similar, but instead of changing the font, I wish
>> to change the colour of certain TableItem's (NOT the whole tree). Can this
>> be done?
>>
>>
>> susie wrote:
>>
>>> thanks for the info.
>>
>>> Veronika Irvine wrote:
>>
>>>> Sorry, that is not supported.
>>
>>>> "susie" <susieeatsicecream@yahoo.com> wrote in message
>>>> news:d0kkv5$v4p$1@www.eclipse.org...
>>>>> Veronika Irvine wrote:
>>>>>
>>>>>> You are lookign at Tree.setFont(), look also at TreeItem.setFont().
>>>>>
>>>>>> "susie" <susieeatsicecream@yahoo.com> wrote in message
>>>>>> news:d0kjij$nj3$1@www.eclipse.org...
>>>>>>> Hello,
>>>>>>>
>>>>>>> I would like to have some text in a tree item bold and some not bold
>>>>>>> for example in html: normal hello <strong>bold hello </strong> normal
>>>>>>> hello
>>>>>>>
>>>>>>> I don't see how it is possible, becuase setFont works on the whole
>>>>>>> thing.
>>>>>>>
>>>>>>> can someone help?
>>>>>>>
>>>>>>> susie
>>>>>>>
>>>>> when I say setFont works on the whole thing I mean on the whole item
>>>>> label not the whole tree.
>>>>>
>>>>> I would like bold and notbold within one TreeItem, for example I would
>>>>> like to highlight one word in the text of a treeitem.
>>>>> thanx
>>>>>
>>
>>
|
|
|
Powered by
FUDForum. Page generated in 1.47434 seconds