many changes; major ones:
1. start of !wxUSE_GUI support 2. _T() macro renamed to T() 3. wxConvertWX2MB and MB2WX macro added git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -68,7 +68,7 @@ bool wxRadioButton::Create( wxWindow *parent, wxWindowID id, const wxString& lab
|
||||
if (!PreCreation( parent, pos, size ) ||
|
||||
!CreateBase( parent, id, pos, size, style, validator, name ))
|
||||
{
|
||||
wxFAIL_MSG( _T("wxRadioButton creation failed") );
|
||||
wxFAIL_MSG( T("wxRadioButton creation failed") );
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ bool wxRadioButton::Create( wxWindow *parent, wxWindowID id, const wxString& lab
|
||||
|
||||
void wxRadioButton::SetLabel( const wxString& label )
|
||||
{
|
||||
wxCHECK_RET( m_widget != NULL, _T("invalid radiobutton") );
|
||||
wxCHECK_RET( m_widget != NULL, T("invalid radiobutton") );
|
||||
|
||||
wxControl::SetLabel( label );
|
||||
GtkButton *bin = GTK_BUTTON( m_widget );
|
||||
@@ -141,7 +141,7 @@ void wxRadioButton::SetLabel( const wxString& label )
|
||||
|
||||
void wxRadioButton::SetValue( bool val )
|
||||
{
|
||||
wxCHECK_RET( m_widget != NULL, _T("invalid radiobutton") );
|
||||
wxCHECK_RET( m_widget != NULL, T("invalid radiobutton") );
|
||||
|
||||
if (val == GetValue())
|
||||
return;
|
||||
@@ -164,7 +164,7 @@ void wxRadioButton::SetValue( bool val )
|
||||
|
||||
bool wxRadioButton::GetValue() const
|
||||
{
|
||||
wxCHECK_MSG( m_widget != NULL, FALSE, _T("invalid radiobutton") );
|
||||
wxCHECK_MSG( m_widget != NULL, FALSE, T("invalid radiobutton") );
|
||||
|
||||
return GTK_TOGGLE_BUTTON(m_widget)->active;
|
||||
}
|
||||
|
Reference in New Issue
Block a user