From 2569ebc25786f8364219c6b032fe35f37f1df641 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 10 Oct 2006 11:11:59 +0000 Subject: [PATCH] Added help provider git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/richtext/richtext.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/samples/richtext/richtext.cpp b/samples/richtext/richtext.cpp index 1436350..bb254ec 100644 --- a/samples/richtext/richtext.cpp +++ b/samples/richtext/richtext.cpp @@ -35,6 +35,10 @@ #include "wx/sstream.h" #include "wx/html/htmlwin.h" +#if wxUSE_HELP +#include "wx/cshelp.h" +#endif + #ifndef __WXMSW__ #include "../sample.xpm" #endif @@ -272,6 +276,10 @@ IMPLEMENT_APP(MyApp) // 'Main program' equivalent: the program execution "starts" here bool MyApp::OnInit() { +#if wxUSE_HELP + wxHelpProvider::Set(new wxSimpleHelpProvider); +#endif + m_styleSheet = new wxRichTextStyleSheet; CreateStyles(); -- 2.7.4