On 06/04/2010 15:41, Alexander Klenin wrote:
I think one possibility to avoid excessive number of Layouters is to create a concept of "built-in" layouter for each component. If chosen appropriately, such layouter may serve as a good default for simple application, as well as provide backwards compatibility with the current implementation. Anyone interested may look at TChartSeries.Source / TChartSeries.FBuiltinSource fields in TAChart component for an example. The only inconvenience is that Object Inspector and streaming subsystem currently do not fully support editing of properties of such built-in component, but I think that is not too hard to add.
I hadn't had quite an exact look. But I assume FBuiltinSource can be assigned different sub-classes?
SynEdit streams something like this => look a the gutter implementation Martin -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
