From: Stefan Neis Date: Sat, 18 Mar 2000 23:12:01 +0000 (+0000) Subject: Don't try to use Tooltips, if they are not available. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7a85f3f97c835098648bb20aa0fd6145d313d335 Don't try to use Tooltips, if they are not available. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/demos/life/life.cpp b/demos/life/life.cpp index 7d22f091eb..9417376437 100644 --- a/demos/life/life.cpp +++ b/demos/life/life.cpp @@ -545,11 +545,13 @@ LifeNavigator::LifeNavigator(wxWindow *parent) *be = new wxBitmapButton(panel, ID_EAST , bmpe), *bs = new wxBitmapButton(panel, ID_SOUTH, bmps); +#if wxUSE_TOOLTIPS bn->SetToolTip(_("Find northernmost cell")); bw->SetToolTip(_("Find westernmost cell")); bc->SetToolTip(_("Find center of mass")); be->SetToolTip(_("Find easternmost cell")); bs->SetToolTip(_("Find southernmost cell")); +#endif // add buttons to sizers sizer2->Add( bw, 0, wxCENTRE | wxWEST, 4 );