Kaydet (Commit) 02cc651a authored tarafından Herbert Dürr's avatar Herbert Dürr

#i74854# fix buttons in MsgBox with info icon

Patch by: hanya.runo@gmail.com
Found by: ooo@catcons.co.uk
Tested by: hdu@apache.org
üst ab750a7c
......@@ -4311,7 +4311,7 @@ RTLFUNC(MsgBox)
pBox = new WarningBox( pParent, nWinBits, aMsg );
break;
case 64:
pBox = new InfoBox( pParent, aMsg );
pBox = new InfoBox( pParent, nWinBits, aMsg );
break;
default:
pBox = new MessBox( pParent, nWinBits, aTitle, aMsg );
......
......@@ -120,6 +120,8 @@ private:
public:
InfoBox( Window* pParent, const XubString& rMessage );
InfoBox( Window* pParent, const ResId & rResId );
InfoBox( Window* pParent, WinBits nStyle,
const XubString& rMessage );
static Image GetStandardImage();
static Image GetStandardImageHC();
......
......@@ -515,6 +515,14 @@ InfoBox::InfoBox( Window* pParent, const ResId & rResId ) :
// -----------------------------------------------------------------------
InfoBox::InfoBox( Window* pParent, WinBits nStyle, const XubString& rMessage ) :
MessBox( pParent, nStyle, ImplGetSVEmptyStr(), rMessage )
{
ImplInitInfoBoxData();
}
// -----------------------------------------------------------------------
Image InfoBox::GetStandardImage()
{
ImplInitMsgBoxImageList();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment