+
+#ifdef __WXMSW__
+ // we need to hop to the next activated
+ // radio button, not just the next radio
+ // button under MSW
+ if (wxIsKindOf(child,wxRadioButton))
+ {
+ wxRadioButton *rb = (wxRadioButton*) child;
+ if (!rb->GetValue())
+ {
+ for (;;)
+ {
+ wxWindowList::compatibility_iterator node = children.Find( child );
+ if (forward)
+ node = node->GetNext();
+ else
+ node = node->GetPrevious();
+ if (!node)
+ return; // this would probably an error
+ child = node->GetData();
+ if (!wxIsKindOf(child,wxRadioButton))
+ continue;
+ rb = (wxRadioButton*) child;
+ if (rb->GetValue())
+ break;
+ }
+ }
+ }
+#endif // __WXMSW__
+