[Lazarus] Object Inspector/Favorites tab, base class and adding properties from code?
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 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Object Inspector/Favorites tab, base class and adding properties from code?
On Thu, 17 Jul 2014 10:13:31 -0300 Bruno HR bhrei...@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 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus