Hello,
I don't know if this is a bug. I tested TTMSFNCTaskDialog with radiobuttons.
Test 1:
TaskDialog.InputType := titCustom; // titEdit titDate titCustom titNone
TaskDialog.RadioButtons.Clear;
TaskDialog.RadioButtons.Add('First');
TaskDialog.RadioButtons.Add('Second');
var mr: TModalResult := TaskDialog.Execute;
case mr of
mrOk:
Begin
Result := TaskDialog.RadioButtonResult;
End;
end;
This works well:
-The default radio button is the 'First'
-If I chose 'First', I get back 0
-If I chose 'Second', I get back 1
Test 2:
The same code above, just with this modification:
TaskDialog.RadioButtons.Add('First');
TaskDialog.RadioButtons.Add('Second');
TaskDialog.DefaultRadioButton := 1;
This doesn't work well:
-The default radio button is the 'Second' as expected
-If I click immediately on OK button while the default 'Second' is selected I get back 0 !!
-If I chose 'First', I get back 0
-I get back 1 for the Second only if I click on First then click on Second
Thank you very much!