+ SetLabel(label);
+
+ wxSize best = GetBestSize();
+ if( size.x != -1 ) best.x = size.x;
+ if( size.y != -1 ) best.y = size.y;
+
+ PostCreation();
+ AttachWidget (parent, m_mainWidget, (WXWidget) NULL,
+ pos.x, pos.y, best.x, best.y);
+
+ return true;
+}
+
+void wxStaticText::SetLabel(const wxString& label)
+{
+ m_labelOrig = label; // save original label
+
+ // Motif does not support neither ellipsize nor markup in static text:
+ DoSetLabel(GetEllipsizedLabelWithoutMarkup());
+}
+
+// for wxST_ELLIPSIZE_* support: