Jump to content

Progress Bar with % in bar


GaryFrost
 Share

Recommended Posts

need beta, release version won't work with transparent label.

Edit: Now supports multiple progress bars

Edit: Added params

Edit: Added Inverted colors

Edit: Added _Progress_Delete

Edit: fixed bug in delete

Edit: Should work correctly with XP Themes now

please post comments/suggestions/improvments/bugs

Gary

Progress_Test.au3

Progress.au3

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Most likely... I seen source of Delphi "gauge" control, but it uses canvas property for construct image, so this is not applicable to Autoit. Not found any example of such things in the C/VB...

<{POST_SNAPBACK}>

Uploaded new Progress.au3 file see 1st post

Edit: feel free to make improvements, i know it needs some, just haven't taken the time to do them, like pass more params, colors, styles, extended styles...etc...

@Zedna, I meant to move the percentage, had the progress bar itself moving, no matter all that's fixed with the inverse color of percentage when the progress reaches the text.

Gary

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Very nice, Gary !

I`ve actually thought about making something like this, because of the

extremely bad one in Windows XP (w/ XP-themes), which I seriously hate !

<{POST_SNAPBACK}>

You'll find there's a problem with the progress bar in autoit also if you xp themes in use, the smooth doesn't work for one. :)

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

I ran the code with beta 61 and it worked perfectly the first time through. If I run it a second time, all of the percentages come out with a trailing zero. Must be left over from the 100% from the first run as that is the only 3-digit output...

...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format
Link to comment
Share on other sites

I ran the code with beta 61 and it worked perfectly the first time through. If I run it a second time, all of the percentages come out with a trailing zero. Must be left over from the 100% from the first run as that is the only 3-digit output...

<{POST_SNAPBACK}>

Thanks, fixed, updated file in 1st post.

Gary

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Now supports multiple progress bars

Edit: please post comments/suggestions/improvments/bugs

Edit: see 1st post for files

Gary

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

GUICtrlSetPos() stuff in Progress.au3

This can be done very simply by:

1) setting position and width of label same as progress have

2) setting style of label to $SS_CENTER

:)

<{POST_SNAPBACK}>

As I said in previous post this is a mute point, being there is now 4 labels instead of one with the new script.

Gary

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...