XWidgetSoft Forum https://bbs.xwidget.com/ |
|
Double colour control script https://bbs.xwidget.com/viewtopic.php?f=8&t=4178 |
Page 1 of 1 |
Author: | Jimking [ February 24th, 2014, 4:46 pm ] |
Post subject: | Double colour control script |
The widget is the BodClock3d and I would like to make it full colour customization: ![]() Quote: function image1OnDblClick(Sender) { var color = selectColor(ampm.font.fill.color); setcolor(color); Setvalue("color",ampm.font.fill.color); SaveIni(); } function widgetOnLoad() { setcolor(GetValue("color",ampm.font.fill.color)); } function setcolor(color) { hour.font.fill.color = color; ampm.font.fill.color = color; day.font.fill.color = color; month.font.fill.color = color; } I would like to control/change the colour of two more components: "line" and "min". How should be the additional script to have the same colour control (for these two other components "line" and "min")? |
Author: | hamid [ March 7th, 2014, 11:23 pm ] |
Post subject: | Re: Double colour control script |
just you need to add those components like others: Code: function setcolor(color)
{ hour.font.fill.color = color; ampm.font.fill.color = color; day.font.fill.color = color; month.font.fill.color = color; //new components: line.font.fill.color = color; min.font.fill.color = color; } |
Author: | Jimking [ March 8th, 2014, 6:18 am ] |
Post subject: | Re: Double colour control script |
Thanks for the reply hamid! But I can't find the right place to put your script, and the doudle click function/script doesn't support it.. could you pls take a look from the "inside", for check better what I want to do.. |
Author: | hamid [ March 8th, 2014, 11:21 am ] |
Post subject: | Re: Double colour control script |
my old code would change the color of all components with one color i rewrite the code to have 2 color selections Attachment:
|
Author: | Jimking [ March 8th, 2014, 3:02 pm ] |
Post subject: | Re: Double colour control script |
hamid wrote: my old code would change the color of all components with one color i rewrite the code to have 2 color selections Now it's perfect! ![]() Thanks for your precious help hamid! |
Author: | Jimking [ March 8th, 2014, 3:53 pm ] |
Post subject: | Re: Double colour control script |
Posted: ![]() viewtopic.php?f=11&t=4224 |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |