Apache OpenOffice (AOO) Bugzilla – Issue 25150
function MSGBOX
Last modified: 2013-02-24 21:08:12 UTC
when I use the next function in a calc macro (openoffice script) yesno=msgbox("Are you sure?",4 + 256 + 64,"ALERT") the msgbox contain only the OK button (0) instead of yes/no button (4). This function work correctly when i change "64" in 16, 32, 48. I think that's a bug (in Excel work correctly)... Bye Sergio
looks like Basic RunTime, not API
OOo 2.0
According to the roadmap of OpenOffice.org 2.0 (http://tools.openoffice.org/releases/q-concept.html) this issue has been scheduled for 3.0.
ab->ssa: yesno=msgbox("Are you sure?",4 + 256 + 64,"ALERT") The 64 means "Add the Information icon to the dialog", whereas 16/32/48 stand for other icons. In Basic this is realised like this: nType &= (16+32+64); switch( nType ) { case 16: pBox = new ErrorBox( pParent, nWinBits, aMsg ); break; case 32: pBox = new QueryBox( pParent, nWinBits, aMsg ); break; case 48: pBox = new WarningBox( pParent, nWinBits, aMsg ); break; case 64: pBox = new InfoBox( pParent, aMsg ); break; default: pBox = new MessBox( pParent, nWinBits, aTitle, aMsg ); } Problem: All Ctors but the InfoBox Ctor allow to pass the nWinBits parameter that define the buttons. So for InfoBox the button sceme by the 4 = "Display Yes and No buttons" is lost. Is there a way to get the Info icon without using InfoBox or do we need another InfoBox Ctor supporting WinBits?
can verify, adding myself to cc.
ssa: reassign to hdu
same as #74854 [1] [1] http://fr.openoffice.org/issues/show_bug.cgi?id=74854
. *** This issue has been marked as a duplicate of 74854 ***
duplicate -> closed