XmNframeChildType is not in Motif 1.2. #ifdef appropriately.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -90,7 +90,7 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title,
|
||||
|
||||
Widget parentWidget = (Widget) parent->GetClientWidget();
|
||||
|
||||
m_mainWidget = XtVaCreateWidget ("radiobxoframe",
|
||||
m_mainWidget = XtVaCreateWidget ("radioboxframe",
|
||||
xmFrameWidgetClass, parentWidget,
|
||||
XmNshadowType, XmSHADOW_IN,
|
||||
XmNresizeHeight, True,
|
||||
@@ -114,7 +114,11 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title,
|
||||
#endif
|
||||
XmNfontList, fontList,
|
||||
XmNlabelString, text(),
|
||||
// XmNframeChildType is not in Motif 1.2.
|
||||
// TODO: check this still looks OK for Motif 1.2.
|
||||
#if (XmVersion > 1200) || defined(LESSTIF_VERSION)
|
||||
XmNframeChildType, XmFRAME_TITLE_CHILD,
|
||||
#endif
|
||||
XmNchildVerticalAlignment, XmALIGNMENT_CENTER,
|
||||
NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user