- wxXmString text( label );
- WXFontType fontType = m_font.GetFontType(XtDisplay(parentWidget));
-
- m_labelWidget = XtVaCreateManagedWidget (wxConstCast(name.c_str(), char),
- xmLabelWidgetClass,
- borderWidget ? borderWidget : parentWidget,
- wxFont::GetFontTag(), fontType,
- XmNlabelString, text(),
- XmNalignment,
- ((style & wxALIGN_RIGHT) ? XmALIGNMENT_END :
- ((style & wxALIGN_CENTRE) ? XmALIGNMENT_CENTER :
- XmALIGNMENT_BEGINNING)),
- NULL);
+
+ m_labelWidget =
+ XtVaCreateManagedWidget (name.mb_str(),
+ xmLabelWidgetClass,
+ borderWidget ? borderWidget : parentWidget,
+ wxFont::GetFontTag(), m_font.GetFontTypeC(XtDisplay(parentWidget)),
+ XmNalignment, ((style & wxALIGN_RIGHT) ? XmALIGNMENT_END :
+ ((style & wxALIGN_CENTRE) ? XmALIGNMENT_CENTER :
+ XmALIGNMENT_BEGINNING)),
+ XmNrecomputeSize, ((style & wxST_NO_AUTORESIZE) ? TRUE : FALSE),
+ NULL);