Commit fdb80c42 authored by Mark Moriarty's avatar Mark Moriarty

preferences wxSpinCtrl hack for WIN32 (make up arrow increase value)

parent 44d19ee2
...@@ -695,12 +695,22 @@ IntegerConfigControl::IntegerConfigControl( vlc_object_t *p_this, ...@@ -695,12 +695,22 @@ IntegerConfigControl::IntegerConfigControl( vlc_object_t *p_this,
: ConfigControl( p_this, p_item, parent ) : ConfigControl( p_this, p_item, parent )
{ {
label = new wxStaticText(this, -1, wxU(p_item->psz_text)); label = new wxStaticText(this, -1, wxU(p_item->psz_text));
// FIXME -- Hack for nonstandard wxwin wxSpinCtrl operation under WIN32
#ifdef WIN32
spin = new wxSpinCtrl( this, -1,
wxString::Format(wxT("%d"),
p_item->i_value),
wxDefaultPosition, wxDefaultSize,
wxSP_ARROW_KEYS,
100000000, -100000000, p_item->i_value);
#else
spin = new wxSpinCtrl( this, -1, spin = new wxSpinCtrl( this, -1,
wxString::Format(wxT("%d"), wxString::Format(wxT("%d"),
p_item->i_value), p_item->i_value),
wxDefaultPosition, wxDefaultSize, wxDefaultPosition, wxDefaultSize,
wxSP_ARROW_KEYS, wxSP_ARROW_KEYS,
-100000000, 100000000, p_item->i_value); -100000000, 100000000, p_item->i_value);
#endif
spin->SetToolTip( wxU(p_item->psz_longtext) ); spin->SetToolTip( wxU(p_item->psz_longtext) );
sizer->Add( label, 1, wxALIGN_CENTER_VERTICAL | wxALL, 5 ); sizer->Add( label, 1, wxALIGN_CENTER_VERTICAL | wxALL, 5 );
sizer->Add( spin, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5 ); sizer->Add( spin, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment