Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » OLE IDispatch | Adobe SVG Control : Invoking ECMAScript functions
OLE IDispatch | Adobe SVG Control : Invoking ECMAScript functions [message #442778] Mon, 13 September 2004 08:46 Go to next message
Eclipse UserFriend
Originally posted by: ralf.audiofarm.de

With the help of Veronika's "ActiveX Support In SWT" article & other
resources on the web I managed to embed Adobe's Viewer Control into an SWT
application and access properties and methods as defined in the IDL.

http://www.protocol7.com/svg-wiki/index.php/AsvIDL

Loading SVG documents via "setSrc(url)" works. However, I'm stuck with
invoking ECMAScript functions embedded *in* the loaded SVG document from
within Java.

It's supposed to look like that, but I wasn't able to pass the correct
parameters and make it work:

Variant result = oleAutomation.invoke(0x0000006d); // getWindow()
IDispatch window = result.getDispatch();
window.invoke(dispIdMember, riid, lcid, dwFlags, pDispParams, pVarResult,
pExcepInfo, pArgErr);

Does somebody have a working example, maybe even for other Controls (MSIE
Browser Control + HTML document + invoking embedded Javascript functions)?

ralf ...
Repost: OLE IDispatch | Adobe SVG Control : Invoking ECMAScript functions [message #443525 is a reply to message #442778] Mon, 27 September 2004 11:37 Go to previous message
Eclipse UserFriend
Originally posted by: ralf.audiofarm.de

I'm reposting this question.

Maybe someone who knows is back from summer holiday meanwhile ... ;o)

ralf ...

> With the help of Veronika's "ActiveX Support In SWT" article & other
> resources on the web I managed to embed Adobe's Viewer Control into an SWT
> application and access properties and methods as defined in the IDL.

> http://www.protocol7.com/svg-wiki/index.php/AsvIDL

> Loading SVG documents via "setSrc(url)" works. However, I'm stuck with
> invoking ECMAScript functions embedded *in* the loaded SVG document from
> within Java.

> It's supposed to look like that, but I wasn't able to pass the correct
> parameters and make it work:

> Variant result = oleAutomation.invoke(0x0000006d); // getWindow()
> IDispatch window = result.getDispatch();
> window.invoke(dispIdMember, riid, lcid, dwFlags, pDispParams, pVarResult,
> pExcepInfo, pArgErr);

> Does somebody have a working example, maybe even for other Controls (MSIE
> Browser Control + HTML document + invoking embedded Javascript functions)?

> ralf ...
Previous Topic:Should I package SWT classes in my app jxe?
Next Topic:Java3D and SWT on Mac
Goto Forum:
  


Current Time: Mon Sep 23 15:49:50 GMT 2024

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

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

Back to the top