Recent

Author Topic: [solved] Scaling the TA3nalogGauge in Package Industrial Stuff  (Read 201 times)

Linkat

  • New Member
  • *
  • Posts: 15
Hi all,
from the Industrial Stuff package I use the TA3nalogGauge.

You can scale the indicator by
Code: Pascal  [Select]
  1. A3nalogGauge.Scale := 100;

I didn't find a possibility to change the starting point (it's always 0; s. Fig.).

It would be nice to have a property like  ScaleMax for the highest and ScaleMin for the lowest value.

Has somebody a work around for this problem?


 
« Last Edit: July 17, 2019, 11:07:54 pm by Linkat »

wp

  • Hero Member
  • *****
  • Posts: 6309
Re: Scaling the TA3nalogGauge in Package Industrial Stuff
« Reply #1 on: July 17, 2019, 10:28:31 pm »
Try r7047.

I added new properties ScaleMin and ScaleMax. For naming consistency, I marked Scale, the old scale maximum, as deprecated and I will remove it some time (if I don't forget...)
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

Linkat

  • New Member
  • *
  • Posts: 15
Re: Scaling the TA3nalogGauge in Package Industrial Stuff
« Reply #2 on: July 17, 2019, 11:06:39 pm »
@wp,  thanks for the quick help.