To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=74385
Issue #|74385
Summary|com.sun.star.awt.XMessageBox becomes visible before ex
|ecute is called
Component|framework
Version|680m199
Platform|All
URL|
OS/Version|All
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|scripting
Assigned to|cd
Reported by|bc
------- Additional comments from [EMAIL PROTECTED] Fri Feb 9 14:41:46 +0000
2007 -------
After a com.sun.star.awt.XMessageBox is created with "createMessageBox" it
becomes immediately visible. I find this behaviour confusing although of cours
the messagebox does not become active before the "execute" method has been
called.
the following codesnippet can be used to reproduce the issue:
Object oToolkit =
m_xMCF.createInstanceWithContext("com.sun.star.awt.Toolkit", m_xContext);
XMessageBoxFactory xMessageBoxFactory = (XMessageBoxFactory)
UnoRuntime.queryInterface(XMessageBoxFactory.class, oToolkit);
// rectangle may be empty if position is in the center of the parent peer
Rectangle aRectangle = new Rectangle();
XMessageBox xMessageBox =
xMessageBoxFactory.createMessageBox(_xParentWindowPeer, aRectangle, "errorbox",
com.sun.star.awt.MessageBoxButtons.BUTTONS_OK, _sTitle, _sMessage);
if (xMessageBox != null){
short nResult = xMessageBox.execute();
}
---------------------------------------------------------------------
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]