| 70 | } |
| 71 | |
| 72 | TextViewerWindowGen::TextViewerWindowGen( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) |
| 73 | { |
| 74 | this->SetSizeHints( wxDefaultSize, wxDefaultSize ); |
| 75 | |
| 76 | wxFlexGridSizer* fgSizer8; |
| 77 | fgSizer8 = new wxFlexGridSizer( 0, 1, 0, 0 ); |
| 78 | fgSizer8->AddGrowableCol( 0 ); |
| 79 | fgSizer8->AddGrowableRow( 0 ); |
| 80 | fgSizer8->SetFlexibleDirection( wxBOTH ); |
| 81 | fgSizer8->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_ALL ); |
| 82 | |
| 83 | textControl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY|wxTE_RICH ); |
| 84 | textControl->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_TELETYPE, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); |
| 85 | |
| 86 | fgSizer8->Add( textControl, 0, wxALL|wxEXPAND, 5 ); |
| 87 | |
| 88 | m_sdbSizer2 = new wxStdDialogButtonSizer(); |
| 89 | m_sdbSizer2OK = new wxButton( this, wxID_OK ); |
| 90 | m_sdbSizer2->AddButton( m_sdbSizer2OK ); |
| 91 | m_sdbSizer2->Realize(); |
| 92 | |
| 93 | fgSizer8->Add( m_sdbSizer2, 1, wxALL|wxEXPAND, 5 ); |
| 94 | |
| 95 | |
| 96 | this->SetSizer( fgSizer8 ); |
| 97 | this->Layout(); |
| 98 | |
| 99 | this->Centre( wxBOTH ); |
| 100 | |
| 101 | // Connect Events |
| 102 | this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( TextViewerWindowGen::OnClose ) ); |
| 103 | m_sdbSizer2OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TextViewerWindowGen::OnClose ), NULL, this ); |
| 104 | } |
| 105 | |
| 106 | TextViewerWindowGen::~TextViewerWindowGen() |
| 107 | { |