Board index » cppbuilder » TChart: BeginUpdate() or similar?
Thomas Blankschein
![]() CBuilder Developer |
Thomas Blankschein
![]() CBuilder Developer |
TChart: BeginUpdate() or similar?2004-01-03 06:38:43 AM cppbuilder110 Hi, I use a TChart with a TLineSeries. During adding several thousand values to the TLineSeries in a loop, I want the TChart to wait before drawing itself to save time. My TAdvStringGrid on the same form has BeginUpdate() and EndUpdate() functions. What do I have to use with the TChart? Thanks, Thomas |
JM
![]() CBuilder Developer |
2004-01-03 07:56:05 AM
Re:TChart: BeginUpdate() or similar?
There is a BufferedDisplay property that by default is supposed to be set to true.
From the help file: BufferedDisplay This public property controls how Charts are internally drawn. When True, the default, Charts are drawn into an internal hidden bitmap. When drawing is finished, this internal bitmap is transferred to the screen in one single operation. The result is non-flickering animation. It sounds like it should already be doing what you are talking about. You may also want to look at TFastLineSeries some of the properties are different and there are no methods or events. On 1/2/2004 4:38 PM Thomas Blankschein spoke thusly QuoteHi, |
JD
![]() CBuilder Developer |
2004-01-03 08:48:48 AM
Re:TChart: BeginUpdate() or similar?
"Thomas Blankschein" < XXXX@XXXXX.COM >wrote:
Quote[...] What do I have to use with the TChart? .... SendMessage( Chart1->Handle, WM_SETREDRAW, TRUE, 0 ); ~ JD {smallsort} |
JD
![]() CBuilder Developer |
2004-01-03 10:52:12 PM
Re:TChart: BeginUpdate() or similar?
"Thomas Blankschein" < XXXX@XXXXX.COM >wrote:
Quote
.... LockWindowUpdate( 0 ); ~ JD |
Thomas Blankschein
![]() CBuilder Developer |
2004-01-03 11:08:15 PM
Re:TChart: BeginUpdate() or similar?
Hi JM,
thanks for your hints. QuoteBufferedDisplay QuoteYou may also want to look at |
Thomas Blankschein
![]() CBuilder Developer |
2004-01-03 11:10:45 PM
Re:TChart: BeginUpdate() or similar?
Hi JD,
QuoteYou can try: of TFastLineSeries increased the speed. I don't need all those fancy things from TLineSeries. Thomas |
Palle Meinert
![]() CBuilder Developer |
2004-01-04 07:33:29 AM
Re:TChart: BeginUpdate() or similar?
In addition to using TFastLineSeries also set the DrawAllPoints property to
false. This will increase speed dramatically. You should perhabs also have a look a the AutoRepaint property. I have set i to false in one of my programs which add a huge amount of points, but can't remeber if that was speed related thing. Palle "Thomas Blankschein" < XXXX@XXXXX.COM >skrev i en meddelelse QuoteHi JM, |
Thomas Blankschein
![]() CBuilder Developer |
2004-01-04 08:11:00 PM
Re:TChart: BeginUpdate() or similar?
Hi,
QuoteIn addition to using TFastLineSeries also set the DrawAllPoints property Thanks, Thomas |
Palle Meinert
![]() CBuilder Developer |
2004-01-04 11:49:46 PM
Re:TChart: BeginUpdate() or similar?
It is a property on the TFastLineSeries. At least in TeeChart 6
professional, which I use. It might not be available in the free TeeChart version supplied by BCB. I am using BCB6, but it should not make any difference in this regard. Palle "Thomas Blankschein" < XXXX@XXXXX.COM >skrev i en meddelelse QuoteHi, |