X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..9696657f22ee2f10017c0bc305ae1843ee8fe768:/samples/help/demo.cpp?ds=inline diff --git a/samples/help/demo.cpp b/samples/help/demo.cpp index 5935d59b1f..d9708b2441 100644 --- a/samples/help/demo.cpp +++ b/samples/help/demo.cpp @@ -79,8 +79,8 @@ // ressources // ---------------------------------------------------------------------------- // the application icon -#if defined(__WXGTK__) || defined(__WXX11__) || defined(__WXMOTIF__) || defined(__WXMAC__) || defined(__WXMGL__) - #include "mondrian.xpm" +#ifndef wxHAS_IMAGES_IN_RESOURCES + #include "../sample.xpm" #endif // ---------------------------------------------------------------------------- @@ -324,7 +324,6 @@ bool MyApp::OnInit() #endif // !USE_SIMPLE_HELP_PROVIDER frame->Show(true); - SetTopWindow(frame); // initialise the help system: this means that we'll use doc.hlp file under // Windows and that the HTML docs are in the subdirectory doc for platforms @@ -396,7 +395,7 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size) #endif { // set the frame icon - SetIcon(wxICON(mondrian)); + SetIcon(wxICON(sample)); // create a menu bar wxMenu *menuFile = new wxMenu; @@ -461,10 +460,10 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size) m_embeddedHelpWindow = new wxHtmlHelpWindow; // m_embeddedHtmlHelp.UseConfig(config, rootPath); // Can set your own config object here m_embeddedHtmlHelp.SetHelpWindow(m_embeddedHelpWindow); - + m_embeddedHelpWindow->Create(this, wxID_ANY, wxDefaultPosition, GetClientSize(), wxTAB_TRAVERSAL|wxNO_BORDER, wxHF_DEFAULT_STYLE); - + m_embeddedHtmlHelp.AddBook(wxFileName(wxT("doc.zip"))); m_embeddedHtmlHelp.Display(wxT("Introduction")); #else