#include "wx/sizer.h"
#include "widgets.h"
-
+#if 1
#include "icons/spinbtn.xpm"
// ----------------------------------------------------------------------------
wxImageList *imaglist)
: WidgetsPage(notebook)
{
+ m_chkVert = NULL;
+ m_chkWrap = NULL;
+ m_spinbtn = NULL;
+ m_spinctrl = NULL;
+ m_textValue = NULL;
+ m_textMin = NULL;
+ m_textMax = NULL;
imaglist->Add(wxBitmap(spinbtn_xpm));
// init everything
// right pane
wxSizer *sizerRight = new wxBoxSizer(wxVERTICAL);
- sizerRight->SetMinSize(250, 0);
+ sizerRight->SetMinSize(150, 0);
m_sizerSpin = sizerRight; // save it to modify it later
Reset();
// the 3 panes panes compose the window
sizerTop->Add(sizerLeft, 0, wxGROW | (wxALL & ~wxLEFT), 10);
- sizerTop->Add(sizerMiddle, 1, wxGROW | wxALL, 10);
+ sizerTop->Add(sizerMiddle, 0, wxGROW | wxALL, 10);
sizerTop->Add(sizerRight, 1, wxGROW | (wxALL & ~wxRIGHT), 10);
// final initializations
void SpinBtnWidgetsPage::OnSpinCtrl(wxCommandEvent& event)
{
+ if (!m_spinctrl)
+ return;
int value = event.GetInt();
wxASSERT_MSG( value == m_spinctrl->GetValue(),
wxLogMessage(_T("Spin control value changed, now %d"), value);
}
+#endif