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. Quote 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; Quote 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 Quote 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. Quote 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.