mierlp Posted July 12, 2017 Share Posted July 12, 2017 hi When using a theme the most showmessage are displayed with a clBtnFace backgroundinstead of white. See attachement. The background of the text area is clBtnFace. The behavior of a showmessage depends on the theme you are using. How to change the background text area ? Regards Peter Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 13, 2017 Share Posted July 13, 2017 Hi, Can you try to use this approach for now ?! For example: procedure TMainForm.UniButton1Click(Sender: TObject); begin MessageDlg('Dialog1', mtWarning, [mbOK], DCallBack); UniSession.AddJS('Ext.select("#messagebox-1001-body").elements[0].style.backgroundColor="white";'); //<----- end; Best regards, Quote Link to comment Share on other sites More sharing options...
mierlp Posted October 4, 2018 Author Share Posted October 4, 2018 Hi When using this code then the area with the buttons is gray. I need a compleet white background for the message and the buttons Quote Link to comment Share on other sites More sharing options...
GerhardV Posted October 5, 2018 Share Posted October 5, 2018 Add to CustomCSS: .x-message-box .x-window-body { background-color: #fff; } .x-message-box > .x-window-bodyWrap > .x-toolbar-footer { background-color: #fff; } You can also add it to the any of the theme CSS files if you only want it for a spesific theme, for example: ..\FMSoft\Framework\uniGUI\unipackages-6.5.3\themes\css\uni-xtheme-uni_classic.css Quote Link to comment Share on other sites More sharing options...
mierlp Posted October 5, 2018 Author Share Posted October 5, 2018 Thanks...that works perfect 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.