[Lazarus] TAChart possible Bug: Series with UserDefinedChart Source not are redrawing properly
Miguel A. Risco
mriscoc at gmail.com
Tue Apr 19 09:15:35 CEST 2011
Calling ds.Reset make the fix. I also think that Reset could be called by
EndUpdate.
Thank you
Miguel
-----Mensaje original-----
De: Alexander Klenin [mailto:klenin at gmail.com]
Enviado el: martes, 19 de abril de 2011 02:04 a.m.
Para: Lazarus mailing list
Asunto: Re: [Lazarus] TAChart possible Bug: Series with UserDefinedChart
Source not are redrawing properly
On Tue, Apr 19, 2011 at 17:46, Miguel A. Risco <mriscoc at gmail.com> wrote:
> Hi Alexander, your Project is ok, but if your put a tbutton and fill the
array on the Onclick event and not in the constructor of the form then the
series is not drawing after the zoom on the second point. If I comment the
line " if not RectIntersectsRect(ext, ParentChart.CurrentExtent) then exit;"
in the TASeries.pas unit then the series is drawing properly.
Ah, I see now.
You need to call ds.Reset before ds.EndUpdate.
Maybe Reset should be called automatically by EndUpdate...
--
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