Jump to content

Show label on background of login screen


d.bernaert

Recommended Posts

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

Link to comment
Share on other sites

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;

BodyText.thumb.png.b68ce591580b736781bae345fce19fa5.png

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...