[Lazarus] TAChart: simple patch and a code cleanup question
Alexander Klenin
klenin at gmail.com
Tue Nov 4 17:08:12 CET 2008
Hi,
The TNBPages(TStrings) class does not implement the GetObect and PutObject
calls of TStrings correctly.
That is, If I do a
MyNoteBook.Pages.AddObject('SomeString',SomeObject);
the SomeObject is simply lost. (logical, PutObject is not implemented)
Instead, the MyNoteBook.Pages.Objects returns a reference to the
TCustomPage used by the notebook. This is of course horribly wrong :(
It's easy enough to fix this by correctly implementing TNBPages.PutObject
and fixing TNBPages.GetObject. I can do this, but before I do this, I would
like to know if there is LCL code that relies on the fact that
Pages.Objects return references to the actual TCustomPage instances ?
Michael.
More information about the Lazarus
mailing list