added SetString(), deprecated SetLabel()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -526,7 +526,7 @@ void wxRadioBox::SetLabel( const wxString& label )
|
||||
gtk_frame_set_label( GTK_FRAME(m_widget), wxControl::GetLabel().mbc_str() );
|
||||
}
|
||||
|
||||
void wxRadioBox::SetLabel( int item, const wxString& label )
|
||||
void wxRadioBox::SetString( int item, const wxString& label )
|
||||
{
|
||||
wxCHECK_RET( m_widget != NULL, wxT("invalid radiobox") );
|
||||
|
||||
@@ -540,11 +540,6 @@ void wxRadioBox::SetLabel( int item, const wxString& label )
|
||||
gtk_label_set( g_label, label.mbc_str() );
|
||||
}
|
||||
|
||||
void wxRadioBox::SetLabel( int WXUNUSED(item), wxBitmap *WXUNUSED(bitmap) )
|
||||
{
|
||||
wxFAIL_MSG(wxT("wxRadioBox::SetLabel not implemented."));
|
||||
}
|
||||
|
||||
bool wxRadioBox::Enable( bool enable )
|
||||
{
|
||||
if ( !wxControl::Enable( enable ) )
|
||||
@@ -624,7 +619,7 @@ bool wxRadioBox::SetStringSelection( const wxString &s )
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int wxRadioBox::Number() const
|
||||
int wxRadioBox::GetCount() const
|
||||
{
|
||||
return m_boxes.Number();
|
||||
}
|
||||
|
@@ -526,7 +526,7 @@ void wxRadioBox::SetLabel( const wxString& label )
|
||||
gtk_frame_set_label( GTK_FRAME(m_widget), wxControl::GetLabel().mbc_str() );
|
||||
}
|
||||
|
||||
void wxRadioBox::SetLabel( int item, const wxString& label )
|
||||
void wxRadioBox::SetString( int item, const wxString& label )
|
||||
{
|
||||
wxCHECK_RET( m_widget != NULL, wxT("invalid radiobox") );
|
||||
|
||||
@@ -540,11 +540,6 @@ void wxRadioBox::SetLabel( int item, const wxString& label )
|
||||
gtk_label_set( g_label, label.mbc_str() );
|
||||
}
|
||||
|
||||
void wxRadioBox::SetLabel( int WXUNUSED(item), wxBitmap *WXUNUSED(bitmap) )
|
||||
{
|
||||
wxFAIL_MSG(wxT("wxRadioBox::SetLabel not implemented."));
|
||||
}
|
||||
|
||||
bool wxRadioBox::Enable( bool enable )
|
||||
{
|
||||
if ( !wxControl::Enable( enable ) )
|
||||
@@ -624,7 +619,7 @@ bool wxRadioBox::SetStringSelection( const wxString &s )
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int wxRadioBox::Number() const
|
||||
int wxRadioBox::GetCount() const
|
||||
{
|
||||
return m_boxes.Number();
|
||||
}
|
||||
|
Reference in New Issue
Block a user