LabeledRadioButton* RadioButtonController::AddOption( const Gwen::UnicodeString& strText, const Gwen::String& strOptionName ) { LabeledRadioButton* lrb = new LabeledRadioButton( this ); lrb->SetName( strOptionName ); lrb->GetLabel()->SetText( strText ); lrb->GetRadioButton()->onChecked.Add( this, &RadioButtonController::OnRadioClicked ); lrb->Dock( Pos::Top ); lrb->SetMargin( Margin( 0, 1, 0, 1 ) ); lrb->SetKeyboardInputEnabled( false ); lrb->SetTabable( false ); Invalidate(); return lrb; }