Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » ActiveX in FullScreen
ActiveX in FullScreen [message #440689] Fri, 06 August 2004 09:55 Go to next message
Olivier is currently offline OlivierFriend
Messages: 24
Registered: July 2009
Junior Member
Hello,

I want to display an ActiveX (Blaxxun Contact, for the 3D) in a fullscreen
window.
I have a script to do the fullscreen window (found on this newsgroup) :

Display display = new Display();
Shell shell = new Shell(display, SWT.CLOSE | SWT.MAX | SWT.MIN);
Rectangle displayArea = display.getBounds();
shell.setBounds(shell.computeTrim(displayArea.x, displayArea.y,
displayArea.width, displayArea.height));
shell.open();

And I have a script to display an ActiveX :

OleFrame frame = new OleFrame(shell, SWT.NONE);
blaxxunSite = new OleControlSite(frame, SWT.NONE,
"blaxxunCC3D.blaxxunCC3D.1");
blaxxunAuto = new OleAutomation(blaxxunSite);
blaxxunSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE);
shell.layout();
shell.open();

But I can't merge the two, it doesn't work :(
Does somebody know how to do that ?

Thank you very much,
O.L. - french newbie
Re: ActiveX in FullScreen [message #440706 is a reply to message #440689] Fri, 06 August 2004 14:50 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
What exactly doesn't work?

"Olivier" <conquest_NOSP@M_firstream.net> wrote in message
news:Xns953D79E05496Cantares7364@204.138.98.10...
> Hello,
>
> I want to display an ActiveX (Blaxxun Contact, for the 3D) in a fullscreen
> window.
> I have a script to do the fullscreen window (found on this newsgroup) :
>
> Display display = new Display();
> Shell shell = new Shell(display, SWT.CLOSE | SWT.MAX | SWT.MIN);
> Rectangle displayArea = display.getBounds();
> shell.setBounds(shell.computeTrim(displayArea.x, displayArea.y,
> displayArea.width, displayArea.height));
> shell.open();
>
> And I have a script to display an ActiveX :
>
> OleFrame frame = new OleFrame(shell, SWT.NONE);
> blaxxunSite = new OleControlSite(frame, SWT.NONE,
> "blaxxunCC3D.blaxxunCC3D.1");
> blaxxunAuto = new OleAutomation(blaxxunSite);
> blaxxunSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE);
> shell.layout();
> shell.open();
>
> But I can't merge the two, it doesn't work :(
> Does somebody know how to do that ?
>
> Thank you very much,
> O.L. - french newbie
Re: ActiveX in FullScreen [message #440800 is a reply to message #440706] Fri, 06 August 2004 17:05 Go to previous messageGo to next message
Olivier is currently offline OlivierFriend
Messages: 24
Registered: July 2009
Junior Member
"Steve Northover" <steve_northover@ca.ibm.com> wrote in news:cf05nv$tj4$1
@eclipse.org:

> What exactly doesn't work?

Hello,

Well, if I merge the two scripts, I obtain a nice fullscreen window, but I
can't see the ActiveX :( I don't understand why ... and there is no java
error in the console to help me ...

If I replace the fullscreen creator :
Shell shell = new Shell(display, SWT.CLOSE | SWT.MAX | SWT.MIN);
Rectangle displayArea = display.getBounds();
shell.setBounds(shell.computeTrim(displayArea.x, displayArea.y,
displayArea.width, displayArea.height));

By :
Shell shell = parent.getShell();

It works correctly, but it's a windowed app ...


I've uploaded my script there :
http://olivier.ligny.free.fr/activex-java/

test.java -> create the thread which permit the app to live longer than
0.001 second ...
test_grph.java -> the main part, which gets a Shell() and then should
display the ActiveX.

Thank you very much,
O.L.
Re: ActiveX in FullScreen [message #440806 is a reply to message #440800] Fri, 06 August 2004 18:15 Go to previous message
Olivier is currently offline OlivierFriend
Messages: 24
Registered: July 2009
Junior Member
Yeah ! It works now !
I just added a little line : "frame.setBounds(0, 0, 1024, 768);" and then
it works ... :)

But unfortunately for me, the quality is bad likened to a fullscreen window
opened directly by the plugin (without Java) using all the power.
But I need Java or an other "medium" because I need to display some IE pop-
ups over the 3D scene.

Thank you,
O.L.
Previous Topic:SWT - The Standard Widget Toolkit - Volume 2?
Next Topic:Tab order in JFace Dialog
Goto Forum:
  


Current Time: Thu Apr 25 09:41:37 GMT 2024

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

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

Back to the top