Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » org.eclipse.swt.browser.Browser (win32, 3.0M5)
org.eclipse.swt.browser.Browser (win32, 3.0M5) [message #391626] Thu, 27 November 2003 10:44 Go to next message
Eclipse UserFriend
Browser.java
196: Variant pVarResult = auto.getProperty(rgdispid[0]);
197: pVarResult = auto.getProperty(rgdispid[0]);
i think this double assignment is a bug?
should i report this somewhere in bugzilla?


second problem:
i need to get IHTMLDocument2 from browser.
i need to listen to events on IHTMLDocument2.
what would be the best approach to accomplish this?
i am thinking about adding new methods to Browser class
public OleAutomation getDocument() or public OleAutomation getAuto()
another solution would be to create new listener in
org.eclipse.swt.browser
which will have access to Borwser.auto

i'm totaly lost :(
Re: org.eclipse.swt.browser.Browser (win32, 3.0M5) [message #393289 is a reply to message #391626] Fri, 28 November 2003 09:31 Go to previous message
Eclipse UserFriend
Hi Juozas

see answers below.

Chris

juozas salna wrote:

> Browser.java
> 196: Variant pVarResult = auto.getProperty(rgdispid[0]);
> 197: pVarResult = auto.getProperty(rgdispid[0]);
> i think this double assignment is a bug?
> should i report this somewhere in bugzilla?
It is a bug - many thanks. It has now been corrected. For future problems,
yes you can open a bug report (Platform / SWT ).

> second problem:
> i need to get IHTMLDocument2 from browser.
> i need to listen to events on IHTMLDocument2.
> what would be the best approach to accomplish this?
> i am thinking about adding new methods to Browser class
> public OleAutomation getDocument() or public OleAutomation getAuto()
> another solution would be to create new listener in
> org.eclipse.swt.browser
> which will have access to Borwser.auto

> i'm totaly lost :(

Please open a PR. Since you only need a solution for Windows platforms,
you would probably want to have your own windows specific Browser widget -
and add API as you suggested to get access to the IHTMLDocument2 interface
(getDocument).
Previous Topic:How can I create drop down list of images?
Next Topic:Eclipse M5 for FreeBSD
Goto Forum:
  


Current Time: Fri Sep 26 16:53:27 EDT 2025

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

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

Back to the top