void RadioButtonTestCase::Click()
{
- // GTK does not support selecting a single radio button
-#if wxUSE_UIACTIONSIMULATOR && !defined(__WXGTK__)
- EventCounter selected(m_radio, wxEVT_COMMAND_RADIOBUTTON_SELECTED);
+ // GTK and OS X do not support selecting a single radio button
+#if wxUSE_UIACTIONSIMULATOR && !defined(__WXGTK__) && !defined(__WXOSX__)
+ EventCounter selected(m_radio, wxEVT_RADIOBUTTON);
wxUIActionSimulator sim;
void RadioButtonTestCase::Value()
{
#ifndef __WXGTK__
- EventCounter selected(m_radio, wxEVT_COMMAND_RADIOBUTTON_SELECTED);
+ EventCounter selected(m_radio, wxEVT_RADIOBUTTON);
m_radio->SetValue(true);