X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ad99bc1398db5a619b3682e90ad7a99485ae4c9..05159a2750ed2cc5945a85bc5fc6849ad1a30e75:/src/motif/radiobox.cpp diff --git a/src/motif/radiobox.cpp b/src/motif/radiobox.cpp index 8360baf8b4..9076292ca0 100644 --- a/src/motif/radiobox.cpp +++ b/src/motif/radiobox.cpp @@ -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,14 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title, #endif XmNfontList, fontList, XmNlabelString, text(), +// XmNframeChildType is not in Motif 1.2, nor in Lesstif, +// if it was compiled with 1.2 compatibility +// TODO: check this still looks OK for Motif 1.2. +#if (XmVersion > 1200) XmNframeChildType, XmFRAME_TITLE_CHILD, +#else + XmNchildType, XmFRAME_TITLE_CHILD, +#endif XmNchildVerticalAlignment, XmALIGNMENT_CENTER, NULL); }