[Lazarus] Tprogressbar and positional info as ptrint.

waldo kitty wkitty42 at windstream.net
Thu Dec 6 01:46:59 CET 2012


On 12/5/2012 17:43, Hans-Peter Diettrich wrote:
> Juha Manninen schrieb:
>> On Wed, Dec 5, 2012 at 9:48 PM, Andrew Brunner <atbrunner at aurawin.com> wrote:
>>> I'm getting overflow exceptions on values greater than integer. Can someone
>>> revise all values from integer to ptrint so on 64 bit systems it will be valid.
>>
>> You can scale the value in your code before using it for ProgressBar's Position.
>> Integer has 2^31 positive values which should be enough for all the
>> positions shown in a graphical component.
>
> Does anybody have an screen or printer, with so many pixels? ;-)
> [That's why Integer is way enough for a progress bar]

multi-monitors spread horizontally??




More information about the Lazarus mailing list