Check for functions availability before using them. This fixes compilation of
wxGTK with all features disabled.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66091
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
else
#endif // __WXDEBUG__
{
+#if wxUSE_MSGDLG
// just Ctrl-Alt-middle click shows information about wx version
::wxInfoMessageBox((wxWindow*)this);
+#endif // wxUSE_MSGDLG
}
}
else
// truncate and add an ellipsis (...) if the text is too wide.
const int availWidth = rect.width - labelWidth;
+#if wxUSE_CONTROLS
if ( tw > availWidth )
{
label = wxControl::Ellipsize(label,
tw = dc.GetTextExtent(label).x;
}
else // enough space, we can respect alignment
+#endif // wxUSE_CONTROLS
{
switch (params->m_labelAlignment)
{