Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » eRCP » Display html-text in eSWT-Label
Display html-text in eSWT-Label [message #537924] Fri, 04 June 2010 04:00 Go to next message
georg is currently offline georg
Messages: 4
Registered: June 2010
Junior Member
Hi,

is it possible to display html-text in eSWT-Label/Button - Widgets?

Thanks,
Georg
Re: Display html-text in eSWT-Label [message #538111 is a reply to message #537924] Sat, 05 June 2010 01:55 Go to previous messageGo to next message
Gorkem Ercan is currently offline Gorkem Ercan
Messages: 166
Registered: July 2009
Senior Member
No, Button & Label do not render HTML.
--
Gorkem
Re: Display html-text in eSWT-Label [message #539008 is a reply to message #538111] Wed, 09 June 2010 06:35 Go to previous messageGo to next message
georg is currently offline georg
Messages: 4
Registered: June 2010
Junior Member
Thank you for your answer. Is there another way to display formatted text? I have text that contains some expressions in italic and small font.

Georg
Re: Display html-text in eSWT-Label [message #539324 is a reply to message #539008] Thu, 10 June 2010 08:39 Go to previous messageGo to next message
Gorkem Ercan is currently offline Gorkem Ercan
Messages: 166
Registered: July 2009
Senior Member
Unfortunately, eSWT does not contain a built in rich text component. Using Canvas to create one for your own purposes may be the best course.
--
Gorkem
Re: Display html-text in eSWT-Label [message #540544 is a reply to message #539324] Wed, 16 June 2010 09:23 Go to previous message
Mark Rogalski is currently offline Mark Rogalski
Messages: 201
Registered: July 2009
Senior Member
You can change the font/size for the label as a whole, but not change
individual characters in the label.

"Gorkem Ercan" <gercan@acm.org> wrote in message
news:huqme7$bhq$1@build.eclipse.org...
> Unfortunately, eSWT does not contain a built in rich text component. Using
> Canvas to create one for your own purposes may be the best course.
> --
> Gorkem
Re: Display html-text in eSWT-Label [message #564515 is a reply to message #537924] Sat, 05 June 2010 01:55 Go to previous message
Gorkem Ercan is currently offline Gorkem Ercan
Messages: 166
Registered: July 2009
Senior Member
No, Button & Label do not render HTML.
--
Gorkem
Re: Display html-text in eSWT-Label [message #564524 is a reply to message #564515] Wed, 09 June 2010 06:35 Go to previous message
georg is currently offline georg
Messages: 4
Registered: June 2010
Junior Member
Thank you for your answer. Is there another way to display formatted text? I have text that contains some expressions in italic and small font.

Georg
Re: Display html-text in eSWT-Label [message #564539 is a reply to message #564524] Thu, 10 June 2010 08:39 Go to previous message
Gorkem Ercan is currently offline Gorkem Ercan
Messages: 166
Registered: July 2009
Senior Member
Unfortunately, eSWT does not contain a built in rich text component. Using Canvas to create one for your own purposes may be the best course.
--
Gorkem
Re: Display html-text in eSWT-Label [message #564582 is a reply to message #539324] Wed, 16 June 2010 09:23 Go to previous message
Mark Rogalski is currently offline Mark Rogalski
Messages: 201
Registered: July 2009
Senior Member
You can change the font/size for the label as a whole, but not change
individual characters in the label.

"Gorkem Ercan" <gercan@acm.org> wrote in message
news:huqme7$bhq$1@build.eclipse.org...
> Unfortunately, eSWT does not contain a built in rich text component. Using
> Canvas to create one for your own purposes may be the best course.
> --
> Gorkem
Previous Topic:Problem of fillRoundRectangle
Next Topic:eSWT -- MouseEvents
Goto Forum:
  


Current Time: Fri Jul 25 21:15:37 EDT 2014

Powered by FUDForum. Page generated in 0.01714 seconds