#include "icons/spinbtn.xpm"
// ----------------------------------------------------------------------------
#include "icons/spinbtn.xpm"
// ----------------------------------------------------------------------------
m_textMax = new wxTextCtrl(this, SpinBtnPage_MaxText, _T(""));
sizerRow->Add(m_textMax, 1, wxLEFT | wxALIGN_CENTRE_VERTICAL, 5);
m_textMax = new wxTextCtrl(this, SpinBtnPage_MaxText, _T(""));
sizerRow->Add(m_textMax, 1, wxLEFT | wxALIGN_CENTRE_VERTICAL, 5);
- m_textMin->SetValue(wxString::Format(_T("%lu"), m_min));
- m_textMax->SetValue(wxString::Format(_T("%lu"), m_max));
+ m_textMin->SetValue( wxString::Format(_T("%d"), m_min) );
+ m_textMax->SetValue( wxString::Format(_T("%d"), m_max) );
sizerMiddle->Add(sizerRow, 0, wxALL | wxGROW, 5);
// right pane
wxSizer *sizerRight = new wxBoxSizer(wxVERTICAL);
sizerMiddle->Add(sizerRow, 0, wxALL | wxGROW, 5);
// right pane
wxSizer *sizerRight = new wxBoxSizer(wxVERTICAL);
// the 3 panes panes compose the window
sizerTop->Add(sizerLeft, 0, wxGROW | (wxALL & ~wxLEFT), 10);
// 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
sizerTop->Add(sizerRight, 1, wxGROW | (wxALL & ~wxRIGHT), 10);
// final initializations
- m_sizerSpin->Remove((int)0);
- m_sizerSpin->Remove((int)0);
- m_sizerSpin->Remove((int)0);
+ m_sizerSpin->Remove( 0 );
+ m_sizerSpin->Remove( 0 );
+ m_sizerSpin->Remove( 0 );
- wxLogMessage(_T("Spin button value incremented, will be %d (was %d)"),
- event.GetInt(), m_spinbtn->GetValue());
+ wxLogMessage( _T("Spin button value incremented, will be %ld (was %d)"),
+ event.GetInt(), m_spinbtn->GetValue() );
- wxLogMessage(_T("Spin button value decremented, will be %d (was %d)"),
- event.GetInt(), m_spinbtn->GetValue());
+ wxLogMessage( _T("Spin button value decremented, will be %ld (was %d)"),
+ event.GetInt(), m_spinbtn->GetValue() );
int value = event.GetInt();
wxASSERT_MSG( value == m_spinctrl->GetValue(),
int value = event.GetInt();
wxASSERT_MSG( value == m_spinctrl->GetValue(),