|
Re: HELP with HTML in SWT? [message #467280 is a reply to message #467150] |
Fri, 27 January 2006 16:33 |
Eclipse User |
|
|
|
Originally posted by: kwpeck.mersoft.com
I kind of depends on how fancy your HTML will be. The FormText control
can handle various things but it is _not_ a full HTML rendering engine.
The nice thing is it will work on all supported platforms.
Your other choice, especially if you only care about Windows, is to use
the full browser control.
I have not done anything with transparency so I don't know if FormText
will help you in that area or not.
Adam Kumpf wrote:
>
> I have a canvas with a lot of user created objects and I'd like to add
> text as well. In particular, I'd like to render HTML.
> Since this is surely a common task in quite a few applications, I am
> hoping there is a fairly straight forward way to take in an HTML file as
> a string, and get the characters and the associated
> style(font,bold,color,etc.) at each point in the document (in SWT). The
> reason I prefer a method like this over StyledText is that I want to be
> able to easily save the data and render it in a browser at some point
> down the road. I also plan to do my own painting of the text since I
> require transparency.
>
> Thanks so much.
>
> - Adam
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.24818 seconds