dionel1969 Posted August 19, 2011 Share Posted August 19, 2011 Hello !!! I have an app with property "MainFormDisplayMode" set to mfPage, and I want to change background color to SkyBlue. So in the server module I add this in CustomCSS: <style type="text/css"> body { background-color:#87cefa; } </style> but it does not work. Link to comment Share on other sites More sharing options...
ibandyop Posted August 19, 2011 Share Posted August 19, 2011 Set the property MainForm.Color:=clSkyBlue; Link to comment Share on other sites More sharing options...
patmap Posted August 19, 2011 Share Posted August 19, 2011 Hi, So you can change background color and image with css: .x-panel-body, body { background-color:#87cefa; background-image: url(bg.png); } Regards Link to comment Share on other sites More sharing options...
dionel1969 Posted August 19, 2011 Author Share Posted August 19, 2011 Thank you for answers. The second works. The first must work but I forgot to say that I wanted it for web, no for windows application. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 20, 2011 Administrators Share Posted August 20, 2011 In both page mode and windowed mode Background color of MainForm can be set via MainForm.Color. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now