// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
-#ifdef __VMS
-#define XtDisplay XTDISPLAY
-#endif
-
#if wxUSE_STATTEXT
#include "wx/stattext.h"
#include "wx/motif/private.h"
-IMPLEMENT_DYNAMIC_CLASS(wxStaticText, wxControl)
-
bool wxStaticText::Create(wxWindow *parent, wxWindowID id,
const wxString& label,
const wxPoint& pos,
(Widget) wxCreateBorderWidget( (WXWidget)parentWidget, style );
m_labelWidget =
- XtVaCreateManagedWidget (wxConstCast(name.mb_str(), char),
+ XtVaCreateManagedWidget (name.mb_str(),
xmLabelWidgetClass,
borderWidget ? borderWidget : parentWidget,
wxFont::GetFontTag(), m_font.GetFontTypeC(XtDisplay(parentWidget)),
{
m_labelOrig = label; // save original label
- // Motif does not support neither ellipsize nor markup in static text:
- DoSetLabel(GetEllipsizedLabelWithoutMarkup());
+ // Motif does not support ellipsized labels natively
+ DoSetLabel(GetEllipsizedLabel());
}
// for wxST_ELLIPSIZE_* support: