}
// --------------------------------------------------------------------
-// The following four functions are used to find other radio buttons
+// The following four functions are used to find other radio buttons
// within the same group. Used by wxSetFocusToChild on wxMSW
// --------------------------------------------------------------------
nodeBefore = nodeBefore->GetPrevious();
}
-
+
if (!prevBtn || prevBtn->HasFlag(wxRB_SINGLE))
{
// no more buttons in group
wxRadioButton* prevBtn = wxGetPreviousButtonInGroup(btn);
if (!prevBtn)
return btn;
-
+
btn = prevBtn;
}
}
return NULL;
}
-#endif __WXMSW__
+#endif // __WXMSW__
// ----------------------------------------------------------------------------
// Keyboard handling - this is the place where the TAB traversal logic is
if ( winFocus )
{
#ifdef __WXMSW__
- // If we are in a radio button group, start from the first item in the
+ // If we are in a radio button group, start from the first item in the
// group
if ( event.IsFromTab() && wxIsKindOf(winFocus, wxRadioButton ) )
winFocus = wxGetFirstButtonInGroup((wxRadioButton*)winFocus);
{
if (!wxIsKindOf(child, wxRadioButton))
{
- child = forward ?
- wxGetNextButtonInGroup((wxRadioButton*)m_winLastFocused) :
+ child = forward ?
+ wxGetNextButtonInGroup((wxRadioButton*)m_winLastFocused) :
wxGetPreviousButtonInGroup((wxRadioButton*)m_winLastFocused);
if (!child)
{
if ( child->AcceptsFocusFromKeyboard() && !child->IsTopLevel() )
{
#ifdef __WXMSW__
- // If a radiobutton is the first focusable child, search for the
+ // If a radiobutton is the first focusable child, search for the
// selected radiobutton in the same group
wxRadioButton* btn = wxDynamicCast(child, wxRadioButton);
if (btn)