2009-07-08 15:42:45 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2020-01-04 23:27:32 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version v3.8.0)
|
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
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_display_info_HTML_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
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
|
|
|
{
|
2018-01-07 04:27:08 +00:00
|
|
|
this->SetSizeHints( wxSize( -1,-1 ), 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
|
|
|
|
2018-02-10 23:10:39 +00:00
|
|
|
m_htmlWindow = new wxHtmlWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO );
|
2017-12-26 14:38:45 +00:00
|
|
|
m_htmlWindow->SetMinSize( wxSize( 400,250 ) );
|
2019-09-06 18:57:04 +00:00
|
|
|
|
2018-02-10 23:10:39 +00:00
|
|
|
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();
|
|
|
|
|
|
|
|
bMainSizer->Add( m_sdbSizer1, 0, wxBOTTOM|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
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 );
|
2019-09-06 18:57:04 +00:00
|
|
|
m_sdbSizer1OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DISPLAY_HTML_TEXT_BASE::OnOKButtonClick ), 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
|
|
|
m_sdbSizer1OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DISPLAY_HTML_TEXT_BASE::OnOKButtonClick ), NULL, this );
|
|
|
|
|
2009-07-08 15:42:45 +00:00
|
|
|
}
|