To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=49454
------- Additional comments from [EMAIL PROTECTED] Mon Jul 18 02:28:25 -0700
2005 -------
Calling setFocusable(true) in LocalOfficeWindow.aquireSystemWindow does not
help.
Also tried this without success:
-added private native void setFocus(long hwnd) in LocalOfficeWindow which
was called in private synchronized void aquireSystemWindow()
In the native part a SetFocus on the child window of the LocalOfficeWindow,
which is the office window, is called.
Maybe the window must be properly removed from the keyboard focus manager, which
is done by java.lang.Component.removeNotify. Because we remove the office window
before that code is run, this may cause problems. The idea was to call
LocalOfficeWindow.releaseSystemWindow, when the parent is destroyed. That is,
when in removeNotify ComponentPeer.dispose is called. I thought then the Window
is destroyed and we receive a WM_DESTROY message. Then the code that handles the
window and focus management in removeNotify would have been run already.
However, in our WindowProc for LocalOfficeWindow we do not receive a WM_DESTROY.
Although every time we add the LocalOfficeWindow to a JavaFrame a new native
peer is created.
I also experimented with calling Components.setEnable, setVisible, requestFocus,
but without success.
Also calling Frame.add(bean), Frame.remove.bean in the AWT thread did not work:
EventQueue q =
Toolkit.getDefaultToolkit().getSystemEventQueue();
q.invokeAndWait( new Runnable() {
public void run() {
try {
bean.releaseSystemWindow();
frame.remove(bean);
} catch (Exception e) {
e.printStackTrace();
}
}
});
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]