m_popUpMenu = new wxMenu();
m_popUpMenu->SetNoEventsMode(true);
- m_peer = wxWidgetImpl::CreateChoice( this, parent, id, m_popUpMenu, pos, size, style, GetExtraStyle() );
+ SetPeer(wxWidgetImpl::CreateChoice( this, parent, id, m_popUpMenu, pos, size, style, GetExtraStyle() ));
MacPostControlCreate( pos, size );
AssignNewItemClientData(idx, clientData, i, type);
}
- m_peer->SetMaximum( GetCount() );
+ GetPeer()->SetMaximum( GetCount() );
return pos - 1;
}
m_strings.RemoveAt( n ) ;
m_datas.RemoveAt( n ) ;
- m_peer->SetMaximum( GetCount() ) ;
+ GetPeer()->SetMaximum( GetCount() ) ;
}
m_strings.Empty() ;
m_datas.Empty() ;
- m_peer->SetMaximum( 0 ) ;
+ GetPeer()->SetMaximum( 0 ) ;
}
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
int wxChoice::GetSelection() const
{
- return m_peer->GetValue();
+ return GetPeer()->GetValue();
}
void wxChoice::SetSelection( int n )
{
- m_peer->SetValue( n );
+ GetPeer()->SetValue( n );
}
// ----------------------------------------------------------------------------