Sign in to follow this  
Followers 0
GaryFrost

Progress Bar with % in bar

33 posts in this topic

#1 ·  Posted (edited)

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.

 

Share this post


Link to post
Share on other sites



Very nice :)


FootbaG

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

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.

 

Share this post


Link to post
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 !

Share this post


Link to post
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.

 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

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.

 

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

Update, added params

Edit: see 1st post

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.

 

Share this post


Link to post
Share on other sites

#16 ·  Posted (edited)

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.

 

Share this post


Link to post
Share on other sites

GUICtrlSetPos() stuff in Progress.au3

Just keeping the number as close to center as possible.

Gary

<{POST_SNAPBACK}>

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

:)

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

lately i'm not sure of my autoit stuff

I only get the normal "green" colors... otherwise it works

What gives?????

8(


NEWHeader1.png

Share this post


Link to post
Share on other sites

Try the example in the help file, should be two different colored blue progress bars.

See if that works correctly for you.


SciTE for AutoItDirections for Submitting Standard UDFs

 

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

 

Share this post


Link to post
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
Sign in to follow this  
Followers 0