Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » DSOFramer ActiveX and SWT - SWTOleSample.java (0/1)
DSOFramer ActiveX and SWT - SWTOleSample.java (0/1) [message #449767] Fri, 28 January 2005 23:07 Go to next message
Hani Seifeddine is currently offline Hani SeifeddineFriend
Messages: 11
Registered: July 2009
Junior Member
Hi,

I am trying to host the DSOFramer ActiveX available at:
http://support.microsoft.com/default.aspx?scid=kb;en-us;311765. in an
eclipse view to be used within my RCP application.
The ActiveX is fully functional and provides the best solution
available to integrate MSOffice applications with SWT widgets, only I
am facing two small bugs and hoping that someone can provide me
solutions or workarounds.

In the attached sample I set the size of the OleFrame to 800x600 to be
visible once the shell is displayed, after I find no way to make it
resize with it's parent or to fill all the available parent drawing
area even with FILL_BOTH set.
When I close the Shell by pressing on the window X top right button
the JVM crashes and generates a core file. I think it's because the
shell is disposed before the OleSite and OleFrame are. (Not quite sure
since there is no window is closing event in SWT).

I am using Windows XP SP2, Office 2003 SR1, J2SDK1.4.2 and Eclipse
3.0.1 for my tests.

Many thanks,
H.S
Re: DSOFramer ActiveX and SWT - SWTOleSample.java (0/1) [message #450532 is a reply to message #449767] Tue, 15 February 2005 08:56 Go to previous message
Jaap Reitsma is currently offline Jaap ReitsmaFriend
Messages: 69
Registered: July 2009
Member
Hi,

In my efforts to get the Windows Media Player working in SWT (partly
succeeded) I discovered that for whatever reason I had to call a setFocus()
before closing the shell. Not doing would result in a crash in the native
code. Adding a setFocus may solve your problem.

I also could not call 'ole.inplaceactivate', but instead use the 'ole.show'
and that did the job, i.e. once I found out the proper place to call it.

This media player also shows resize and positioning problems. It looks as if
the SWT activeX code is not yet sufficiently validated for general use of
activeX components. My problem is that it requires indepth knowledge of both
SWT internals and ActiveX API usage, which I haven't.

Kind regards,

Jaap


"Evaluator" <evaluator@caramail.com> wrote in message
news:3chlv0pgn82m73cihkfemtc5dfam8o70pa@4ax.com...
> Hi,
>
> I am trying to host the DSOFramer ActiveX available at:
> http://support.microsoft.com/default.aspx?scid=kb;en-us;311765. in an
> eclipse view to be used within my RCP application.
> The ActiveX is fully functional and provides the best solution
> available to integrate MSOffice applications with SWT widgets, only I
> am facing two small bugs and hoping that someone can provide me
> solutions or workarounds.
>
> In the attached sample I set the size of the OleFrame to 800x600 to be
> visible once the shell is displayed, after I find no way to make it
> resize with it's parent or to fill all the available parent drawing
> area even with FILL_BOTH set.
> When I close the Shell by pressing on the window X top right button
> the JVM crashes and generates a core file. I think it's because the
> shell is disposed before the OleSite and OleFrame are. (Not quite sure
> since there is no window is closing event in SWT).
>
> I am using Windows XP SP2, Office 2003 SR1, J2SDK1.4.2 and Eclipse
> 3.0.1 for my tests.
>
> Many thanks,
> H.S
>
Previous Topic:Font and text color
Next Topic:A post of appreciation to great answers to Veronika Irvine!!
Goto Forum:
  


Current Time: Thu Apr 25 00:12:42 GMT 2024

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

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

Back to the top