Do not use Tooltips if they are disabled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -186,13 +186,15 @@ protected:
|
|||||||
|
|
||||||
// wxWindow overrides:
|
// wxWindow overrides:
|
||||||
|
|
||||||
virtual void DoSetToolTip( wxToolTip *tip )
|
#if wxUSE_TOOLTIPS
|
||||||
|
virtual void DoSetToolTip( wxToolTip *tip )
|
||||||
{
|
{
|
||||||
wxASSERT_MSG(!HasFlag(wxSTB_SHOW_TIPS),
|
wxASSERT_MSG(!HasFlag(wxSTB_SHOW_TIPS),
|
||||||
"Do not set tooltip(s) manually when using wxSTB_SHOW_TIPS!");
|
"Do not set tooltip(s) manually when using wxSTB_SHOW_TIPS!");
|
||||||
wxWindow::DoSetToolTip(tip);
|
wxWindow::DoSetToolTip(tip);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
|
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user