Jump to content

Footer in UniLoginForm


artem_niko

Recommended Posts

Hello!

How create footer in bottom on UniLoginForm?

For example, so how this created in this site (sberbank.ru):

image.thumb.png.962e09478fe7667c62a1bea83f026f9b.png

I will try like this:

procedure TUniLoginForm1.UniLoginFormCreate(Sender: TObject);
begin
  Left:=20;
  Top:=20;
  with TUniPanel.Create(Self) do
  begin
    Caption:='Все авторские права защищены. &copy';
    Font.Name:='Roboto';
    Font.OverrideDefaults:=UniFSButtonEnter.Font.OverrideDefaults;
    Font.Color:=clBlack;
    Font.Size:=9;
    Left:=3;
    Top:=3;
    AlignWithMargins:=True;
    Margins.Left:=40;
    Margins.Bottom:=40;
    Visible:=True;
//    JSInterface.JSConfig('renderTo', [JSInterface.JSStatement('Ext.getBody()')]);
//    JSInterface.JSCode(
//        'Ext.onReady(function(){' + JSName + '.setStyle("position","absolute");'
//                                  + JSName + '.setStyle("top",null);'
//                                  + JSName + '.setStyle("bottom",0);});');
  end;
end;

But this not work.

Link to comment
Share on other sites

2 hours ago, Артем said:

with TUniPanel.Create(Self) do begin Caption:='Все авторские права защищены. &copy'; Font.Name:='Roboto'; Font.OverrideDefaults:=UniFSButtonEnter.Font.OverrideDefaults; Font.Color:=clBlack; Font.Size:=9; Left:=3;

I don't see that you are assigning a parent.

Parent := 

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