Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT control that support HTML text?
SWT control that support HTML text? [message #454225] Tue, 19 April 2005 13:31 Go to next message
Andy Arhelger is currently offline Andy ArhelgerFriend
Messages: 62
Registered: July 2009
Member
Is there an SWT control that supports HTML tags in text? Something like:

<html>This is nice <b>text</b></html>

like Swing JLabel does?

Andy Arhelger
Re: SWT control that support HTML text? [message #454285 is a reply to message #454225] Tue, 19 April 2005 16:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eyecanseeyou.free.fr

Hi,
Have a look at Browser component.
Re: SWT control that support HTML text? [message #454339 is a reply to message #454225] Wed, 20 April 2005 19:20 Go to previous messageGo to next message
Max is currently offline MaxFriend
Messages: 28
Registered: July 2009
Junior Member
I have found some at http://www.xored.com/products/

"Andy Arhelger" <juggle@us.ibm.com> wrote in message
news:d431ms$3o8$1@news.eclipse.org...
> Is there an SWT control that supports HTML tags in text? Something like:
>
> <html>This is nice <b>text</b></html>
>
> like Swing JLabel does?
>
> Andy Arhelger
Re: SWT control that support HTML text? [message #454478 is a reply to message #454285] Thu, 21 April 2005 22:02 Go to previous messageGo to next message
Andy Arhelger is currently offline Andy ArhelgerFriend
Messages: 62
Registered: July 2009
Member
Browser works pretty well. Some problems:

1) The font is too large, is there anyway to reduce the font size?
2) The margins are too large, I.E. to much space around the borders of
the text. Any way to reduce these?
3) The background is white which is not the same as a Label. Any way to
change the background color?
4) Any way to force it not to add scroll bars but to always show all the
text?

Looks like Browser is acutally made up of an OleFrame and and WebSite
object. It seems as though I could control more of how the control works
if I could get access to the OleFrame WebSite objects. Any way to do this?

Andy Arhelger

Eyecanseeyou wrote:
> Hi,
> Have a look at Browser component.
>
>
Re: SWT control that support HTML text? [message #454483 is a reply to message #454478] Fri, 22 April 2005 08:32 Go to previous message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Andy Arhelger wrote:

> Browser works pretty well. Some problems:
>
> 1) The font is too large, is there anyway to reduce the font size?

Use CSS to define the Font

> 2) The margins are too large, I.E. to much space around the borders of
> the text. Any way to reduce these?

Use CSS: <body style="margin:0;"> for no margins and any other value for
defined margins (e.g. maring:2px;)

> 3) The background is white which is not the same as a Label. Any way
> to change the background color?

CSS :)

> 4) Any way to force it not to add scroll bars but to always show all the
> text?

CSS! <body style="overflow:auto">
That will only show Scrollbars if required by the Browser (at least on
Windows). overflow:none will completly
remove the scrollbars.

>
> Looks like Browser is acutally made up of an OleFrame and and WebSite
> object. It seems as though I could control more of how the control
> works if I could get access to the OleFrame WebSite objects. Any way
> to do this?
>
> Andy Arhelger
>
> Eyecanseeyou wrote:
>
>> Hi,
>> Have a look at Browser component.
>>
>>
Previous Topic:How to make a CellEditor on a TreeViewer lose the focus on right-click ?
Next Topic:no swt-pi-gtk-3128 in java.library.path
Goto Forum:
  


Current Time: Tue Apr 16 06:21:08 GMT 2024

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

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

Back to the top