]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/helpfrm.cpp
Fix conversion error in tooltips.
[wxWidgets.git] / src / html / helpfrm.cpp
index de616e06d14760396de32da90e2d7b37ac82520b..488c31c45bdc44e1c443d5396e80f06a5f3c6cbf 100644 (file)
@@ -282,6 +282,7 @@ bool wxHtmlHelpFrame::Create(wxWindow* parent, wxWindowID id,
 
     CreateStatusBar();
 
+#if wxUSE_TOOLBAR
     // toolbar?
     if (style & (wxHF_TOOLBAR | wxHF_FLAT_TOOLBAR))
     {
@@ -292,6 +293,7 @@ bool wxHtmlHelpFrame::Create(wxWindow* parent, wxWindowID id,
         AddToolbarButtons(toolBar, style);
         toolBar->Realize();
     }
+#endif //wxUSE_TOOLBAR
 
     wxSizer *navigSizer = NULL;
 
@@ -463,7 +465,11 @@ bool wxHtmlHelpFrame::Create(wxWindow* parent, wxWindowID id,
 
     if ( navigSizer )
     {
-        navigSizer->SetSizeHints(m_NavigPan);
+        // We don't really want to set the nav panel min size to
+        // the current overall window size (which may be large).
+        // But leaving this code commented in case there's
+        // some variation that makes sense.
+//        navigSizer->SetSizeHints(m_NavigPan);
         m_NavigPan->Layout();
     }
 
@@ -507,6 +513,7 @@ wxHtmlHelpFrame::~wxHtmlHelpFrame()
 }
 
 
+#if wxUSE_TOOLBAR
 void wxHtmlHelpFrame::AddToolbarButtons(wxToolBar *toolBar, int style)
 {
     wxBitmap wpanelBitmap = 
@@ -579,6 +586,7 @@ void wxHtmlHelpFrame::AddToolbarButtons(wxToolBar *toolBar, int style)
                        FALSE, -1, -1, (wxObject *) NULL,
                        _("Display options dialog"));
 }
+#endif //wxUSE_TOOLBAR
 
 
 void wxHtmlHelpFrame::SetTitleFormat(const wxString& format)