Page 1 of 1

Where is RecalcMinMax

Posted: Tue Mar 21, 2006 5:00 pm
by 9345036
For speed reasons I add points to a fastline once and update YValues repeatedly. When I query YValues->MinValue or YValues->MaxValue, no actual values are delivered. The manual says: Call YValues->RecalcMinMax this will recalculate the values. However, BCB5 compiler says: RecalcMinMax is not a member of TChartValueList.

How can I force the update of Min/Max Values without adding points?

Posted: Thu Mar 23, 2006 7:52 am
by 9345036
Now I cycle manually through the values, but this is not what the manual promises. Min, Max and TotalAbs members are currently useless for me because they are not calculated as expected.

It's fine, that for speed reasons they are calculated, only when necessary. But a method to force recalculation as promised should exist.

Posted: Tue Mar 28, 2006 12:10 pm
by 9343949
Did anybody find an equivalent to the RecalcMinMax function?

Posted: Wed Mar 29, 2006 6:05 am
by 9345036
9343949 wrote:Did anybody find an equivalent to the RecalcMinMax function?
Yes. You have to cycle manually through the points and calculate Min/Max by yourself. That's what I do. :?