Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 05:44 Go to next message
SBS  is currently offline SBS Friend
Messages: 57
Registered: January 2011
Member
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 13:17 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
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: Thu Apr 25 15:56:34 GMT 2024

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

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

Back to the top