I want to use UniBitBtn to do something,
1。How to change UniBitBtn's color?
2.How to mark the progress just like UniProgressBar?
Thanks everyone.
procedure TMainForm.UniBitBtn1Click(Sender: TObject);
var
vPosition: Integer;
begin
vPosition := 75;
with UniBitBtn1.JSInterface do
begin
JSCall('btnWrap.setStyle', ['background-image', 'linear-gradient(to right, green, lime)']);
JSCall('btnWrap.setStyle', ['background-size', vPosition.ToString + '% 100%']);
JSCall('btnWrap.setStyle', ['background-repeat', 'no-repeat']);
end;
end;