2009-07-08 15:42:45 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2021-07-24 15:03:36 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
2009-07-08 15:42:45 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2017-12-26 14:38:45 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2009-07-08 15:42:45 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2021-09-27 11:47:14 +00:00
|
|
|
#include "dialog_display_html_text_base.h"
|
2009-07-08 15:42:45 +00:00
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2013-06-19 16:11:12 +00:00
|
|
|
DIALOG_DISPLAY_HTML_TEXT_BASE::DIALOG_DISPLAY_HTML_TEXT_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
2009-07-08 15:42:45 +00:00
|
|
|
{
|
2021-07-24 15:03:36 +00:00
|
|
|
this->SetSizeHints( wxSize( 500,300 ), wxDefaultSize );
|
2019-09-06 18:57:04 +00:00
|
|
|
|
2009-07-08 15:42:45 +00:00
|
|
|
wxBoxSizer* bMainSizer;
|
|
|
|
bMainSizer = new wxBoxSizer( wxVERTICAL );
|
2019-09-06 18:57:04 +00:00
|
|
|
|
2021-09-27 11:47:14 +00:00
|
|
|
bMainSizer->SetMinSize( wxSize( 540,240 ) );
|
2018-02-10 23:10:39 +00:00
|
|
|
m_htmlWindow = new wxHtmlWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO );
|
|
|
|
bMainSizer->Add( m_htmlWindow, 1, wxALL|wxEXPAND, 5 );
|
2019-09-06 18:57:04 +00:00
|
|
|
|
|
|
|
m_sdbSizer1 = new wxStdDialogButtonSizer();
|
|
|
|
m_sdbSizer1OK = new wxButton( this, wxID_OK );
|
|
|
|
m_sdbSizer1->AddButton( m_sdbSizer1OK );
|
|
|
|
m_sdbSizer1->Realize();
|
|
|
|
|
2021-07-24 15:03:36 +00:00
|
|
|
bMainSizer->Add( m_sdbSizer1, 0, wxEXPAND|wxBOTTOM|wxRIGHT, 5 );
|
2019-09-06 18:57:04 +00:00
|
|
|
|
|
|
|
|
2009-07-08 15:42:45 +00:00
|
|
|
this->SetSizer( bMainSizer );
|
|
|
|
this->Layout();
|
2017-12-26 14:38:45 +00:00
|
|
|
bMainSizer->Fit( this );
|
2019-09-06 18:57:04 +00:00
|
|
|
|
2009-07-09 17:02:15 +00:00
|
|
|
// Connect Events
|
|
|
|
m_htmlWindow->Connect( wxEVT_COMMAND_HTML_LINK_CLICKED, wxHtmlLinkEventHandler( DIALOG_DISPLAY_HTML_TEXT_BASE::OnHTMLLinkClicked ), NULL, this );
|
2009-07-08 15:42:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_DISPLAY_HTML_TEXT_BASE::~DIALOG_DISPLAY_HTML_TEXT_BASE()
|
|
|
|
{
|
2009-07-09 17:02:15 +00:00
|
|
|
// Disconnect Events
|
|
|
|
m_htmlWindow->Disconnect( wxEVT_COMMAND_HTML_LINK_CLICKED, wxHtmlLinkEventHandler( DIALOG_DISPLAY_HTML_TEXT_BASE::OnHTMLLinkClicked ), NULL, this );
|
2019-09-06 18:57:04 +00:00
|
|
|
|
2009-07-08 15:42:45 +00:00
|
|
|
}
|