Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | function MSGBOX | ||
---|---|---|---|
Product: | App Dev | Reporter: | cedgia <ced> |
Component: | api | Assignee: | hdu <hdu> |
Status: | CLOSED DUPLICATE | QA Contact: | issues@api <issues> |
Severity: | Trivial | ||
Priority: | P3 | CC: | christianjunker, issues |
Version: | 3.3.0 or older (OOo) | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Latest Confirmation in: | --- |
Developer Difficulty: | --- |
Description
cedgia
2004-02-06 10:21:09 UTC
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 |