dkeene Posted November 17, 2020 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
Sherzod Posted November 17, 2020 Posted November 17, 2020 18 minutes ago, dkeene said: error: O4B2.setFieldStyle("background-color:#0000FF;background-image:none"); Hello, We will check it. Quote
Sherzod Posted November 22, 2020 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
dkeene Posted November 22, 2020 Author 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
Sherzod Posted November 23, 2020 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
dkeene Posted November 24, 2020 Author Posted November 24, 2020 could this be fixed for the next upgrade so this workaround is not needed? 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.