mofareh Posted January 4 Share Posted January 4 how i can change the UniGauge ValueStyle Brush Color at runtime this code not working!! if UniTrackBar1.Position>50 then begin UniGauge3.ValueStyle.Brush.Color:=clred; end else begin UniGauge3.ValueStyle.Brush.Color:=clgreen; end; UniGauge3.Value := UniTrackBar1.Position; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 5 Share Posted January 5 Hello, I will check and let you know. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 5 Share Posted January 5 16 hours ago, mofareh said: how i can change the UniGauge ValueStyle Brush Color at runtime Hello, Some workaround: procedure TMainForm.UniButton1Click(Sender: TObject); begin with UniGauge1 do begin ValueStyle.Brush.Color := clGreen; JSInterface.JSAssign('getRefItems()[0].valueArc.style.fill', [uniColor2Web(ValueStyle.Brush.Color)]); end; end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 5 Share Posted January 5 * uniColor2Web uses ... UniGUIJSUtils; Quote Link to comment Share on other sites More sharing options...
mofareh Posted January 15 Author Share Posted January 15 thank you 👍 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.