rendered paste body#include "QuestionPanel.h"
QuestionPanel::QuestionPanel( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
{
wxBoxSizer* bSizer1;
bSizer1 = new wxBoxSizer( wxVERTICAL );
m_staticText1 = new wxStaticText( this, wxID_ANY, wxT("When a corporation is created, what entity uses the certificate of incorporation?"), wxDefaultPosition, wxDefaultSize, 0 );
m_staticText1->Wrap( -1 );
m_staticText1->SetFont( wxFont( 30, 70, 90, 90, false, wxEmptyString ) );
bSizer1->Add( m_staticText1, 0, wxALL|wxEXPAND, 5 );
m_radioBtn1 = new wxRadioButton( this, wxID_ANY, wxT(""), wxDefaultPosition, wxDefaultSize, 0 );
m_radioBtn1->SetFont( wxFont( 20, 70, 90, 90, false, wxEmptyString ) );
bSizer1->Add( m_radioBtn1, 1, wxEXPAND|wxALL, 5 );
m_radioBtn2 = new wxRadioButton( this, wxID_ANY, wxT(""), wxDefaultPosition, wxDefaultSize, 0 );
m_radioBtn2->SetFont( wxFont( 20, 70, 90, 90, false, wxEmptyString ) );
bSizer1->Add( m_radioBtn2, 1, wxALL|wxEXPAND, 5 );
m_radioBtn3 = new wxRadioButton( this, wxID_ANY, wxT(""), wxDefaultPosition, wxDefaultSize, 0 );
m_radioBtn3->SetFont( wxFont( 20, 70, 90, 90, false, wxEmptyString ) );
bSizer1->Add( m_radioBtn3, 1, wxALL|wxEXPAND, 5 );
m_radioBtn4 = new wxRadioButton( this, wxID_ANY, wxT(""), wxDefaultPosition, wxDefaultSize, 0 );
m_radioBtn4->SetFont( wxFont( 20, 70, 90, 90, false, wxEmptyString ) );
bSizer1->Add( m_radioBtn4, 1, wxALL|wxEXPAND, 5 );
this->SetSizer( bSizer1 );
this->Layout();
// Connect Events
this->Connect( wxEVT_SIZE, wxSizeEventHandler( QuestionPanel::OnSize ) );
}
void QuestionPanel::OnSize(wxSizeEvent &event)
{
wxSize size = event.GetSize();
m_staticText1->Wrap(size.GetWidth());
m_staticText1->SetLabel(wxString::Format("Width: %d", size.GetWidth()));
}