// 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)
{