]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/radiobox.cpp
added test for env var expansion
[wxWidgets.git] / src / motif / radiobox.cpp
index 8360baf8b4433ed9087a89a0b6d481dec615b805..8598837d8d3c4a21e062d51bf7a46cd1088b477d 100644 (file)
@@ -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,12 @@ 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,
+#endif
                                              XmNchildVerticalAlignment, XmALIGNMENT_CENTER,
                                              NULL);
     }