// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
-
+
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
-
+
#ifdef __BORLANDC__
#pragma hdrstop
#endif
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
EVT_MENU(Minimal_Quit, MyFrame::OnQuit)
EVT_MENU(Minimal_About, MyFrame::OnAbout)
- EVT_BUTTON(Minimal_About, MyFrame::OnAbout)
END_EVENT_TABLE()
// Create a new application object: this macro will allow wxWidgets to create
SetMenuBar(menuBar);
#endif // wxUSE_MENUS
- wxSizer * const sizer = new wxBoxSizer(wxVERTICAL);
- sizer->Add(new wxButton(this, wxID_ABOUT));
- sizer->Add(new wxButton(this, wxID_OPEN));
- SetSizer(sizer);
-
#if wxUSE_STATUSBAR
// create a status bar just for fun (by default with 1 pane only)
CreateStatusBar(2);
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
{
- wxGetTextFromUser("Your text?");
-
-#if 0
wxMessageBox(wxString::Format
(
"Welcome to %s!\n"
"About wxWidgets minimal sample",
wxOK | wxICON_INFORMATION,
this);
-#endif
}