ActiveX in FullScreen [message #440689] |
Fri, 06 August 2004 09:55 |
Olivier 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 |
Steve Northover 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 |
Olivier 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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02433 seconds