Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TreeItem setText mixed font style
TreeItem setText mixed font style [message #451759] Tue, 08 March 2005 16:23 Go to next message
Eclipse UserFriend
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 #451760 is a reply to message #451759] Tue, 08 March 2005 16:36 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
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
>
Re: TreeItem setText mixed font style [message #451762 is a reply to message #451760] Tue, 08 March 2005 16:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: susieeatsicecream.yahoo.com

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 #451765 is a reply to message #451762] Tue, 08 March 2005 17:23 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
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 #451769 is a reply to message #451765] Tue, 08 March 2005 17:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: susieeatsicecream.yahoo.com

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 #451774 is a reply to message #451769] Tue, 08 March 2005 22:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kash.riazNOSPAM.gmail.com

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 #451813 is a reply to message #451774] Wed, 09 March 2005 13:20 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
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 19:45 Go to previous message
Eclipse UserFriend
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
>>>>>
>>
>>
Previous Topic:Issues with List control.
Next Topic:event.doit in DragFinished
Goto Forum:
  


Current Time: Tue Apr 23 12:07:54 GMT 2024

Powered by FUDForum. Page generated in 0.03767 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top