]> git.saurik.com Git - wxWidgets.git/commitdiff
Added help provider
authorJulian Smart <julian@anthemion.co.uk>
Tue, 10 Oct 2006 11:11:59 +0000 (11:11 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 10 Oct 2006 11:11:59 +0000 (11:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/richtext/richtext.cpp

index 14363507c965f3d7728ab2e4b90759f54283befe..bb254ecdb93098fd973b59257af942ca57adf29a 100644 (file)
 #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();