From 7618e3746558bfba2885ec7c3320332205318df0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 21 Dec 1999 20:27:38 +0000 Subject: [PATCH] #ifdef wxUSE_TOOLTIPS around tooltips git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/helpfrm.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/html/helpfrm.cpp b/src/html/helpfrm.cpp index 3931dbc614..16707531d4 100644 --- a/src/html/helpfrm.cpp +++ b/src/html/helpfrm.cpp @@ -255,7 +255,7 @@ bool wxHtmlHelpFrame::Create(wxWindow* parent, wxWindowID id, const wxString& ti 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(); @@ -264,7 +264,6 @@ bool wxHtmlHelpFrame::Create(wxWindow* parent, wxWindowID id, const wxString& ti 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(); @@ -279,6 +278,11 @@ bool wxHtmlHelpFrame::Create(wxWindow* parent, wxWindowID id, const wxString& ti 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(); @@ -300,7 +304,9 @@ bool wxHtmlHelpFrame::Create(wxWindow* parent, wxWindowID id, const wxString& ti wxLayoutConstraints *b2 = new wxLayoutConstraints; m_SearchButton = new wxButton(dummy, wxID_HTML_SEARCHBUTTON, _("Search")); +#if wxUSE_TOOLTIPS m_SearchButton -> SetToolTip(_("Search contents of help book(s) for all occurences of the text you typed above")); +#endif //wxUSE_TOOLTIPS b2 -> top.Below (m_SearchText, 10); b2 -> left.SameAs (dummy, wxLeft, 10); b2 -> width.AsIs(); -- 2.47.2