KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_display_html_text_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_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 )
13{
14 this->SetSizeHints( wxSize( 500,300 ), wxDefaultSize );
15
16 wxBoxSizer* bMainSizer;
17 bMainSizer = new wxBoxSizer( wxVERTICAL );
18
19 bMainSizer->SetMinSize( wxSize( 540,240 ) );
20 m_htmlWindow = new HTML_WINDOW( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO );
21 bMainSizer->Add( m_htmlWindow, 1, wxALL|wxEXPAND, 10 );
22
23 m_sdbSizer1 = new wxStdDialogButtonSizer();
24 m_sdbSizer1OK = new wxButton( this, wxID_OK );
25 m_sdbSizer1->AddButton( m_sdbSizer1OK );
26 m_sdbSizer1->Realize();
27
28 bMainSizer->Add( m_sdbSizer1, 0, wxEXPAND|wxBOTTOM|wxRIGHT, 5 );
29
30
31 this->SetSizer( bMainSizer );
32 this->Layout();
33 bMainSizer->Fit( this );
34
35 // Connect Events
36 m_htmlWindow->Connect( wxEVT_COMMAND_HTML_LINK_CLICKED, wxHtmlLinkEventHandler( DIALOG_DISPLAY_HTML_TEXT_BASE::OnHTMLLinkClicked ), NULL, this );
37}
38
40{
41 // Disconnect Events
42 m_htmlWindow->Disconnect( wxEVT_COMMAND_HTML_LINK_CLICKED, wxHtmlLinkEventHandler( DIALOG_DISPLAY_HTML_TEXT_BASE::OnHTMLLinkClicked ), NULL, this );
43
44}
virtual void OnHTMLLinkClicked(wxHtmlLinkEvent &event)
DIALOG_DISPLAY_HTML_TEXT_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
Add dark theme support to wxHtmlWindow.
Definition: html_window.h:35