Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-07

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

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bruno HR

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? And why do we need to choose a base class also when removing a property from Favorites? Also, is there a way of declaring a property/event as "Favorite" in its declaration in the source code? Or yet, is there a file where Lazarus reads its Favorites properties/events from? Could it be edited manually? Thanks in advance!
(Laz 1.2.4, i386-win32, FPC 2.6.4, win7-32bit)
Bruno Henrique Reis
--> (51) 8178-5760

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140717/3dd0b382/attachment.html>

Reply by email

Mattias Gaertner
to Bruno HR
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

Reply by email