From 7c5cd6e9ad02d43ad2d25565d36414c45ff917aa Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 6 Jul 2006 00:17:50 +0000 Subject: [PATCH] wxMenu::AppendRadioItem() now implemented under all platforms but wxMotif git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/menu.tex | 3 --- include/wx/features.h | 6 ++++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/latex/wx/menu.tex b/docs/latex/wx/menu.tex index d2b4fe2e35..fed7774d60 100644 --- a/docs/latex/wx/menu.tex +++ b/docs/latex/wx/menu.tex @@ -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. -{\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 diff --git a/include/wx/features.h b/include/wx/features.h index 796dedd445..14f0f1821a 100644 --- a/include/wx/features.h +++ b/include/wx/features.h @@ -15,8 +15,10 @@ #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 -- 2.47.2