added wxICON_NONE and implement support for it in wxGTK (closes #2897)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-06-28 16:25:37 +00:00
parent 78eecde086
commit 7e3204b45c
5 changed files with 34 additions and 16 deletions

View File

@@ -2458,12 +2458,14 @@ TestMessageBoxDialog::TestMessageBoxDialog(wxWindow *parent)
// icon choice
const wxString icons[] = {
"&Information", "&Question", "&Warning", "&Error"
"&None", "&Information", "&Question", "&Warning", "&Error"
};
m_icons = new wxRadioBox(this, wxID_ANY, "&Icon:",
m_icons = new wxRadioBox(this, wxID_ANY, "&Icons",
wxDefaultPosition, wxDefaultSize,
WXSIZEOF(icons), icons);
// Make the 'Information' icon the default one:
m_icons->SetSelection(1);
sizerTop->Add(m_icons, wxSizerFlags().Expand().Border());
@@ -2524,10 +2526,11 @@ void TestMessageBoxDialog::OnApply(wxCommandEvent& WXUNUSED(event))
switch ( m_icons->GetSelection() )
{
case 0: style |= wxICON_INFORMATION; break;
case 1: style |= wxICON_QUESTION; break;
case 2: style |= wxICON_WARNING; break;
case 3: style |= wxICON_ERROR; break;
case 0: style |= wxICON_NONE; break;
case 1: style |= wxICON_INFORMATION; break;
case 2: style |= wxICON_QUESTION; break;
case 3: style |= wxICON_WARNING; break;
case 4: style |= wxICON_ERROR; break;
}
if ( m_chkCentre->IsChecked() )