install help provider to allow testing helptext tags in XRC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1e3fc113dd
commit
23bc3597eb
@ -31,16 +31,14 @@
|
||||
#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 resources
|
||||
|
||||
#include "wx/xrc/xmlres.h" // XRC XML resouces
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
#include "wx/cshelp.h" // wxSimpleHelpProvider for helptext
|
||||
|
||||
#include "myframe.h"
|
||||
|
||||
@ -102,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.
|
||||
|
Loading…
Reference in New Issue
Block a user