]> git.saurik.com Git - wxWidgets.git/commitdiff
wxMenu::AppendRadioItem() now implemented under all platforms but wxMotif
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 6 Jul 2006 00:17:50 +0000 (00:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 6 Jul 2006 00:17:50 +0000 (00:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/menu.tex
include/wx/features.h

index d2b4fe2e35ac81c7a76a747e188a12836c304d5b..fed7774d6005a614c2ddcbe63edf79dee256b320 100644 (file)
@@ -239,9 +239,6 @@ Adds a radio item to the end of the menu. All consequent radio items form a
 group and when an item in the group is checked, all the others are
 automatically unchecked.
 
 group and when an item in the group is checked, all the others are
 automatically unchecked.
 
-{\bf NB:} Currently only implemented under Windows and GTK, use
-{\tt\#if wxHAS\_RADIO\_MENU\_ITEMS} to test for availability of this feature.
-
 \wxheading{See also}
 
 \helpref{wxMenu::Append}{wxmenuappend},\rtfsp
 \wxheading{See also}
 
 \helpref{wxMenu::Append}{wxmenuappend},\rtfsp
index 796dedd445be20d0804599b6e9ba5ffe47962cc5..14f0f1821a2729604ce3b566800b31b30a4ebfb8 100644 (file)
 #ifndef _WX_FEATURES_H_
 #define _WX_FEATURES_H_
 
 #ifndef _WX_FEATURES_H_
 #define _WX_FEATURES_H_
 
-/*  radio menu items are currently only implemented in wxGTK and wxMSW */
-#if defined(__WXGTK__) || defined(__WXMSW__)
+/*  radio menu items are currently not implemented in wxMotif, use this
+    symbol (kept for compatibility from the time when they were not implemented
+    under other platforms as well) to test for this */
+#if !defined(__WXMOTIF__)
     #define wxHAS_RADIO_MENU_ITEMS
 #else
     #undef wxHAS_RADIO_MENU_ITEMS
     #define wxHAS_RADIO_MENU_ITEMS
 #else
     #undef wxHAS_RADIO_MENU_ITEMS