X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..7052b16dedae79bec878ce41e4607a39a969610c:/src/generic/msgdlgg.cpp diff --git a/src/generic/msgdlgg.cpp b/src/generic/msgdlgg.cpp index 467ce46b18..19e4307b25 100644 --- a/src/generic/msgdlgg.cpp +++ b/src/generic/msgdlgg.cpp @@ -5,8 +5,8 @@ // Modified by: // Created: 04/01/98 // RCS-ID: $Id$ -// Copyright: (c) Julian Smart, Markus Holzem, Robert Roebling -// Licence: wxWindows license +// Copyright: (c) Julian Smart and Robert Roebling +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ @@ -99,15 +99,19 @@ wxGenericMessageDialog::wxGenericMessageDialog( wxWindow *parent, bitmap = wxArtProvider::GetIcon(wxART_QUESTION, wxART_MESSAGE_BOX); break; } +#if wxUSE_STATIC_BITMAP wxStaticBitmap *icon = new wxStaticBitmap(this, -1, bitmap); if (is_pda) topsizer->Add( icon, 0, wxTOP|wxLEFT|wxRIGHT | wxALIGN_LEFT, 10 ); else icon_text->Add( icon, 0, wxCENTER ); +#endif } // 2) text +#if wxUSE_STATTEXT // && wxUSE_TEXTCTRL icon_text->Add( CreateTextSizer( message ), 0, wxCENTER | wxLEFT, 10 ); +#endif topsizer->Add( icon_text, 1, wxCENTER | wxLEFT|wxRIGHT|wxTOP, 10 ); @@ -117,7 +121,9 @@ wxGenericMessageDialog::wxGenericMessageDialog( wxWindow *parent, #endif // 4) buttons +#if wxUSE_BUTTON topsizer->Add( CreateButtonSizer( style ), 0, wxCENTRE | wxALL, 10 ); + #endif SetAutoLayout( TRUE ); SetSizer( topsizer );