Prevent published properties from adding

Hello...

I'm using the TatCustomScripter to control some scripting for a at runtime generated form. The user can access components on the form via script and I'm adding those components via AddObject, this all works fine in VCL and FMX....

My problem is the user should not access all published properties of the component. For example the TLABEL component. In the VCL it is inherited from TCUSTOMLABEL, like almost any component in the VCL, but under FMX the TLABEL has an other inheritance :frowning:

Is there a way to filter published properties?

Regards, Kai

You can delete properties from existing classes this way:

atScripter1.Classes.ClassByName('TLabel').RemoveProperty('Caption');