How to use DSOFramer.ocx in a RCP application? [message #460206] |
Mon, 18 December 2006 03:03  |
Eclipse User |
|
|
|
hi,
I've questions about how to use DOSFramer.ocx.
I registered and embeded the DSOFramer.ocx in my RCP application with the code below:
------------------------------------------------------
private OleFrame oleFrame;
private OleControlSite controlSite;
private OleAutomation word;
oleFrame = new OleFrame(composite,SWT.NULL);
controlSite = new OleControlSite(oleFrame,SWT.NONE,"DSOFramer.FramerControl");
controlSite.doVerb(OLE.OLEIVERB_INPLACEACTIVATE);
word = new OleAutomation(controlSite);
------------------------------------------------------
1.When I run my application, the ocx displayed, but I can not use the menu "File", as if it is disabled.Why? How can I solve it?
2.How can I open a file in code after the ocx displayed?
3.How can I handle the event that user select some content? I can not get the event ID.
Thanks,Xldelg
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04516 seconds