Enhanced radio button with custom styling, colors, and Bootstrap integration.
form-check - Standard form radio stylingform-check-primary, form-check-success - Colored radiosbtn-check - Button-style radio (toggle buttons)// Create radio group RadioButton1.Text := 'Option 1'; RadioButton1.GroupName := 'MyGroup'; RadioButton1.IsChecked := True; RadioButton2.Text := 'Option 2'; RadioButton2.GroupName := 'MyGroup'; RadioButton3.Text := 'Option 3'; RadioButton3.GroupName := 'MyGroup';
RadioButton1.CheckColor := TAlphaColors.Green; RadioButton1.CircleColor := TAlphaColors.Darkgray; RadioButton1.TextColor := TAlphaColors.Black;
RadioButton1.ButtonStyle := rsButton; RadioButton1.FlexFMXCSS.Text := 'btn-primary'; RadioButton1.Width := 120;
function GetSelectedOption: string;
begin
if RadioButton1.IsChecked then
Result := 'Option1'
else if RadioButton2.IsChecked then
Result := 'Option2'
else if RadioButton3.IsChecked then
Result := 'Option3';
end;
OnChange - Radio button checked state changedOnClick - Radio button clicked