gerardocrisci Posted April 10, 2018 Share Posted April 10, 2018 how to set the background with a project when the UniserverModule is set as MainFormDysplayMode = mfPage. I can give a background image to the MainForm .... in css Best regards. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 11, 2018 Share Posted April 11, 2018 Hi, Can you try this approach?!: uses ... UniGUIServer; procedure TMainForm.UniFormReady(Sender: TObject); begin if UniServerModule.MainFormDisplayMode = mfPage then UniSession.AddJS(MainForm.WebForm.JSForm.JSName + '.setBodyStyle(''background: url("'+ 'files/tulips.jpg' +'") repeat scroll 0% 0%;'');'); end; Best regards, 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.