TProgressbar must account for 64bit operating systems
Original Reporter info from Mantis: aurawin
-
Reporter name: Andrew Brunner
Original Reporter info from Mantis: aurawin
- Reporter name: Andrew Brunner
Description:
TProgressbar presently does not allow for 64bit integers as a means for tracking progress on anything larger than a 32bit signed integer.
1.) On 64bit systems it is a flaw to think that input values are always 32bit.
2.) Progress bars are automatically scaled by the host operating system.
3.) PBar.zip - Attached program demonstrates the problem when executed on a 64bit operating system.
Additional information:
The patch attached uses ptrInt for Position/Min/Max.
That means that on 64bit systems they would be Int64; and on 32bit systems they would be LongInt.
1.) If the progress bar values are scaled by all supported widgetsets the best use would be Int64 regardless of operating system.
Please, don't adopt this patch. It may change and I'll try to get support for testing on the other widget sets.
Mantis conversion info:
- Mantis ID: 23471
- Monitored by: » aurawin (Andrew Brunner), » Vincent (Vincent Snijders)