Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Render HTML
Render HTML [message #692364] Mon, 04 July 2011 05:36 Go to next message
J.-P. Pellet is currently offline J.-P. Pellet
Messages: 71
Registered: July 2009
Member
Hi,

I'm interested in displaying HTML text in an app I have that doesn't use
SWT. Is there a way I can use SWT's WebKit integration to ask it to
render the text in an image that I can reuse?

TIA,
J.-P.
Re: Render HTML [message #692959 is a reply to message #692364] Tue, 05 July 2011 10:41 Go to previous messageGo to next message
Grant Gayed is currently offline Grant Gayed
Messages: 2148
Registered: July 2009
Senior Member
Hi,

I don't think there's a way to do this, the webkit natives that swt
binds to are those that are needed specifically for its provision of the
Browser control. You can investigate whether webkit provides the
natives that you need, and if so then bind directly to it (not through
swt). I don't remember seeing these, but it's possible that they're
there and I just ignored them if they weren't useful for the Browser
implementation.

Grant


On 7/4/2011 5:36 AM, J.-P. Pellet wrote:
> Hi,
>
> I'm interested in displaying HTML text in an app I have that doesn't use
> SWT. Is there a way I can use SWT's WebKit integration to ask it to
> render the text in an image that I can reuse?
>
> TIA,
> J.-P.
Re: Render HTML [message #693503 is a reply to message #692959] Wed, 06 July 2011 11:23 Go to previous message
J.-P. Pellet is currently offline J.-P. Pellet
Messages: 71
Registered: July 2009
Member
Hi Grant,

Thanks for your comments. I abandoned this track and went for Flying
Saucer instead: http://code.google.com/p/flying-saucer/

Granted, the capabilities are much more limited, but enough for my use case.

Cheers,
J.-P.

On 05.07.11 16:41, Grant Gayed wrote:
> Hi,
>
> I don't think there's a way to do this, the webkit natives that swt
> binds to are those that are needed specifically for its provision of the
> Browser control. You can investigate whether webkit provides the natives
> that you need, and if so then bind directly to it (not through swt). I
> don't remember seeing these, but it's possible that they're there and I
> just ignored them if they weren't useful for the Browser implementation.
>
> Grant
Previous Topic:Pls help! How to add a checkbox on the tableheader?
Next Topic:Double Scale SWT
Goto Forum:
  


Current Time: Sat Apr 19 13:26:32 EDT 2014

Powered by FUDForum. Page generated in 0.01871 seconds