Dudi Heryadi Posted October 22, 2018 Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted October 22, 2018 Share 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; Link to comment Share on other sites More sharing options...
Dudi Heryadi Posted October 22, 2018 Author Share Posted October 22, 2018 Great, it works, thank you I'll report it to support portal Best Regards Link to comment Share on other sites More sharing options...
Andrea Franco Posted October 28, 2019 Share 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) Link to comment Share on other sites More sharing options...
Sherzod Posted October 28, 2019 Share 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: Link to comment Share on other sites More sharing options...
Andrea Franco Posted October 30, 2019 Share Posted October 30, 2019 Done Andrea Link to comment Share on other sites More sharing options...
Sherzod Posted October 30, 2019 Share Posted October 30, 2019 2 minutes ago, Andrea Franco said: Done Andrea Thank you for the update. Link to comment Share on other sites More sharing options...
Sherzod Posted October 30, 2019 Share 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? Link to comment Share on other sites More sharing options...
Andrea Franco Posted October 30, 2019 Share Posted October 30, 2019 Something like this. Andrea RadioGroupTest.pas Link to comment Share on other sites More sharing options...
Sherzod Posted October 31, 2019 Share 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; Link to comment Share on other sites More sharing options...
Andrea Franco Posted October 31, 2019 Share Posted October 31, 2019 Thank you, it works! Andrea Link to comment Share on other sites More sharing options...
Sherzod Posted October 31, 2019 Share Posted October 31, 2019 Very good. You are welcome. Link to comment Share on other sites More sharing options...
Mehmet Emin Posted May 23, 2021 Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted May 23, 2021 Share Posted May 23, 2021 Hello, 31 minutes ago, Mehmet Emin said: Do we need to reopen a bug report for this? Will do it. Link to comment Share on other sites More sharing options...
Sherzod Posted May 23, 2021 Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now