Alessandro Posted October 3, 2017 Share Posted October 3, 2017 Hello! How do I disable an uniDBRadioGroup item at run time? In old Delphi I used uniDBRadioGroup1.Controls[1].Enabled := False but this command in uniGUI is giving error. Error: Access violation at address 004BC6A2 in module 'Program.exe'. Read of address 00000008. Thank you Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 4, 2017 Share Posted October 4, 2017 Hello, Can you try this approach for now ?!: For example for the second item -> getAt(1): Disable: UniDBRadioGroup1.JSInterface.JSAssign('radioGroup.items.getAt(1).disabled', [True]); Enable: UniDBRadioGroup1.JSInterface.JSAssign('radioGroup.items.getAt(1).disabled', [False]); Best regards, 1 Quote Link to comment Share on other sites More sharing options...
Alessandro Posted October 4, 2017 Author Share Posted October 4, 2017 Hello, Can you try this approach for now ?!: For example for the second item -> getAt(1): Disable: UniDBRadioGroup1.JSInterface.JSAssign('radioGroup.items.getAt(1).disabled', [True]); Enable: UniDBRadioGroup1.JSInterface.JSAssign('radioGroup.items.getAt(1).disabled', [False]); Best regards, Thank you! Quote Link to comment Share on other sites More sharing options...
marchello Posted October 11, 2017 Share Posted October 11, 2017 Как растянуть кнопки на всю площадь radiogroup? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.