PDA

View Full Version : Need help to change background colors


Robert29b
03-27-2008, 10:40 AM
I would like the users to be able to select a background color at startup. Not sure how to code it...


Thanks!

rexzooly
03-27-2008, 10:53 AM
maybe setting link images hidden with colors and names set hidden until they pic that color

jackdaniels
03-27-2008, 11:25 AM
i will upload u an example soon

ShadowUK
03-27-2008, 11:56 AM
01 -- Leave this.
02 Properties = {}
03
04 -- Configure this.
05 PageName = "Page1";
06 Properties.BackgroundColor = Math.HexColorToNumber( "FF0000");
07
08 -- Leave this.
09 Application.SetPageProperties(PageName, Properties);

jackdaniels
03-27-2008, 12:01 PM
here u go... do some chages save the color to a file then load it...

Robert29b
03-28-2008, 11:30 AM
here u go... do some chages save the color to a file then load it...

Thanks for the help. I made some changes to make it change the page background and it works great

again thanks!

local nR = e_Pos; -- текущая позиция красного цвета
local nG = SliderEx.GetSliderPos("Slider_G"); -- позиция зеленого цвета
local nB = SliderEx.GetSliderPos("Slider_B"); -- позиция синего цвета
local nColor = Math.RGBToNumber(nR, nG, nB); -- получаем номер цвета
--Shape.SetFillColor("Shape1", nColor); -- устанавливаем новый цвет для аудио плеера
Properties = {}
PageName = "Page1";
Properties.BackgroundColor = nColor;
Application.SetPageProperties(PageName, Properties);

GoOgLe
03-28-2008, 11:52 AM
Thanks for the help. I made some changes to make it change the page background and it works great

again thanks!

local nR = e_Pos; -- текущая позиция красного цвета
local nG = SliderEx.GetSliderPos("Slider_G"); -- позиция зеленого цвета
local nB = SliderEx.GetSliderPos("Slider_B"); -- позиция синего цвета
local nColor = Math.RGBToNumber(nR, nG, nB); -- получаем номер цвета
--Shape.SetFillColor("Shape1", nColor); -- устанавливаем новый цвет для аудио плеера
Properties = {}
PageName = "Page1";
Properties.BackgroundColor = nColor;
Application.SetPageProperties(PageName, Properties);

where did u add this code ?