I saw a wicked cool ProgressBar in some application not too long ago. I can't remember which program it was. But this morning I set out to duplicate what they made, and the attachment is what I came up with.
What I guess I'm asking is: what else should I add to this? What features should a ProgressBar have? What else should I make it do?
Thanks.
Edit: Updated .Zip file.
Last edited by The Hobo; Nov 4th, 2002 at 05:54 PM.
I want a progress bar with text in it show the percent, the text is beside the expanding bar and as it expands, the text moves along with it... Make sense?
Originally posted by Cagez I want a progress bar with text in it show the percent, the text is beside the expanding bar and as it expands, the text moves along with it... Make sense?
Anyway, that bar is way cool, I love it
I'm pretty sure I can work that up Thanks for the idea.
Nice Progress Bar. I agree with the BarColor (and of course, TextColor). How about Format String for the percentage display, to allow, say 49.5% (as would be possible in your sample app).
Love the bar, would like the color on the bar though. . .
Just for your attention though, i downloaded your second version, the one with the percentage, and i noticed, that if you set the position to On Bar, and then changed it to On Status, the percentage shown on the bar doesn't disappear, rather it stays at the percent that you changed on then gets written over. Attached is a screen shot of what i mean.
Love it otherwise, intend to use it in future. . . with your permission of course. Read a formal request for permission here.
We don't know what's wrong. . . So the best bet might be to remove something surgically.
Originally posted by Blinky Bill Love the bar, would like the color on the bar though. . .
Just for your attention though, i downloaded your second version, the one with the percentage, and i noticed, that if you set the position to On Bar, and then changed it to On Status, the percentage shown on the bar doesn't disappear, rather it stays at the percent that you changed on then gets written over. Attached is a screen shot of what i mean.
Love it otherwise, intend to use it in future. . . with your permission of course. Read a formal request for permission here.
Thanks for letting me know. I'll get that fixed for next time
I have to say, that is almost exactly what I have been looking for.
The only thing I would change is the percentage text. Can you make it so that you can have it stay in the center, like when you are installing a program and the percetnage is in the middle and it chages color as the bar crosses over..
Make sense??
10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".
Your progressbar is really awsome!!
I was thinking about a suggestion, but I think you'd need to really rewrite your bar and change a lot of things: make the progress gradient I've tried it once, but gave up, cause I didn' have enough patience........
Originally posted by RudyL I have to say, that is almost exactly what I have been looking for.
The only thing I would change is the percentage text. Can you make it so that you can have it stay in the center, like when you are installing a program and the percetnage is in the middle and it chages color as the bar crosses over..
You could also add a function that when it is below say 50% the text is on the background and when it is above 50% then it would be on the bar. The only reason I suggest this is that in teh begening or at the end the value starts to disapear...
Rudy
10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".
Originally posted by RudyL You could also add a function that when it is below say 50% the text is on the background and when it is above 50% then it would be on the bar. The only reason I suggest this is that in teh begening or at the end the value starts to disapear...
10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".
The Min property allows setting a range so we wouldn't have to translate whatever values we might have into your 0 (or whatever your control's default Min is) to Max.
For instance, if I wanted a temperature scale from freezing to boiling, 0 to 100 would work for Celsius, but not Fahrenheit, which is 32 to 212. I'd rather set the range of your bar from Min = 32 to Max = 212 than have to translate my 32 to your 0. Does this make sense?
Originally posted by JoeyCode The Min property allows setting a range so we wouldn't have to translate whatever values we might have into your 0 (or whatever your control's default Min is) to Max.
For instance, if I wanted a temperature scale from freezing to boiling, 0 to 100 would work for Celsius, but not Fahrenheit, which is 32 to 212. I'd rather set the range of your bar from Min = 32 to Max = 212 than have to translate my 32 to your 0. Does this make sense?
-JoeyCode
hmm...alright. I'll implement it sometime tonight or tomorrow.
Very nice ProgressBar. I've checked out the latest version and it looks great. If you are still looking for suggestions, a couple more:
1. For Percentage Style: OnBackground. I like the effect of the text being pushed off the background, but for particularly long operations, it might be good to have the text display all the way to the end. So, I'm thinking somewhere around 85%, the text could (optionally) switch to the Bar, right-justified. If implemented, you should probably allow for a text color change as well.
2. For Any Percentage Style: Optional, programable completion message (ie: "File Operation Complete") that could be displayed on the bar - probably centered.
If you don't mind i'd like to use this in some of my apps...
If it's ok, can you include a readme file with something in it that I can use to give you credit in my code?
Thanks...
10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".
After reading most the posts i couldnt help but to try it out, very very very nice indeed!
just wondering though, will you be releasing the source code? i would like to use it too but im trying to make my app use as little extra controls as possible and with the source, i can add it and have it compiled into the final exe
Originally posted by Geespot After reading most the posts i couldnt help but to try it out, very very very nice indeed!
just wondering though, will you be releasing the source code? i would like to use it too but im trying to make my app use as little extra controls as possible and with the source, i can add it and have it compiled into the final exe
thanks for the great idea though!
Maybe. But I'll probably write a tutorial on how to create it or something like it.
Blinky Bill and RudyL feel free to use it in whatever you want. I don't really care if you give credit, but if you do, my name's Kristopher
I suggest that you simply have an event OnComplete, so that John's request can easily be filled. And remember the .TextWidth(numchars) if you are going to fill in John's other request!
Cheers,
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
(Just a heads-up)
I bet u need a fusion powered shuttle to reach my place...
Posts
963
might be hard but how'bout animated gifs?
ASM,C,C++,BASIC,VB,JAVA,VBS,HTML,ASP,PHP,mySQL,VB.NET,MATLAB
Programming is fun, but only if you're not on a tight deadline
So I consider all those working engineers sad people
When I tested, the label (?) blinked a lot. Have you made sure you have something like:
VB Code:
PercentText = Int(Value / Max * 100) & " %"
If Label <> PercentText Then Label = PercentText
Oh yeah, I like more when the percent isn't right after the value, meaning, there's a space between. So can you add there as well?
I've made the colorchanging progressbar for my app, but I have VB4, it doesn't support making own OCX. I can make and post a sample of the progressbar of mine and you can change it to fit your usage...if someone's interested on it. I'd get it as an simple OCX, because I really do use it a lot and it's not so nice to always make it the hard way...