- wxBitmapButton *bbtn = new wxBitmapButton(this, ButtonPage_Button,
- CreateBitmap(wxT("normal")));
+ wxButton *bbtn;
+ if ( m_chkUseBitmapClass->GetValue() )
+ {
+ bbtn = new wxBitmapButton(this, ButtonPage_Button,
+ CreateBitmap(wxT("normal")));
+ }
+ else
+ {
+ bbtn = new wxButton(this, ButtonPage_Button);
+ bbtn->SetBitmapLabel(CreateBitmap(wxT("normal")));
+ }