Button* Button::GetNextRadio(bool forward) { Component *aComponent = GetNextSibling(forward,false); Button *aButton = dynamic_cast<Button*>(aComponent); if(aButton==NULL || !aButton->IsRadio()) return NULL; return aButton; }