Jump to content

How set background MainFormDysplayMode = mfPage


gerardocrisci

Recommended Posts

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...