delphi - how to change starting position of progressBar -


how can change starting position of progressbar setting part of progressbar empty example 0 -> 50, , start progress ( green color) 50. , there specific method that?

the position of progress bar determined position property. so, supposing limits of progress bar 0 , 100, , wish start @ middle, set position 50.

you tried change min, suspect don't understand min , max do. merely define scale position property. so, when position equal min, progress bar empty, when position equal max progress bar full. , values of position in between min , max specify partially complete progress.

mathematically, proportion complete of progress bar given formula:

(position-min) / (max-max) 

so, min , max allow define convenient scale specify proportion complete. instance, if progress naturally expressed percentage, might set min 0 , max 100. alternatively, if measuring progress of file transfer might set min 0 , max total number of bytes transferred.


in comments refine question stating:

i want set first middle of progress bar empty example 0 -> 50, , start progress ( green color) 50.

that not possible plain vanilla progress bar. progress bar fills empty full.

the user interface looking not possible standard control. need paint progress bar yourself, not terribly hard do. if want native control can use theme api paint it.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -