How to control the order of tcontrols in another control [Ed |
|
Re: How to control the order of tcontrols in another control |
|
Re: How to control the order of tcontrols in another control |
|
Well after working on this for a while, and then posting the question, it occurred to me to try below:
{code}
for i := 1 to 10 do begin
abtn := TCornerButton.Create(nil);
// abtn.Align := TAlignLayout.Top;
abtn.Text := floattostr(frac(now));
exp.AddObject(abtn);
abtn.Align := TAlignLayout.Bottom;
abtn.Align := TAlignLayout.Top;
end
{code}
And it worked! I hope above can save others hours of headache.
|