d.bernaert Posted April 7, 2019 Share Posted April 7, 2019 Hi, does anybody know if it would be possible to display a label on the background of a login screen? I have a background image that is show but I would like to add a label with the name. I don't want to add the name to the image because when stretched the name is not displayed nicely. Thx, Dominique Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 7, 2019 Share Posted April 7, 2019 33 minutes ago, d.bernaert said: does anybody know if it would be possible to display a label on the background of a login screen? I have a background image that is show but I would like to add a label with the name. I don't want to add the name to the image because when stretched the name is not displayed nicely. Hi Dominique, One possible solution (CSS) 1. UniServerModule -> CustomCSS: body:after { content: attr(title) ""; font-family: Times New Roman; font-size: 36px; position: absolute; top: 10px; left: 10px; } 2. LoginForm -> OnCreate event: procedure TUniLoginForm1.UniLoginFormCreate(Sender: TObject); begin UniSession.AddJS('Ext.select("body").elements[0].setAttribute("title", "UniGUI LoginForm")'); end; 3. MainForm -> OnCreate event: procedure TMainForm.UniFormCreate(Sender: TObject); begin UniSession.AddJS('Ext.select("body").elements[0].setAttribute("title", "")'); end; 1 Quote Link to comment Share on other sites More sharing options...
d.bernaert Posted April 7, 2019 Author Share Posted April 7, 2019 Thx Sherzod, works perfectly. Dominique 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.