]> git.saurik.com Git - wxWidgets.git/commitdiff
made it compile with wxUniv (which doesn't have tooltips)
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 27 Aug 2002 20:26:56 +0000 (20:26 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 27 Aug 2002 20:26:56 +0000 (20:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/controls/controls.cpp

index a7dc649c7c9617e9ff25a3954b59dfaf89591365..e29c0b52364b3e618f3a76b78928c62788db4699 100644 (file)
@@ -710,7 +710,9 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h )
     m_slider = new wxSlider( panel, ID_SLIDER, 0, 0, 200, wxPoint(18,90), wxSize(155,-1),
                              wxSL_AUTOTICKS | wxSL_LABELS );
     m_slider->SetTickFreq(40, 0);
+#if wxUSE_TOOLTIPS
     m_slider->SetToolTip(_T("This is a sliding slider"));
+#endif // wxUSE_TOOLTIPS
 
     (void)new wxStaticBox( panel, -1, "&Explanation",
                            wxPoint(230,10), wxSize(270,130),