- m_btn->SetRange(min, max);
- m_btn->SetValue(initial);
-#ifdef __WXMAC__
- wxSize csize = size ;
- if ( size.y == -1 ) {
- csize.y = m_text->GetSize().y ;
- }
- DoSetSize(pos.x, pos.y, csize.x, csize.y);
-#else
- wxSize best = GetBestSize();
- if ( size.x != -1 ) best.x = size.x;
- if ( size.y != -1 ) best.y = size.y;
- DoSetSize(pos.x, pos.y, best.x, best.y);
-#endif