diff --git a/samples/minimal/minimal.cpp b/samples/minimal/minimal.cpp index 27aabd76d7..b9599a18ea 100644 --- a/samples/minimal/minimal.cpp +++ b/samples/minimal/minimal.cpp @@ -164,6 +164,12 @@ MyFrame::MyFrame(const wxString& title) // ... and attach this menu bar to the frame SetMenuBar(menuBar); +#else + // If menus are not available add a button to access the about box + wxSizer* sizer = new wxBoxSizer(wxHORIZONTAL); + wxButton* aboutBtn = new wxButton(this, wxID_ANY, "About..."); + aboutBtn->Bind(wxEVT_BUTTON, &MyFrame::OnAbout, this); + sizer->Add(aboutBtn, wxSizerFlags().Center()); #endif // wxUSE_MENUS #if wxUSE_STATUSBAR