How to add custom properties to dynamically (programmatically) created controls in FireMonkey?


In the app that I am building I am adding controls dynamically to TFramedScrollbox control on Form.
Here is the code that I am using:
pnlNew: TFlowLayout;
pnlNew := TFlowLayout.Create(sbMain);
pnlNew.Align := TAlignLayout.Top;
pnlNew.ClipChildren := True;

pnlNew.Parent := sbMain;

And this code is working as expected.
But I want to add dynamic properties like OrgHeight, CreateOrder, PrevControl, etc. to this programmatically created control.
How to do this?

Comments are closed.