git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5055 
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
 
         wxLayoutConstraints *b4 = new wxLayoutConstraints;
         m_IndexButtonAll = new wxButton(dummy, wxID_HTML_INDEXBUTTONALL, _("Show all"));
 
         wxLayoutConstraints *b4 = new wxLayoutConstraints;
         m_IndexButtonAll = new wxButton(dummy, wxID_HTML_INDEXBUTTONALL, _("Show all"));
-        m_IndexButtonAll -> SetToolTip(_("Show all items in index"));
         b4 -> top.Below (m_IndexText, 10);
         b4 -> right.SameAs (dummy, wxRight, 10);
         b4 -> width.AsIs();
         b4 -> top.Below (m_IndexText, 10);
         b4 -> right.SameAs (dummy, wxRight, 10);
         b4 -> width.AsIs();
 
         wxLayoutConstraints *b2 = new wxLayoutConstraints;
         m_IndexButton = new wxButton(dummy, wxID_HTML_INDEXBUTTON, _("Find"));
 
         wxLayoutConstraints *b2 = new wxLayoutConstraints;
         m_IndexButton = new wxButton(dummy, wxID_HTML_INDEXBUTTON, _("Find"));
-        m_IndexButton -> SetToolTip(_("Display all index items that contain given substring. Note that this is case sensitive, so 'window' and 'Window' is something else!"));
         b2 -> top.Below (m_IndexText, 10);
         b2 -> right.LeftOf (m_IndexButtonAll, 10);
         b2 -> width.AsIs();
         b2 -> top.Below (m_IndexText, 10);
         b2 -> right.LeftOf (m_IndexButtonAll, 10);
         b2 -> width.AsIs();
         b3 -> bottom.SameAs (dummy, wxBottom, 0);
         m_IndexList -> SetConstraints(b3);
 
         b3 -> bottom.SameAs (dummy, wxBottom, 0);
         m_IndexList -> SetConstraints(b3);
 
+#if wxUSE_TOOLTIPS
+        m_IndexButtonAll -> SetToolTip(_("Show all items in index"));
+        m_IndexButton -> SetToolTip(_("Display all index items that contain given substring. Note that this is case sensitive, so 'window' and 'Window' is something else!"));
+#endif //wxUSE_TOOLTIPS
+
         dummy -> SetAutoLayout(TRUE);
         dummy -> Layout();
 
         dummy -> SetAutoLayout(TRUE);
         dummy -> Layout();
 
 
         wxLayoutConstraints *b2 = new wxLayoutConstraints;
         m_SearchButton = new wxButton(dummy, wxID_HTML_SEARCHBUTTON, _("Search"));
 
         wxLayoutConstraints *b2 = new wxLayoutConstraints;
         m_SearchButton = new wxButton(dummy, wxID_HTML_SEARCHBUTTON, _("Search"));
         m_SearchButton -> SetToolTip(_("Search contents of help book(s) for all occurences of the text you typed above"));
         m_SearchButton -> SetToolTip(_("Search contents of help book(s) for all occurences of the text you typed above"));
         b2 -> top.Below (m_SearchText, 10);
         b2 -> left.SameAs (dummy, wxLeft, 10);
         b2 -> width.AsIs();
         b2 -> top.Below (m_SearchText, 10);
         b2 -> left.SameAs (dummy, wxLeft, 10);
         b2 -> width.AsIs();