On Wed, May 16, 2012 at 5:13 PM, cobines <[email protected]> wrote: > 2012/5/16 Krzysztof <[email protected]>: >> Or must I create new descendant of TMyProperty for each control and >> then change default value of SomeValue property? > > Yes, I think you have to do this. If you want to have different > defaults for the property then you need to make different classes for > them.
Yes, this is somewhat annoying. In TAChart I tried to reduce the amount of extra code by setting the default value in the ancestor class based on RTTI. This way you need not override constructors of descendant properties. -- Alexander S. Klenin -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
