#ifndef WX_PRECOMP
#include "wx/app.h"
#include "wx/log.h"
- #include "wx/panel.h"
#include "wx/frame.h"
#include "wx/button.h"
#include "wx/checkbox.h"
bool WidgetsApp::OnInit()
{
+ if ( !wxApp::OnInit() )
+ return FALSE;
+
// the reason for having these ifdef's is that I often run two copies of
// this sample side by side and it is useful to see which one is which
wxString title;
title += _T("wxMSW");
#elif defined(__WXGTK__)
title += _T("wxGTK");
+#elif defined(__WXMAC__)
+ title += _T("wxMAC");
+#elif defined(__WXMOTIF__)
+ title += _T("wxMOTIF");
#else
title += _T("wxWindows");
#endif
);
m_lboxLog = new wxListBox(m_panel, -1);
sizerDown->Add(m_lboxLog, 1, wxGROW | wxALL, 5);
+ sizerDown->SetMinSize(100, 150);
+
wxBoxSizer *sizerBtns = new wxBoxSizer(wxHORIZONTAL);
wxButton *btn = new wxButton(m_panel, Widgets_ClearLog, _T("Clear &log"));
sizerBtns->Add(btn);