I have created several windows and attached divs, charts and grids. Is there a way to set the background color of the window object through code? I’m sure this can be done by modifying the theme’s stylesheet but I need to change the colors dynamically
Something like the following.
w4= dhxWins.createWindow(“w4”, 20 , 20, 500, 500);
w4.style.background = “blue”;
This creates the window okay, but does not change the background color.
Hopefully one last question. How to I set the boarder/background color back to the theme default? I need to change the colors dynamically occasionaly I also need to return them back to their original colors.
For example, when I set…
window.firstChild.style.background = “red”;
How do I now change it back to the default theme background?
I have tried the following but it just sets it back to a plain blue background, not the nice one included with the dhx_skyblue theme:
window.firstChild.style.background = “”;
Thanks,
Your example seems to work great in IE but not if firefox.
In IE the windows goes back to normal, in firefox it looks a little different. I have attached a screenshot to help