allow specifying the style for wxHtmlHelpController used as fallback by wxBestHelpController (patch 1485669)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a552d1201f
commit
1c756ac814
@ -20,9 +20,12 @@
|
||||
class WXDLLIMPEXP_HTML wxBestHelpController: public wxHelpControllerBase
|
||||
{
|
||||
public:
|
||||
wxBestHelpController(wxWindow* parentWindow = NULL)
|
||||
: wxHelpControllerBase( parentWindow ), m_helpControllerType( wxUseNone ),
|
||||
m_helpController( NULL )
|
||||
wxBestHelpController(wxWindow* parentWindow = NULL,
|
||||
int style = wxHF_DEFAULT_STYLE)
|
||||
: wxHelpControllerBase(parentWindow),
|
||||
m_helpControllerType(wxUseNone),
|
||||
m_helpController(NULL),
|
||||
m_style(style)
|
||||
{
|
||||
}
|
||||
|
||||
@ -113,6 +116,7 @@ protected:
|
||||
|
||||
HelpControllerType m_helpControllerType;
|
||||
wxHelpControllerBase* m_helpController;
|
||||
int m_style;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxBestHelpController)
|
||||
DECLARE_NO_COPY_CLASS(wxBestHelpController)
|
||||
|
@ -51,7 +51,8 @@ bool wxBestHelpController::Initialize( const wxString& filename )
|
||||
delete chm;
|
||||
|
||||
// try wxHtmlHelpController
|
||||
wxHtmlHelpController* html = new wxHtmlHelpController(wxHF_DEFAULT_STYLE, m_parentWindow);
|
||||
wxHtmlHelpController *
|
||||
html = new wxHtmlHelpController(m_style, m_parentWindow);
|
||||
|
||||
m_helpControllerType = wxUseHtmlHelp;
|
||||
if( html->Initialize( GetValidFilename( filename ) ) )
|
||||
|
Loading…
Reference in New Issue
Block a user