X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8b1d8f3611c9a00d6936e617725416339681a23f..3a9a01661aa51c52b734b16abdceec2f905c5f25:/samples/controls/controls.cpp diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index a7dc649c7c..e29c0b5236 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -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),