]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/xrc/xrcdemo.cpp
Rebaked makefiles after htmllistbox and collapsable panel additions.
[wxWidgets.git] / samples / xrc / xrcdemo.cpp
index 966500abb1a7d0276026303a3af42d19eecdb0a8..d7d2a0966b1ef79d2c82d15402dbd81ee23d546d 100644 (file)
@@ -7,14 +7,6 @@
 // Licence:     wxWindows licence
 //-----------------------------------------------------------------------------
 
-//-----------------------------------------------------------------------------
-// GCC implementation
-//-----------------------------------------------------------------------------
-
-#ifdef __GNUG__
-    #pragma implementation "xrcdemo.h"
-#endif
-
 //-----------------------------------------------------------------------------
 // Standard wxWidgets headers
 //-----------------------------------------------------------------------------
 #include "xrcdemo.h"
 
 //-----------------------------------------------------------------------------
-// Remaining headers: Needed wx headers, then wx/contrib headers, then application headers
+// Remaining headers: Needed wx headers, then wx/contrib headers, then app one
 //-----------------------------------------------------------------------------
 
 #include "wx/image.h"               // wxImage
 
-//-----------------------------------------------------------------------------
-
-#include "wx/xrc/xmlres.h"          // XRC XML resouces
+#include "wx/xrc/xmlres.h"          // XRC XML resources
 
-//-----------------------------------------------------------------------------
+#include "wx/cshelp.h"              // wxSimpleHelpProvider for helptext
 
 #include "myframe.h"
 
@@ -110,6 +100,11 @@ bool MyApp::OnInit()
     // Variable expansion example
     wxXmlResource::Get()->Load(wxT("rc/variable.xrc"));
 
+#if wxUSE_HELP
+    // Use the simple help provider to show the context-sensitive help
+    wxHelpProvider::Set( new wxSimpleHelpProvider );
+#endif // wxUSE_HELP
+
     // Make an instance of your derived frame. Passing NULL (the default value
     // of MyFrame's constructor is NULL) as the frame doesn't have a parent
     // since it is the main application window.