SetValidator(validator);
m_backgroundColour = parent->GetBackgroundColour();
m_foregroundColour = parent->GetForegroundColour();
+ m_windowFont = parent->GetFont();
if (parent) parent->AddChild(this);
XmString text = XmStringCreateSimple ((char*) (const char*) label1);
+ XmFontList fontList = (XmFontList) m_windowFont.GetFontList(1.0, XtDisplay(parentWidget));
Widget radioButtonWidget = XtVaCreateManagedWidget ("toggle",
#if wxUSE_GADGETS
#else
xmToggleButtonWidgetClass, parentWidget,
#endif
+ XmNfontList, fontList,
XmNlabelString, text,
XmNfillOnSelect, True,
XmNindicatorType, XmONE_OF_MANY, // diamond-shape
m_mainWidget = (WXWidget) radioButtonWidget;
- m_windowFont = parent->GetFont();
- ChangeFont(FALSE);
-
XtManageChild (radioButtonWidget);
SetCanAddEventHandler(TRUE);