From 7a85f3f97c835098648bb20aa0fd6145d313d335 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sat, 18 Mar 2000 23:12:01 +0000 Subject: [PATCH] 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 --- demos/life/life.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 ); -- 2.50.0