Jump to content

TUniDBRadioGroup Color


dkeene

Recommended Posts

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...