Page 1 of 2 12 LastLast
Results 1 to 40 of 67

Thread: 'Progress' is my middle name

  1. #1

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    'Progress' is my middle name

    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.
    Attached Files Attached Files
    Last edited by The Hobo; Nov 4th, 2002 at 05:54 PM.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  2. #2
    Fanatic Member scr0p's Avatar
    Join Date
    Oct 2002
    Location
    VA
    Posts
    720
    I remember this, from a FTP client, I think Planet Source Code. Add how much time is left.
    asdf

  3. #3
    Lively Member Cagez's Avatar
    Join Date
    Oct 2002
    Posts
    121
    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

  4. #4

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by scr0p
    I remember this, from a FTP client, I think Planet Source Code. Add how much time is left.
    How much time is left would be dependant on the program and how often it updates the value of the progressbar.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  5. #5

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    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.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  6. #6

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    I just updated the zip file with a new version that shows percentage. Any more ideas?
    Last edited by The Hobo; Nov 4th, 2002 at 05:55 PM.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  7. #7
    Fanatic Member Vanguard-MnC's Avatar
    Join Date
    Apr 2002
    Location
    Inactive for like ever.
    Posts
    628
    Make it so you can add 2 bitmaps to it. One for the background and one for the bar.

  8. #8

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by Vanguard-MnC
    Make it so you can add 2 bitmaps to it. One for the background and one for the bar.
    There's many already written controls out there that do that. Plus I'd have to change the whole way I coded it so that it uses picture boxes
    My evil laugh has a squeak in it.

    kristopherwilson.com

  9. #9
    Hyperactive Member
    Join Date
    Jul 2002
    Posts
    296
    Your ActiveX is awesome.
    Kevin Carpenter
    Currently Working in the CAOS (CA Operating System) Group

  10. #10
    Fanatic Member Vanguard-MnC's Avatar
    Join Date
    Apr 2002
    Location
    Inactive for like ever.
    Posts
    628
    how about changing the bar color?

  11. #11
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192

    Arrow Color

    Is there a way we can change the color of the progress bar as we can change the one of the background?
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

  12. #12
    Hyperactive Member Blinky Bill's Avatar
    Join Date
    Mar 2002
    Location
    Happily munching on the greenery in your garden
    Posts
    349
    Ditto the last two posts
    We don't know what's wrong. . . So the best bet might be to remove something surgically.

  13. #13
    Frenzied Member John McKernan's Avatar
    Join Date
    Jan 2002
    Location
    SE PA
    Posts
    1,295
    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).

  14. #14

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Good suggestions. I'll give them a go tomorrow.

    Thanks.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  15. #15
    Hyperactive Member Blinky Bill's Avatar
    Join Date
    Mar 2002
    Location
    Happily munching on the greenery in your garden
    Posts
    349
    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.
    Attached Images Attached Images  
    We don't know what's wrong. . . So the best bet might be to remove something surgically.

  16. #16

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    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
    My evil laugh has a squeak in it.

    kristopherwilson.com

  17. #17

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    I just uploaded a newer version with the above features implimented.
    Last edited by The Hobo; Nov 4th, 2002 at 05:59 PM.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  18. #18
    Hyperactive Member
    Join Date
    Aug 2002
    Posts
    352
    how do you make your own controls?

  19. #19

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by MXAlPhA
    how do you make your own controls?
    When starting Visual Basic, instead of selecting Standard Exe, select ActiveX Control.

    Or, better yet, select Standard Exe, then go to Project > Add User Control then add a new User Control.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  20. #20
    Frenzied Member RudyL's Avatar
    Join Date
    Mar 2001
    Location
    Chicago
    Posts
    1,519
    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".

  21. #21
    Banned Michael_Kamen's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,180

    Thumbs up Very good!

    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........

  22. #22

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    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..

    Make sense??
    Yeah, I know what you mean.

    ...I just wish I knew a way to do that.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  23. #23
    Frenzied Member RudyL's Avatar
    Join Date
    Mar 2001
    Location
    Chicago
    Posts
    1,519
    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".

  24. #24

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    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...

    Rudy
    that's how I intended it to work.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  25. #25
    Frenzied Member RudyL's Avatar
    Join Date
    Mar 2001
    Location
    Chicago
    Posts
    1,519
    I like it - alot!

    Really cool
    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".

  26. #26
    Fanatic Member spud's Avatar
    Join Date
    Aug 2000
    Location
    Munster (Germany)
    Posts
    542
    the dogs bolloks!
    Haven't got anything to say that is the least bit interesting.
    www.tartan-underground.com

  27. #27
    Fanatic Member Vanguard-MnC's Avatar
    Join Date
    Apr 2002
    Location
    Inactive for like ever.
    Posts
    628
    It has a Max property, so why not a Min property?

    Your progressbar is awesome btw.

  28. #28

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by Vanguard-MnC
    It has a Max property, so why not a Min property?
    I never understood the purpose of the Min property?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  29. #29
    Lively Member
    Join Date
    Oct 1999
    Posts
    90

    Arrow Min property

    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

  30. #30

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    Re: Min property

    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.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  31. #31
    Frenzied Member John McKernan's Avatar
    Join Date
    Jan 2002
    Location
    SE PA
    Posts
    1,295
    The "Progress" Hobo:

    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.

  32. #32
    Frenzied Member RudyL's Avatar
    Join Date
    Mar 2001
    Location
    Chicago
    Posts
    1,519
    Hobo,

    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".

  33. #33
    Hyperactive Member Blinky Bill's Avatar
    Join Date
    Mar 2002
    Location
    Happily munching on the greenery in your garden
    Posts
    349
    Yeah, I wouldn't mind using it in my apps in future. Can you post some details so that you can be credited with its creation.
    We don't know what's wrong. . . So the best bet might be to remove something surgically.

  34. #34
    Fanatic Member Geespot's Avatar
    Join Date
    Oct 2001
    Location
    Birmingham, UK
    Posts
    577
    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!

  35. #35

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    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
    My evil laugh has a squeak in it.

    kristopherwilson.com

  36. #36
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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)

  37. #37

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    I have the OnComplete Event and "Finished Message" done. Any other ideas?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  38. #38
    Fanatic Member jian2587's Avatar
    Join Date
    Aug 2000
    Location
    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

    VB FTP class
    3 page PHP crash course
    Crash Course on DX9 Managed with VB.NET covering basics till terrain creation

  39. #39

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Not sure I understand?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  40. #40
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654
    When I tested, the label (?) blinked a lot. Have you made sure you have something like:

    VB Code:
    1. PercentText = Int(Value / Max * 100) & " %"
    2. 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...

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width