| Summary: | [OLE] When using OleControlSite to embed MS Word 2007 in RAC view, Word commands do not react | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Alex Safro <alex.safro> | ||||
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | Felipe Heidrich <eclipse.felipe> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | damodhar.akula, spwanderer-know | ||||
| Version: | 4.0 | Keywords: | triaged | ||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | stalebug | ||||||
| Attachments: |
|
||||||
|
Description
Alex Safro
Created attachment 155721 [details]
Ole test view with OleControlSite to embed MS Word 2007
The problem is being recreated at most of the times (sometimes it is working, but most of the times the problem can be recreated). the word commands and tabs are being out of focus and cannot be clicked.
Can you provide a SWT only test case that reproduces this problem ? Thank you We did some more testing.
If we open a dialog (even a messagebox) on the view's toolbar commands, we do not have this issue. But say, on click of a view toolbar command, I add some content to the Word document using OleAutomation. The content gets added but Word Ribbon becomes unresponsive i.e., nothing happens on mouse click over a ribbon item.
I am not sure but I think this could be focus related. When we open a dialog and close it, the OnFocusIn(Event e) gets called and everything's fine. However, in the other case, as above, the OnFocusIn isn't called (rightly so). What I tried first was to force focus but this doesn't change anything. The OnFocusIn has a check isFocusControl() and since the OleControlSite is already in focus, it returns.
The work-around that worked for us was to set the focus onto the OleFrame of the OleControlSite. So as soon as I am done changing the Word document, I set the focus to the OleFrame object. This somehow brings back the Word Ribbon from its un-responsive state.
The following code (taken from OleClientSite.java) was used.
int frameHnd = oleFrame.handle;
if (frameHnd != 0) {
OS.SetFocus(frameHnd);
}
Any suggestions/comments appreciated.
This is a one-off bulk update. (The last one in the triage migration). Moving bugs from swt-triaged@eclipse to platform-swt-inbox@eclipse.org and adding "triaged" keyword as per new triage process: https://wiki.eclipse.org/SWT/Devel/Triage See Bug 518478 for details. Tag for notification/mail filters: @TriageBulkUpdate This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |