Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Is it possible to zoom a Browsers content?(Like you can in IE etc.)
icon5.gif  Is it possible to zoom a Browsers content? [message #671488] Wed, 18 May 2011 01:44 Go to next message
Eclipse UserFriend
I'd like the user to be able to zoom the contents of a Browser. Is this possible? How?

Thanks,

-sbs
(no subject) [message #671611 is a reply to message #671488] Wed, 18 May 2011 09:17 Go to previous message
Eclipse UserFriend
Hi,

There is not cross-Browser API for doing this. However there are a couple
of possibilities you can explore:

1. When I google "javascript zoom" it gives links to several JS scripts that
claim to do zooming. I haven't tried any of them, but if you find one that
works for you then you can probably use it from the java side with
Browser.execute() or Browser.evaluate() calls.

2. Alternatively, if you want to ship a XULRunner with your app then you can
create your Browser instance with syle SWT.MOZILLA and do the zooming via
JavaXPCOM. There is an example of this in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=160620 . For more info on
using JavaXPCOM see http://www.eclipse.org/swt/faq.php#howusejavaxpcom .

HTH,
Grant


"SBS" <forums-noreply@eclipse.org> wrote in message
news:iqvlsf$hhb$1@news.eclipse.org...
> I'd like the user to be able to zoom the contents of a
> Browser. Is this possible? How?
>
> Thanks,
>
> -sbs
Previous Topic:adding component to a tableviewer
Next Topic:Re: I would like to remove windows menu in textbox
Goto Forum:
  


Current Time: Mon Jul 14 10:58:25 EDT 2025

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

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

Back to the top