]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/radiobox.cpp
If -1 is used for width/height, use best size.
[wxWidgets.git] / src / motif / radiobox.cpp
index 91d53491d761f4c9a5e27f4aa4331f70cc3f6d57..9076292ca0c5402b069c2e503ba43e2123ffedaa 100644 (file)
@@ -114,10 +114,13 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title,
 #endif
                                              XmNfontList, fontList,
                                              XmNlabelString, text(),
-// XmNframeChildType is not in Motif 1.2.
+// 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) || defined(LESSTIF_VERSION)
+#if (XmVersion > 1200)
                                              XmNframeChildType, XmFRAME_TITLE_CHILD,
+#else
+                                             XmNchildType, XmFRAME_TITLE_CHILD,
 #endif
                                              XmNchildVerticalAlignment, XmALIGNMENT_CENTER,
                                              NULL);