dkeene Posted November 17, 2020 Share Posted November 17, 2020 Hello I am able to change the "Color" property of a TUniDBRadioGroup during design time. When I try to change during Run TIme, I get an error: O4B2.setFieldStyle("background-color:#0000FF;background-image:none"); Am I doing something wrong? Thank you Douglas Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 17, 2020 Share Posted November 17, 2020 18 minutes ago, dkeene said: error: O4B2.setFieldStyle("background-color:#0000FF;background-image:none"); Hello, We will check it. Quote Link to comment Share on other sites More sharing options...
dkeene Posted November 17, 2020 Author Share Posted November 17, 2020 Thank you Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 22, 2020 Share Posted November 22, 2020 Hello, Sorry for the clarification. On 11/17/2020 at 10:06 PM, dkeene said: I am able to change the "Color" property of a TUniDBRadioGroup during design time. How? Quote Link to comment Share on other sites More sharing options...
dkeene Posted November 22, 2020 Author Share Posted November 22, 2020 19 hours ago, Sherzod said: Hello, Sorry for the clarification. How? TUniDBRadioGroup and TUniRadioGroup have propery Color, at design time it can be set to anything.snap058.bmp Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 23, 2020 Share Posted November 23, 2020 2 hours ago, dkeene said: TUniDBRadioGroup and TUniRadioGroup have propery Color, at design time it can be set to anything.snap058.bmp Workaround: Uses ..., UniGUIJSUtils; procedure TMainForm.UniFormCreate(Sender: TObject); begin with UniRadioGroup1 do JSInterface.JSAddListener('afterrender', 'function(){this.setStyle("background-color", "' + uniColor2Web(Color) + '")}'); end; Quote Link to comment Share on other sites More sharing options...
dkeene Posted November 24, 2020 Author Share Posted November 24, 2020 could this be fixed for the next upgrade so this workaround is not needed? 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.