Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-11 Thread Andrew Brunner
On 12/05/2012 01:48 PM, Andrew Brunner 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. Ok, I have a patch for the LCL but before we get further I think we need more discussion

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-11 Thread Martin
On 11/12/2012 17:55, Andrew Brunner wrote: On 12/05/2012 01:48 PM, Andrew Brunner 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. Ok, I have a patch for the LCL but before we

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-11 Thread Martin
On 11/12/2012 17:55, Andrew Brunner wrote: So the question becomes... Is the use of int64 actually ubiquitous on a 32bit system? If so, it may stand to reason that the values of Progress bar be expanded to Int64 even on 32bit systems. http://bugs.freepascal.org/view.php?id=23471 I am

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-08 Thread Reinier Olislagers
On 7-12-2012 21:12, Andrew Brunner wrote: On Dec 6, 2012, at 8:57 AM, Donald Ziesig don...@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

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-08 Thread Bart
On 12/7/12, Andrew Brunner atbrun...@aurawin.com wrote: But typically a progress bar is used in conjunction with streams. Therefore it should handle the same size as objects like that. Why? I typically set Max to 100 and calc percentage, et voila... Bart --

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-07 Thread Andrew Brunner
On Dec 6, 2012, at 8:57 AM, Donald Ziesig don...@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

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-06 Thread Graeme Geldenhuys
On 2012-12-06 04:42, Hans-Peter Diettrich wrote: A control on screen is painted pixel-by-pixel, you cannot have fractions of pixels on the screen. Actually you can, but it is more of an optical illusion. :) eg: floating point calculation for anti-aliased drawing. With AggPas I can draw a 0.4

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-06 Thread Juha Manninen
On Thu, Dec 6, 2012 at 3:34 AM, Andrew Brunner atbrun...@aurawin.com wrote: In the time it took to convince you there is a problem the solution could have been adopted. Please this isn't about pixels, it's about efficient scaling onto 64bit systems. Hence a flaw. I think the streaming

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-06 Thread Felipe Monteiro de Carvalho
On Wed, Dec 5, 2012 at 10:56 PM, Andrew Brunner atbrun...@aurawin.com wrote: I assert that use of anything but ptrint in the factory with respect to tprogressbar is a flaw. And it's a quick fix. It is not a flaw, you need to scale your number to fit the provided size. -- Felipe Monteiro de

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-06 Thread Andrew Brunner
On 12/05/2012 10:28 PM, Hans-Peter Diettrich wrote: How wide would that row be, at say 120 dpi? BG This is not relevant to the issue at hand. As I stated before, the progressbar component of the host operating system scales the Min/Max/Position values and converts it to the client area

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-06 Thread Reinier Olislagers
On 6-12-2012 14:58, Andrew Brunner wrote: On 12/05/2012 10:28 PM, Hans-Peter Diettrich wrote: How wide would that row be, at say 120 dpi? BG This is not relevant to the issue at hand. As I stated before, the progressbar component of the host operating system scales the Min/Max/Position

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-06 Thread Donald Ziesig
On 12/06/2012 09:06 AM, Reinier Olislagers wrote: On 6-12-2012 14:58, Andrew Brunner wrote: On 12/05/2012 10:28 PM, Hans-Peter Diettrich wrote: How wide would that row be, at say 120 dpi? BG This is not relevant to the issue at hand. As I stated before, the progressbar component of the

[Lazarus] Tprogressbar and positional info as ptrint.

2012-12-05 Thread Andrew Brunner
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. Thanks. Andrew Brunner, Aurawin LLC 512.574.6298 http://aurawin.com/ Aurawin is great new way to store and share your pictures,

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-05 Thread Juha Manninen
On Wed, Dec 5, 2012 at 9:48 PM, Andrew Brunner atbrun...@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

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-05 Thread Andrew Brunner
. On Dec 5, 2012, at 2:52 PM, Juha Manninen juha.mannine...@gmail.com wrote: On Wed, Dec 5, 2012 at 9:48 PM, Andrew Brunner atbrun...@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

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-05 Thread Andrew Brunner
On Dec 5, 2012, at 4:01 PM, Vincent Snijders vincent.snijd...@gmail.com wrote: 2012/12/5 Andrew Brunner atbrun...@aurawin.com: . On Dec 5, 2012, at 2:52 PM, Juha Manninen juha.mannine...@gmail.com wrote: On Wed, Dec 5, 2012 at 9:48 PM, Andrew Brunner atbrun...@aurawin.com wrote: I'm

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-05 Thread Juha Manninen
On Thu, Dec 6, 2012 at 12:19 AM, Andrew Brunner atbrun...@aurawin.com wrote: The design time vales are all zeros anyways. ProgressBar.Position can be set also at design time. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-05 Thread Andrew Brunner
On Dec 5, 2012, at 4:40 PM, Juha Manninen juha.mannine...@gmail.com wrote: On Thu, Dec 6, 2012 at 12:19 AM, Andrew Brunner atbrun...@aurawin.com wrote: The design time vales are all zeros anyways. ProgressBar.Position can be set also at design time. Point 1. The IDE input could

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-05 Thread Hans-Peter Diettrich
Juha Manninen schrieb: On Wed, Dec 5, 2012 at 9:48 PM, Andrew Brunner atbrun...@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

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-05 Thread waldo kitty
On 12/5/2012 17:43, Hans-Peter Diettrich wrote: Juha Manninen schrieb: On Wed, Dec 5, 2012 at 9:48 PM, Andrew Brunner atbrun...@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

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-05 Thread Juha Manninen
On Thu, Dec 6, 2012 at 2:46 AM, waldo kitty wkitt...@windstream.net wrote: multi-monitors spread horizontally?? C'mon... Please take a calculator and check how much is 2^31. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-05 Thread Andrew Brunner
On Dec 5, 2012, at 4:43 PM, Hans-Peter Diettrich drdiettri...@aol.com wrote: Juha Manninen schrieb: On Wed, Dec 5, 2012 at 9:48 PM, Andrew Brunner atbrun...@aurawin.com wrote: I'm getting overflow exceptions on values greater than integer. Can someone revise all values from integer to

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-05 Thread Hans-Peter Diettrich
Andrew Brunner schrieb: 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] You are serious ?!? There is no

Re: [Lazarus] Tprogressbar and positional info as ptrint.

2012-12-05 Thread Hans-Peter Diettrich
waldo kitty schrieb: 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??