]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't try to use Tooltips, if they are not available.
authorStefan Neis <Stefan.Neis@t-online.de>
Sat, 18 Mar 2000 23:12:01 +0000 (23:12 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Sat, 18 Mar 2000 23:12:01 +0000 (23:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

demos/life/life.cpp

index 7d22f091ebd2e62d427dab029b0a2be1a014ee0c..94173764374b73fcf197b926eb41a1d657b4956f 100644 (file)
@@ -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 );