TLinearGauge.Maximum

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
dummzeuch
Newbie
Newbie
Posts: 4
Joined: Fri Jan 17, 2014 12:00 am

TLinearGauge.Maximum

Post by dummzeuch » Mon Jan 20, 2014 3:15 pm

Hi,

TLinearGauge has a private internal field IMaxValue.
This field gets set only in two places:
The constructor initializes IMaxValue with 100 and also sets the Value property to Random(100).
The SetValue method sets IMaxValue to the new value if that value is greater than the current IMaxValue value.

I don't really understand this, since the Value of IMaxValue is used to display the highest value the gauge ever had, so I would have expected that:
* IMaxValue is initialized to 0
* Value is initialized to 0
* There is a method for resetting IMaxValue to 0

As it is that component is pretty much useless.

Am I missing something?
(This is TeeChart 2003 I am talking about, but I has been like that for ages.)

twm

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TLinearGauge.Maximum

Post by Yeray » Wed Jan 22, 2014 3:12 pm

Hello,

I've added it to the bug tracker system.
http://bugs.teechart.net/show_bug.cgi?id=545

You can add your mail to the CC list to receive a mail when an update arrives.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply