[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Dialogs' (#lcl)

# TCustomTaskDialog.RadioButton

The radio button selected on the Task dialog.

## Declaration

Source position: dialogs.pp line 836

`public property TCustomTaskDialog.RadioButton : TTaskDialogRadioButtonItem read FRadioButton;`

## Description

RadioButton is a read-only TTaskDialogRadioButtonItem property with the radio button selected when the Task dialog was executed. The property value is set in the Execute method, and contains an entry from the RadioButtons collection or Nil if a radio button was not selected or available.

Use the Default property in one of the RadioButtons to indicate the selected radio button control when the Execute method is called.

Include tfNoDefaultRadioButton in the Flags property to disable automatic selection of a default radio button on the dialog form.

## See also

TCustomTaskDialog.RadioButtons |  | Collection with the optional radio buttons defined for the Task dialog.
TCustomTaskDialog.Execute |  | Displays the task dialog and captures the modal result value.
TCustomTaskDialog.Flags |  | Set of options enabled for the Task dialog.
TCustomTaskDialog.DoExecute |  | Performs actions to configure and execute the dialog.
TTaskDialogRadioButtonItem |  | Implements a radio button displayed on a Task dialog.