TAdvSmoothGauge scale values

If the maximum value is not an exact multiple of the division count, the scale labels are shown as long floating point numbers. Is there any way to control the formatting, e.g. to force them to round to the nearest integer?

Steve

Hi, 


With the OnGetValueText event you should be able to achieve this.

procedure TForm1.AdvSmoothGauge1GetValueText(Sender: TObject; value: Double;
  var str: string);
begin
  str := Format('%.0f', [value]);
end;

Kind Regards, 
Scheldeman Pieter

That works fine - many thanks.

Steve