m_radioButtonLabels = (wxString*) NULL;
m_backgroundColour = parent->GetBackgroundColour();
m_foregroundColour = parent->GetForegroundColour();
+ m_windowFont = parent->GetFont();
SetName(name);
SetValidator(val);
m_formWidget = (WXWidget) formWidget;
+ XmFontList fontList = (XmFontList) m_windowFont.GetFontList(1.0, XtDisplay(parentWidget));
if (label1 != "")
{
text = XmStringCreateSimple ((char*) (const char*) label1);
#else
xmLabelWidgetClass, formWidget,
#endif
+ XmNfontList, fontList,
XmNlabelString, text,
NULL);
-/* TODO: change label font
- if (labelFont)
- XtVaSetValues (labelWidget,
- XmNfontList, labelFont->GetInternalFont (XtDisplay(formWidget)),
- NULL);
-*/
-
XmStringFree (text);
}
#else
xmToggleButtonWidgetClass, radioBoxWidget,
#endif
+ XmNfontList, fontList,
NULL);
XtAddCallback ((Widget) m_radioButtons[i], XmNvalueChangedCallback, (XtCallbackProc) wxRadioBoxCallback,
(XtCallbackProc) this);
-/* TODO: set font
- if (buttonFont)
- XtVaSetValues ((Widget) m_radioButtons[i],
- XmNfontList, buttonFont->GetInternalFont (XtDisplay(formWidget)),
- NULL);
-*/
}
SetSelection (0);
+ m_windowFont = parent->GetFont();
+ ChangeFont(FALSE);
+
XtManageChild (radioBoxWidget);
SetCanAddEventHandler(TRUE);
AttachWidget (parent, m_mainWidget, m_formWidget, pos.x, pos.y, size.x, size.y);
- SetFont(* parent->GetFont());
ChangeBackgroundColour();
return TRUE;
ProcessCommand (event);
}
-void wxRadioBox::ChangeFont()
+void wxRadioBox::ChangeFont(bool keepOriginalSize)
{
// TODO
}