Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-10

TAChart - OnDrawReticule event problem

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Pierre

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" a ?crit : > On Sat, Oct 3, 2009 at 08:05, Pierre 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 > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

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

No particular reason -- just nobody requested it.
Implemented in r22011-22012

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.

You can already set AreaLinePen.Style to psClear.
This, however, will disable the border around the area series as well as vertical lines between segments.
If you want to disable the latter while preserving the former, you will indeed have
to either change the drawing procedure or create your own series. I think this is a reasonable feature, so if you provide a patch that adds "DrawVerticalLines" property to TAreaSeries and changes TAreaSeries.Draw accordingly,
I shall gladly take it ;-)

Alexander S. Klenin

Reply by email