Dudi Heryadi Posted October 22, 2018 Posted October 22, 2018 Hi, How to make TUnimradio checked by default without have to tap on it? I already set property checked=true and also put command UnimRadio1.checked := true on form oncreate, but still doesn't work. I also already changed theme, but nothing works. can someone help? Best Regards Quote
Sherzod Posted October 22, 2018 Posted October 22, 2018 Hi, Can you please report to support portal ?! And can you try this approach for now ?!: procedure TMainmForm.UnimFormCreate(Sender: TObject); begin UnimRadio1.JSInterface.JSCall('check', [True]); end; Quote
Dudi Heryadi Posted October 22, 2018 Author Posted October 22, 2018 Great, it works, thank you I'll report it to support portal Best Regards Quote
Andrea Franco Posted October 28, 2019 Posted October 28, 2019 Hi, I'm trying to build a custom radiogroup component with multiple TUnimRadio inside, I want the first radio btn checked but setting the checked property is still not working, the suggested approach doesn't works on constructor ("Interface not supported" when I try to use the component at design time), can someone help me? Thanks, Andrea (uniGUI Complete - Professional Edition - Version:1.90.0 build 1511) Quote
Sherzod Posted October 28, 2019 Posted October 28, 2019 40 minutes ago, Andrea Franco said: (uniGUI Complete - Professional Edition - Version:1.90.0 build 1511) Hi Andrea, Please adjust your forum email address: Quote
Sherzod Posted October 30, 2019 Posted October 30, 2019 2 minutes ago, Andrea Franco said: Done Andrea Thank you for the update. Quote
Sherzod Posted October 30, 2019 Posted October 30, 2019 On 10/28/2019 at 8:40 PM, Andrea Franco said: I'm trying to build a custom radiogroup component with multiple TUnimRadio inside, I want the first radio btn checked but setting the checked property is still not working, the suggested approach doesn't works on constructor ("Interface not supported" when I try to use the component at design time), can someone help me? Can you make a simple testcase for this? Quote
Andrea Franco Posted October 30, 2019 Posted October 30, 2019 Something like this. Andrea RadioGroupTest.pas Quote
Sherzod Posted October 31, 2019 Posted October 31, 2019 21 hours ago, Andrea Franco said: Something like this. Andrea RadioGroupTest.pas Try this: type TRadioGroupTest = class(TUnimContainerPanel) private FRadio1: TUnimRadio; FRadio2: TUnimRadio; protected procedure LoadCompleted; override; //<----- ... procedure TRadioGroupTest.LoadCompleted; begin inherited; FRadio1.JSInterface.JSCall('check', [True]); end; Quote
Mehmet Emin Posted May 23, 2021 Posted May 23, 2021 @Sherzod As of today this problem still exists. Although your solution solves the issue I don't want to call JS function everytime I use a radio button. Do we need to reopen a bug report for this? Thanks Quote
Sherzod Posted May 23, 2021 Posted May 23, 2021 Hello, 31 minutes ago, Mehmet Emin said: Do we need to reopen a bug report for this? Will do it. Quote
Sherzod Posted May 23, 2021 Posted May 23, 2021 2 hours ago, Mehmet Emin said: As of today this problem still exists. Although your solution solves the issue I don't want to call JS function everytime I use a radio button. Do we need to reopen a bug report for this? I opened a ticket. Quote
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.