Sign in Join

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

Mailing lists / lazarus / 2010-01

tchart repaint on mouseclick

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Andrea Mauri

why if I left click on a TChart the series on that TChart are repainted also if I do not do anything else then click on the chart? andrea

Reply by email

Alexander Klenin
to Andrea Mauri
Andrea Mauri wrote
why if I left click on a TChart the series on that TChart are repainted also if I do not do anything else then click on the chart?

You can set AllowZoom property to false to avoid this.

Alexander S. Klenin

Reply by email

Andrea Mauri
to Alexander Klenin

Il 15/01/2010 6.28, Alexander Klenin ha scritto:

Show quoted text 7 lines
On Thu, Jan 14, 2010 at 23:32, Andrea Mauri wrote: > why if I left click on a TChart the series on that TChart are repainted also > if I do not do anything else then click on the chart? You can set AllowZoom property to false to avoid this.

dear alexander, I thought it is related to zoom options. anyway it repaints the chart also if I just click without zooming the chart (without dragging the mouse with mouse clicked). so if I just click on the chart, the chart is not zoomed but repainted as it is. in many cases this is not a problem (quite not visible) but I can see the chart repainting when I have a lot of points and the marks are visible. I get the marks querying a db, so when I have a lot of points and a lot of marks the repainting is quite annoying. andrea

Reply by email

Alexander Klenin
to Andrea Mauri
Andrea Mauri wrote 10 lines
Il 15/01/2010 6.28, Alexander Klenin ha scritto: >> why if I left click on a TChart the series on that TChart are repainted also >> if I do not do anything else then click on the chart? > > You can set AllowZoom property to false to avoid this. > dear alexander, I thought it is related to zoom options. anyway it repaints the chart also if I just click without zooming the chart (without dragging the mouse with mouse clicked). so if I just click on the chart, the chart is not zoomed but repainted as it is.

Ok, try r23468 -- should be better now.

in many cases this is not a problem (quite not visible) but I can see the chart repainting when I have a lot of points and the marks are visible. I get the marks querying a db, so when I have a lot of points and a lot of marks the repainting is quite annoying.

Not directly related to your question,
but you can try using TListChartSource.CopyFrom procedure to cache data from db chart source (see db demo for an example).

Alexander S. Klenin

Reply by email

Andrea Mauri
to Alexander Klenin

Il 15/01/2010 14.28, Alexander Klenin ha scritto:

Show quoted text 14 lines
On Fri, Jan 15, 2010 at 19:59, Andrea Mauri wrote: > Il 15/01/2010 6.28, Alexander Klenin ha scritto: >>> why if I left click on a TChart the series on that TChart are repainted also >>> if I do not do anything else then click on the chart? >> >> You can set AllowZoom property to false to avoid this. >> > dear alexander, I thought it is related to zoom options. anyway it repaints > the chart also if I just click without zooming the chart (without dragging > the mouse with mouse clicked). so if I just click on the chart, the chart is > not zoomed but repainted as it is. Ok, try r23468 -- should be better now.

great Alexander, works!

Reply by email