Jump to content

Recommended Posts

Posted

Hi,

 

The following code creates and places a label in a panel (see picture).

FLabelButtonList[0] := TUniLabel(InsertControl(TUniLabel.Create(self)));
  with FLabelButtonList[0] do
  begin
    Parent := pnlStandard;
    Caption := 'Button 1';
    Align := alTop;
    Alignment := taCenter;
    Margins.Left := 10;
    Margins.Top := 50;
    Margins.Right := 10;
    Margins.Bottom := 10;
    Height := 25;
    AlignWithMargins := True;
    Transparent := True;
    Visible := True;
    OnClick := DoClick;
  end;

However it seems the label doesn't use the margins (especially the top).

Does my code have a flaw?

 

post-1450-0-03133800-1484305927_thumb.png

Posted

Ok, thanks for testcase, need to analyze.

 

But for now, can you try this?!:

 

pnlNavigation:

 

1. AlignmentControl -> uniAlignmentServer

2. Layout -> ''

3. ClientEvents -> UniEvents -> function beforeInit:

function beforeInit(sender, config)
{
    config.layout = "accordion";
}

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