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:
Vadim Zeitlin
2002-02-17 19:14:54 +00:00
parent bcebad81f1
commit 2da6105611
2 changed files with 50 additions and 60 deletions

View File

@@ -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();
}

View File

@@ -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();
}