[Lazarus] Tprogressbar and positional info as ptrint.

Andrew Brunner atbrunner at aurawin.com
Fri Dec 7 21:12:08 CET 2012


On Dec 6, 2012, at 8:57 AM, Donald Ziesig <donald at ziesig.org> wrote:

> I just got into this thread,  but I have been using Delphi since Version 1 (and Turbo Pascal back to Version 1 before that). Imo the Min, Max and Pos parameters should all be set to the largest integer data type of the underlying OS.  If this is done, the scaling issue should be taken care of automatically.  There may be a latent flaw due to streaming of these parameters, however.
> 
> Don Ziesig

I think the streaming issue is separate.  I honestly, streaming is a non issue.  A developer would have to key in a 2g+ lnteger value.  And the ide editor would have to store said value.  Just make leave that be for now.  I just don't see that a a reality for progressbar. 

But typically a progress bar is used in conjunction with streams.  Therefore it should handle the same size as objects like that.  On 64bit oses position/size = 64bits wide.  It may seem large but it is not when it represents a video stream or archive file. On 32bit systems it is 32bits wide. 

Thanks. 






More information about the Lazarus mailing list