Apache OpenOffice (AOO) Bugzilla – Issue 74854
MsgBox with info icon shows wrong buttons
Last modified: 2017-05-20 09:32:03 UTC
' These work as expected showing Yes, No and Cancel buttons plus ' successsively Stop, Question and Exclamation symbols MsgBox "message", 3 MsgBox "message", 3 + 16 MsgBox "message", 3 + 32 MsgBox "message", 3 + 48 ' This does not work as expected, showing Yes, No and Cancel buttons plus ' an Information symbol. ' It gains the Information synbol but the only button is an OK button MsgBox "message", 3 + 64
->ab
STARTED, 2.x
basic and scripting issues now should be assigned to component "scripting"
set target to 3.x according to http://wiki.services.openoffice.org/wiki/Target_3x
*** Issue 25150 has been marked as a duplicate of this issue. ***
When 64 is specified that shows information symbol is InfoBox class and it supports only OK button to show. Should it support the different kind of buttons only for the MsgBox function?
It is rather obvious that if the user has requested a dialog with 3 buttons, they should receive a dialog with 3 buttons and not with the 1.
Created attachment 82022 [details] Patch to add InfoBox constructor that takes the style and to fix the problem Adds InfoBox( Window* pParent, WinBits nStyle, const XubString& rMessage ); to match with the other constructors like ErrorBox or QueryBox. And use it for the information box in MsgBox function.
"hdu" committed SVN revision 1546977 into trunk: #i74854# fix buttons in MsgBox with info icon
Created attachment 82024 [details] test document for different MsgBox styles
Many thanks to Hanya for the patch! It is committed in trunk now.
Clarified the issue summary to be more generic.
*** Issue 98161 has been marked as a duplicate of this issue. ***
Verified in the AOO410 branch.