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:
@@ -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() )
|
||||
|
Reference in New Issue
Block a user