[Lazarus] TAChart - OnDrawReticule event problem

Pierre dpliste at free.fr
Sat Oct 3 00:33:40 CEST 2009


Hi Alexander,

I made the test with the line. It works :-)
Do you know why it's not implemented in area type?

I was also thinking to create my own type based on the area type but without the vertical line from the point to YMin (to draw the polygon without the border) but without this event it's not very interesting for me. 

Thanks for the job Alexander.

Regards,
--
Pierre Delore

http://datalinkwristapps.free.fr
http://dpsite.free.fr

----- "Alexander Klenin" <klenin at gmail.com> a écrit :

> On Sat, Oct 3, 2009 at 08:05, Pierre <dpliste at free.fr> wrote:
> > Hi all,
> >
> > I'm trying to use the TAChart under 0.9.28.1 (I downloaded
> "Lazarus-0.9.28.1-21932-fpc-2.2.4-20091001-win32.exe").
> >
> > I have a problem the OnDrawReticule event. It's never called :(
> 
> Hm, it works for me. Please see components/tachart/basic/demp.lpi as
> a
> demo project.
> If it does not help, please post a complete minimal project showing
> the problem.
> Without such a project, I can guess that you either use wrong series
> type
> (e.g. TPieSeries can not show reticule) or forget to set ReticuleMode
> property.
> 
> > I take a look at the source and I find that in the "UpdateReticule"
> procedure (line 914 of TAGraph)
> > the function "GetNearestPoint" is called but it always return
> False.
> 
> [skip code analysis]
> 
> GetNearestPoint is a virtual function, so you should look at the
> override
> in the series type you actually use, not at basic empty stub.
> 
> -- 
> Alexander S. Klenin
> 
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




More information about the Lazarus mailing list