Ian Branch 127 Posted January 13, 2020 (edited) Hi Team, I am programmatically creating a TTaskDialog with two RadioButtons. All good. Based on a separate input I want to preselect one of the two radio buttons before displaying the dialog so the user can see which 'option' is currently enabled. What's the trick for this? I thought the following would do it but no. "RadioButtons.Items[0].SetInitialState". All the 'help' I can find don't seem to address this action. 😞 Regards & TIA, Ian Edited January 13, 2020 by Ian Branch Correct spelling. Share this post Link to post
FredS 138 Posted January 13, 2020 4 hours ago, Ian Branch said: RadioButtons Setting 'default' will select it. Share this post Link to post
Ian Branch 127 Posted January 13, 2020 Hi FredS, Thanks for that. Works a treat. if MyTest then RadioButtons.Items[0].Default := True else RadioButtons.Items[1].Default := True; Regards, Ian Share this post Link to post