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. 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, 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