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
Mailing lists / lazarus / 2010-01
tchart repaint on mouseclick
5 messages · 2 people · –
- AAndrea Mauri 3
- AAlexander Klenin 2
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Andrea Mauri wrotewhy 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.
Il 15/01/2010 6.28, Alexander Klenin ha scritto:
Show quoted text 7 lines
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
Andrea Mauri wrote 10 lines
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).
Il 15/01/2010 14.28, Alexander Klenin ha scritto:
Show quoted text 14 lines
great Alexander, works!
