Mike Posted January 13, 2017 Posted January 13, 2017 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? Quote
Sherzod Posted January 13, 2017 Posted January 13, 2017 Hi, Which version are you using?! I couldn't reproduce. Best regards. Quote
Mike Posted January 13, 2017 Author Posted January 13, 2017 Hi, Currently I am using version 1.0.0.1362. Regards. Quote
Sherzod Posted January 13, 2017 Posted January 13, 2017 Can you make a small test case for this issue?! Quote
Mike Posted January 13, 2017 Author Posted January 13, 2017 Sure. I have attached a sample. Sample1.zip Quote
Sherzod Posted January 13, 2017 Posted January 13, 2017 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"; } Quote
Mike Posted January 13, 2017 Author Posted January 13, 2017 Thanks. That is working but now alignment (center) doesn't work anymore. Quote
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.