if (!PreCreation( parent, pos, size ) ||
!CreateBase( parent, id, pos, size, style, validator, name ))
{
- wxFAIL_MSG( _T("wxBitmapButton creation failed") );
+ wxFAIL_MSG( T("wxBitmapButton creation failed") );
return FALSE;
}
void wxBitmapButton::SetLabel( const wxString &label )
{
- wxCHECK_RET( m_widget != NULL, _T("invalid button") );
+ wxCHECK_RET( m_widget != NULL, T("invalid button") );
wxControl::SetLabel( label );
}
wxString wxBitmapButton::GetLabel() const
{
- wxCHECK_MSG( m_widget != NULL, _T(""), _T("invalid button") );
+ wxCHECK_MSG( m_widget != NULL, T(""), T("invalid button") );
return wxControl::GetLabel();
}
void wxBitmapButton::SetBitmap()
{
- wxCHECK_RET( m_widget != NULL, _T("invalid button") );
+ wxCHECK_RET( m_widget != NULL, T("invalid button") );
wxBitmap the_one;
void wxBitmapButton::SetBitmapDisabled( const wxBitmap& bitmap )
{
- wxCHECK_RET( m_widget != NULL, _T("invalid button") );
+ wxCHECK_RET( m_widget != NULL, T("invalid button") );
if ( ! m_disabled.Ok() ) return;
m_disabled = bitmap;
void wxBitmapButton::SetBitmapFocus( const wxBitmap& bitmap )
{
- wxCHECK_RET( m_widget != NULL, _T("invalid button") );
+ wxCHECK_RET( m_widget != NULL, T("invalid button") );
if ( ! m_focus.Ok() ) return;
m_focus = bitmap;
void wxBitmapButton::SetBitmapLabel( const wxBitmap& bitmap )
{
- wxCHECK_RET( m_widget != NULL, _T("invalid button") );
+ wxCHECK_RET( m_widget != NULL, T("invalid button") );
if (!m_bitmap.Ok()) return;
m_bitmap = bitmap;
void wxBitmapButton::SetBitmapSelected( const wxBitmap& bitmap )
{
- wxCHECK_RET( m_widget != NULL, _T("invalid button") );
+ wxCHECK_RET( m_widget != NULL, T("invalid button") );
if ( ! m_selected.Ok() ) return;
m_selected = bitmap;