Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | com.sun.star.awt.XMessageBox becomes visible before execute is called | ||||||
---|---|---|---|---|---|---|---|
Product: | General | Reporter: | berend.cornelius | ||||
Component: | scripting | Assignee: | thorsten.martens | ||||
Status: | CLOSED FIXED | QA Contact: | issues@framework <issues> | ||||
Severity: | Trivial | ||||||
Priority: | P3 | CC: | issues | ||||
Version: | 680m199 | ||||||
Target Milestone: | OOo 2.3 | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Issue Type: | PATCH | Latest Confirmation in: | --- | ||||
Developer Difficulty: | --- | ||||||
Issue Depends on: | |||||||
Issue Blocks: | 72764 | ||||||
Attachments: |
|
Description
berend.cornelius
2007-02-09 14:41:46 UTC
cd: Accepted. Created attachment 45833 [details]
The line "pWindow->Show();" which shows the message box ahead is removed.
cd: Change task to patch. Will check patch from LiangWeike. cd: Accepted and committed to CWS fwk66. cd->tm: The following Basic script can be used to verify the issue. The full script should show the message box. To verify that the message box is not visible after creating it (via createMessageBox) just comment out the last statement and start the script again. The message box shouldn't be visible. Please verify. REM ***** BASIC ***** Sub Main oMsgBoxFactory = createUnoService( "com.sun.star.awt.Toolkit" oDesktop = createUnoService( "com.sun.star.frame.Desktop" ) REM ***** Empty rectangle means use default values ***** Dim aRectangle as new com.sun.star.awt.Rectangle oButtons = com.sun.star.awt.MessageBoxButtons.BUTTONS_YES_NO_CANCEL+com.sun.star.awt.MessageBoxButtons.DEFAULT_BUTTON_YES REM ***** Don not use getCurrentFrame() in your relase code!! ***** REM ***** This example uses it just be small ***** oParent = oDesktop.getCurrentFrame().getContainerWindow() oMsgBox = oMsgBoxFactory.createMessageBox( oParent, aRectangle, "infobox", oButtons, "Title", "This is the message box text" ) oMsgBox.execute() End Sub checked and verified in cws fwk66 -> OK ! closed |