ReturnIsTab generally declared

Hello!

I often used ReturnIsTab behaviour of components as custom parametrized option  (some customers uses this functionallity , some don't) in my applications.  At development and maintance time is to hard to applay this property to each new object/commponent manually.  At runtime I must applay property for each commponent "manually trough code'.

What to use for general setting this (ReturnIsTab) property at runtime? I woudn't like walking from code from one control to another nad changing this property.  Does exists some geral flag/switch/directive for this purpose? One of options is inheriting components as base class for my own components buth I try to avoid this option.

Thanks!

A solution is to browse recursively all your components in the form and use IsPublishedProp function to see if ReturnIsTab is a property and then change it.