XWidgetSoft Forum
https://www.bbs.xwidget.com/

Help with button colors
https://www.bbs.xwidget.com/viewtopic.php?f=7&t=2107
Page 1 of 1

Author:  Nutu [ September 10th, 2012, 5:05 am ]
Post subject:  Help with button colors

Is there any way to change the color of the button via scripting? I have this code and it won't work.
Code:
quadcore_processor_button.Background.SolidColor.Color = 235,69,69,167;


Anyone got any ideas? Thanks a lot.

Author:  vlad [ September 10th, 2012, 5:28 am ]
Post subject:  Re: Help with button colors

check this Example : http://4ybak47.deviantart.com/art/xWidg ... -324424626

Author:  Nutu [ September 10th, 2012, 5:47 am ]
Post subject:  Re: Help with button colors

Thanks a lot. Now it works :D

Author:  qiancang [ September 11th, 2012, 3:02 am ]
Post subject:  Re: Help with button colors

quadcore_processor_button.Background.SolidColor.Color = rgba(235,69,69,167);

Author:  Nutu [ September 11th, 2012, 3:03 am ]
Post subject:  Re: Help with button colors

Thanks qiancang! You simplified it a lot. O_O

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/