[Lazarus] Object Inspector/Favorites tab, base class and adding properties from code?

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Jul 17 23:43:37 CEST 2014


On Thu, 17 Jul 2014 10:13:31 -0300
Bruno HR <bhreis88 at hotmail.com> wrote:

> Hello all,
> about the Favorites tab in the Object Inspector, why do we need to select a base class for a property to add to Favorites?

Only properties of instances inheriting from the class are favorites.


> And why do we need to choose a base class also when removing a
> property from Favorites?

These are excludes.


> Also, is there a way of declaring a property/event as "Favorite" in its declaration in the source code?

Yes:
DefaultOIFavoriteProperties.Add(TOIFavoriteProperty.Create(ABaseClass,APropertyName,true));


Mattias




More information about the Lazarus mailing list