// ----------------------------------------------------------------------------
int wxChoice::GetSelection() const
{
- return m_peer->GetValue() -1;
+ return m_peer->GetValue();
}
void wxChoice::SetSelection( int n )
{
- m_peer->SetValue( n ) ;
+ m_peer->SetValue( n );
}
// ----------------------------------------------------------------------------
return (void *)m_datas[n];
}
-bool wxChoice::HandleClicked( double timestampsec )
+bool wxChoice::OSXHandleClicked( double WXUNUSED(timestampsec) )
{
wxCommandEvent event( wxEVT_COMMAND_CHOICE_SELECTED, m_windowId );
wxSize wxChoice::DoGetBestSize() const
{
int lbWidth = GetCount() > 0 ? 20 : 100; // some defaults
- int lbHeight = 20;
+ wxSize baseSize = wxWindow::DoGetBestSize();
+ int lbHeight = baseSize.y;
int wLine;
{
wxCoord width, height ;
dc.GetTextExtent( wxT("X"), &width, &height);
int cx = width ;
- lbHeight += 4;
lbWidth += cx ;
}