Good time of the day, forum users.

There was such a question: I work with the “Gauges” component, and I need to change the maximum threshold of the “MaxValue” parameter. Its standard value is = 2.147.483.647, and I need over 4 billion.
It is necessary to change the properties of the component, is there a simpler way?

Thanks in advance.

    1 answer 1

    Let's look at it from the right angle. Suppose there is a component on 4 billion values ​​in the form of a circle. And the size of the screen in 4k (it is unlikely that you will buy so much more). This is 4096 × 3112 pixels. Since we have a circle, it is 3112 × 3112. That is, the radius is 1556 pixels, the circumference is about 9776 pixels. If the gauge of such a diameter changes by one division, it will be 9776/4000000000 = 0.000002444 - that is, no one will see. Even if the value changes by a thousand units, it will still be less than a pixel. The component itself does not even need to be redrawn.

    Many monitors are now working in FullHD mode, and this is a circle with a diameter of 1080 pixels. Circumference will be 3393. Draw conclusions.

    But what to do in this situation? Yes, everything is very simple. Expose there value in 1000000 times smaller, and when you need to assign, simply divide by this factor. Somewhere like this: gauge1.Progress := round(myvalue / 1000000); .

    • Yes, this is probably the best option. I have a rectangular gauge, the file processing process (for example, 4GB in size) would be visible to the naked eye, even though it would be very slow. :-) - Konstantin78