MVakili Posted July 25, 2021 Share Posted July 25, 2021 Base on another topic I change the color of unibitbtn UniBitBtn1.JSInterface.JSCall('btnWrap.setStyle', ['background-image', 'linear-gradient(to right, Cornsilk, DarkKhaki)']); now I want to change another component like UniPanel UniDbGrid unicheckBox and so on for example is it correct for UniPanel1 unipanel1.JSInterface.JSCall('pnlWrap.setStyle', ['background-image', 'linear-gradient(to right, Cornsilk, DarkKhaki)']); Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 25, 2021 Share Posted July 25, 2021 44 minutes ago, MVakili said: for example is it correct for UniPanel1? unipanel1.JSInterface.JSCall('pnlWrap.setStyle', ['background-image', 'linear-gradient(to right, Cornsilk, DarkKhaki)']); UniPanel1.JSInterface.JSCall('setBodyStyle', ['background-image', 'linear-gradient(to right, Cornsilk, DarkKhaki)']); Quote Link to comment Share on other sites More sharing options...
MVakili Posted July 25, 2021 Author Share Posted July 25, 2021 6 minutes ago, Sherzod said: UniPanel1.JSInterface.JSCall('setBodyStyle', ['background-image', 'linear-gradient(to right, Cornsilk, DarkKhaki)']); Tanks but dosnt work Quote Link to comment Share on other sites More sharing options...
MVakili Posted July 25, 2021 Author Share Posted July 25, 2021 procedure TJRBForm.UniFormShow(Sender: TObject); begin with UniPanel1.JSInterface do begin JSCall('btnWrap.setStyle', ['background-image', 'linear-gradient(to right, Cornsilk, DarkKhaki)']); end; UniPanel1.JSInterface.JSCall('setbodystyle', ['background-image', 'linear-gradient(to right, Cornsilk, DarkKhaki)']); Quote Link to comment Share on other sites More sharing options...
MVakili Posted July 25, 2021 Author Share Posted July 25, 2021 sorry it was my fault , your code works procedure TJRBForm.UniFormShow(Sender: TObject); begin // with UniBitBtn1.JSInterface do // begin // JSCall('btnWrap.setStyle', ['background-image', 'linear-gradient(to right, Cornsilk, DarkKhaki)']); // end; UniPanel1.JSInterface.JSCall('setBodyStyle', ['background-image', 'linear-gradient(to right, Cornsilk, DarkKhaki)']); end; is it for change of command? setbodystyle setBodyStyle Quote Link to comment Share on other sites More sharing options...
MVakili Posted July 25, 2021 Author Share Posted July 25, 2021 and how I can change this colors? is there any reference ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 25, 2021 Share Posted July 25, 2021 Do you have a simple testcase to check? Quote Link to comment Share on other sites More sharing options...
MVakili Posted July 25, 2021 Author Share Posted July 25, 2021 I wrote a testcase for you but here everything is ok !!!!!!!!!!!!! I will check my project again but 2 question 1- how I can transparent for example a checkbox 2- how I can change color (or transparent) behind of data in UniDbGrid in testcase Test.rar Quote Link to comment Share on other sites More sharing options...
MVakili Posted July 25, 2021 Author Share Posted July 25, 2021 I found number 1 answer Unicheckbox1.parentcolor:=False Quote Link to comment Share on other sites More sharing options...
MVakili Posted July 27, 2021 Author Share Posted July 27, 2021 How I can change this sections Quote Link to comment Share on other sites More sharing options...
MVakili Posted August 10, 2021 Author Share Posted August 10, 2021 Up Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 10, 2021 Share Posted August 10, 2021 On 7/27/2021 at 4:09 PM, MVakili said: Hello, Are these UniGUI controls? It seems you already have something. Quote Link to comment Share on other sites More sharing options...
MVakili Posted August 10, 2021 Author Share Posted August 10, 2021 Hi Yes its a theme I choice before screenshot Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 10, 2021 Share Posted August 10, 2021 4 minutes ago, MVakili said: its a theme I choice before screenshot Which theme? Quote Link to comment Share on other sites More sharing options...
MVakili Posted August 10, 2021 Author Share Posted August 10, 2021 I dont know one of this theme if it important ,I can find it for you later here the real page I change unipanel color as you told me ( UniPanel1.JSInterface.JSCall('setBodyStyle', ['background-image', 'linear-gradient(to top, ......., .......)']); ) but i have problem in unidbgrid and unipagecontrol Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 10, 2021 Share Posted August 10, 2021 On 7/27/2021 at 4:09 PM, MVakili said: At least for UniPageControl. The forum had similar questions and solutions, if I'm not mistaken. Quote Link to comment Share on other sites More sharing options...
MVakili Posted August 10, 2021 Author Share Posted August 10, 2021 its a ready theme and I dont like it I like to paint form by myself Quote Link to comment Share on other sites More sharing options...
MVakili Posted August 18, 2021 Author Share Posted August 18, 2021 On 8/11/2021 at 12:24 AM, Sherzod said: At least for UniPageControl. The forum had similar questions and solutions, if I'm not mistaken. I didnt found anything .. may help me? 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.