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
This commit is contained in:
parent
6040c9de74
commit
7a85f3f97c
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user