removed Robert's test code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
69477ac449
commit
191edeb5fb
@ -181,33 +181,9 @@ void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
|
|||||||
|
|
||||||
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
|
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
#if 1
|
|
||||||
wxDialog dialog( this, -1, "Test", wxDefaultPosition, wxDefaultSize,
|
|
||||||
wxDEFAULT_DIALOG_STYLE | wxCLIP_CHILDREN | wxRESIZE_BORDER );
|
|
||||||
wxDialog *parent = &dialog;
|
|
||||||
|
|
||||||
wxBoxSizer *item0 = new wxBoxSizer( wxVERTICAL );
|
|
||||||
|
|
||||||
wxStaticBox *item2 = new wxStaticBox( parent, -1, "Text" );
|
|
||||||
wxStaticBoxSizer *item1 = new wxStaticBoxSizer( item2, wxVERTICAL );
|
|
||||||
|
|
||||||
wxCheckBox *item3 = new wxCheckBox( parent, -1, "Check", wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
item1->Add( item3, 0, wxALIGN_CENTRE|wxALL, 5 );
|
|
||||||
|
|
||||||
item0->Add( item1, 0, wxALIGN_CENTRE|wxALL, 10 );
|
|
||||||
|
|
||||||
parent->SetAutoLayout( TRUE );
|
|
||||||
parent->SetSizer( item0 );
|
|
||||||
item0->Fit( parent );
|
|
||||||
item0->SetSizeHints( parent );
|
|
||||||
|
|
||||||
dialog.ShowModal();
|
|
||||||
|
|
||||||
#else
|
|
||||||
wxString msg;
|
wxString msg;
|
||||||
msg.Printf( _T("This is the about dialog of minimal sample.\n")
|
msg.Printf( _T("This is the about dialog of minimal sample.\n")
|
||||||
_T("Welcome to %s"), wxVERSION_STRING);
|
_T("Welcome to %s"), wxVERSION_STRING);
|
||||||
|
|
||||||
wxMessageBox(msg, _T("About Minimal"), wxOK | wxICON_INFORMATION, this);
|
wxMessageBox(msg, _T("About Minimal"), wxOK | wxICON_INFORMATION, this);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user