Warning fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -104,7 +104,7 @@ public:
|
|||||||
m_bitmap = wxBITMAP(wiztest2);
|
m_bitmap = wxBITMAP(wiztest2);
|
||||||
|
|
||||||
m_checkbox = new wxCheckBox(this, wxID_ANY, _T("&Check me"));
|
m_checkbox = new wxCheckBox(this, wxID_ANY, _T("&Check me"));
|
||||||
|
|
||||||
wxBoxSizer *mainSizer = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer *mainSizer = new wxBoxSizer(wxVERTICAL);
|
||||||
mainSizer->Add(
|
mainSizer->Add(
|
||||||
new wxStaticText(this, wxID_ANY,
|
new wxStaticText(this, wxID_ANY,
|
||||||
@@ -170,7 +170,7 @@ public:
|
|||||||
WXSIZEOF(choices), choices,
|
WXSIZEOF(choices), choices,
|
||||||
1, wxRA_SPECIFY_COLS);
|
1, wxRA_SPECIFY_COLS);
|
||||||
m_radio->SetSelection(Both);
|
m_radio->SetSelection(Both);
|
||||||
|
|
||||||
wxBoxSizer *mainSizer = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer *mainSizer = new wxBoxSizer(wxVERTICAL);
|
||||||
mainSizer->Add(
|
mainSizer->Add(
|
||||||
m_radio,
|
m_radio,
|
||||||
@@ -178,7 +178,7 @@ public:
|
|||||||
wxALL,
|
wxALL,
|
||||||
5 // Border
|
5 // Border
|
||||||
);
|
);
|
||||||
|
|
||||||
SetSizer(mainSizer);
|
SetSizer(mainSizer);
|
||||||
mainSizer->Fit(this);
|
mainSizer->Fit(this);
|
||||||
}
|
}
|
||||||
@@ -230,7 +230,7 @@ public:
|
|||||||
{
|
{
|
||||||
m_prev = prev;
|
m_prev = prev;
|
||||||
m_next = next;
|
m_next = next;
|
||||||
|
|
||||||
wxBoxSizer *mainSizer = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer *mainSizer = new wxBoxSizer(wxVERTICAL);
|
||||||
|
|
||||||
mainSizer->Add(
|
mainSizer->Add(
|
||||||
@@ -255,9 +255,9 @@ public:
|
|||||||
unsigned int ui;
|
unsigned int ui;
|
||||||
for ( ui = 0; ui < WXSIZEOF(aszChoices); ui++ )
|
for ( ui = 0; ui < WXSIZEOF(aszChoices); ui++ )
|
||||||
astrChoices[ui] = aszChoices[ui];
|
astrChoices[ui] = aszChoices[ui];
|
||||||
m_checklistbox = new wxCheckListBox(this, wxID_ANY, wxDefaultPosition, wxSize(100,100),
|
m_checklistbox = new wxCheckListBox(this, wxID_ANY, wxDefaultPosition, wxSize(100,100),
|
||||||
WXSIZEOF(aszChoices), astrChoices);
|
WXSIZEOF(aszChoices), astrChoices);
|
||||||
|
|
||||||
mainSizer->Add(
|
mainSizer->Add(
|
||||||
m_checklistbox,
|
m_checklistbox,
|
||||||
0, // No vertical stretching
|
0, // No vertical stretching
|
||||||
@@ -265,7 +265,7 @@ public:
|
|||||||
5 // Border width
|
5 // Border width
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
SetSizer(mainSizer);
|
SetSizer(mainSizer);
|
||||||
mainSizer->Fit(this);
|
mainSizer->Fit(this);
|
||||||
}
|
}
|
||||||
@@ -379,7 +379,8 @@ void MyFrame::OnRunWizard(wxCommandEvent& WXUNUSED(event))
|
|||||||
|
|
||||||
// a wizard page may be either an object of predefined class
|
// a wizard page may be either an object of predefined class
|
||||||
wxWizardPageSimple *page1 = new wxWizardPageSimple(wizard);
|
wxWizardPageSimple *page1 = new wxWizardPageSimple(wizard);
|
||||||
wxStaticText *text = new wxStaticText(page1, wxID_ANY,
|
|
||||||
|
/* wxStaticText *text = */ new wxStaticText(page1, wxID_ANY,
|
||||||
_T("This wizard doesn't help you\nto do anything at all.\n")
|
_T("This wizard doesn't help you\nto do anything at all.\n")
|
||||||
_T("\n")
|
_T("\n")
|
||||||
_T("The next pages will present you\nwith more useless controls."),
|
_T("The next pages will present you\nwith more useless controls."),
|
||||||
@@ -402,7 +403,7 @@ void MyFrame::OnRunWizard(wxCommandEvent& WXUNUSED(event))
|
|||||||
|
|
||||||
// allow the wizard to size itself around the pages
|
// allow the wizard to size itself around the pages
|
||||||
wizard->GetPageAreaSizer()->Add(page1);
|
wizard->GetPageAreaSizer()->Add(page1);
|
||||||
|
|
||||||
if ( wizard->RunWizard(page1) )
|
if ( wizard->RunWizard(page1) )
|
||||||
{
|
{
|
||||||
wxMessageBox(_T("The wizard successfully completed"), _T("That's all"),
|
wxMessageBox(_T("The wizard successfully completed"), _T("That's all"),
|
||||||
|
Reference in New Issue
Block a user