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 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. Link to comment Share on other sites More sharing options...
dkeene Posted November 17, 2020 Author Share Posted November 17, 2020 Thank you 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? 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 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; 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? 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