Recent

Author Topic: Progress bar problem  (Read 19311 times)

wjackson153

  • Sr. Member
  • ****
  • Posts: 267
Re: Progress bar problem
« Reply #15 on: January 31, 2013, 03:16:09 am »
A good example is this

Some use  the following to increment a integer

var
iNum

Inc(iNum);


I use 

iNum := iNum +1;

they both do the same,  however its a personal preference

just as stepit  is to position

If that makes sence ?

Lazarus 1.1 r39490 CT FPC 2.7.1 i386-linux KDE
Linux Mint 14 KDE 4

Ruptor

  • Full Member
  • ***
  • Posts: 191
Re: Progress bar problem
« Reply #16 on: January 31, 2013, 03:18:55 pm »
My problem is that “stepit” didn't do the same thing as your alternative. The problem was that I misunderstood the “stepby” parameter thinking it was the step size but “step” in the properties is the value. The default seems to be 10 and that is why my progress bar finished ten times quicker than the file size. See the modified line added to my original posted procedure that fixes the problem so it works the same as your alternative.

 

TinyPortal © 2005-2018