[Lazarus] Declaration of an event type inside a class
Alexander Klenin
klenin at gmail.com
Sun Jan 25 22:30:53 CET 2015
On Mon, Jan 26, 2015 at 7:12 AM, Werner Pamler <werner.pamler at freenet.de> wrote:
> The declaration of TDrawEvent is part of the TChart declaration! As reported
> in the German Lazarus forum
> (http://www.lazarusforum.de/viewtopic.php?f=18&t=8474), an error "Unable to
> show method..." is generated because of this construction: If I move the
> TDrawEvent out of the TChart context everything works fine.
>
> I cannot reach Alexander S Klenin for clarification. But what could have
> been his intention of doing it this way? (Or maybe it is just a typo?)
Yes, it was, to lower the namespace pollution (and to play with a
modern FPC feature along the way :-) ).
If this event is moved out of TChart, it should probably be called
"TChartDrawEvent" or similar.
--
Alexander S. Klenin
More information about the Lazarus
mailing list