Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 simple Progress bar
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
grispyg




PostPosted: Fri Jan 09, 2004 7:40 pm   Post subject: simple Progress bar

When I just started turing ma teacher showed me this program and there was this progress bar in it. I had no clue how to do it.. so i devoted a lot of my time to figuring it out and i finally did..Very Happy Laughing
code:

%Grispy
%December 9 03
%Simple Progress Bar
colorback (black)
color (white)
cls

for i : 0 .. 300
    drawbox (170 + i, 40, 170, 20, white)%Play around wit da numbers
    delay (20)
    locate (22, 40)
    put i div 3, "%"
end for
Sponsor
Sponsor
Sponsor
sponsor
DanShadow




PostPosted: Fri Jan 09, 2004 7:54 pm   Post subject: (No subject)

heh, I used to use that all the time..except I made it slightly more colorful:
code:

Draw.FillBox (0, 0, maxx, maxy, 255)
colorback (255)
color (10)
var zz : int := 1
for i : 1 .. 100
    delay (50)
    Draw.FillBox (100, 15, 100 + zz, 25, 54)
    Draw.Box (100, 15, 200, 25, 1)
    zz := zz + 1
    locate (23, 13)
    put "Loading... ", zz, "%" ..
end for
locate (23, 13)
put "Done Loading!   " ..
Tony




PostPosted: Fri Jan 09, 2004 10:23 pm   Post subject: (No subject)

Crying or Very sad

I cannot stress enough how lame and newbish it is to have a FAKE loading bar just for the heck of having it Rolling Eyes It is just wrong on so many levels....
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
santabruzer




PostPosted: Fri Jan 09, 2004 10:26 pm   Post subject: (No subject)

hey.. if people enjoy it.. you can't stop them Razz.... besides.. it makes your program have more "source" code.... by the loading time
Tony




PostPosted: Fri Jan 09, 2004 10:28 pm   Post subject: (No subject)

haha Laughing more source code? If you want extra lines in the file, why not just copy/paste a bunch of random functions you not gonna use? Laughing
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
shorthair




PostPosted: Fri Jan 09, 2004 10:51 pm   Post subject: (No subject)

better yet write your programs in machine code , im talkin like a 100 line program = 10000 lines in machine , could you imagine what it would be liek to code in taht language way back when
AsianSensation




PostPosted: Fri Jan 09, 2004 10:52 pm   Post subject: (No subject)

tony wrote:
haha Laughing more source code? If you want extra lines in the file, why not just copy/paste a bunch of random functions you not gonna use? Laughing


actually, just declare 200 lines worth of pictures, and you are all set. Wink It will be even better if you declare individual letter of a certain font saved as pics...52 pics per font, oh wait, assuming we don't know how to scale pics either, we can always make a bunch that are bigger or smaller in size... Laughing
McKenzie




PostPosted: Fri Jan 09, 2004 11:07 pm   Post subject: (No subject)

<n00b Translation>
progress bars are used to tell the user that "no, your computer is not frozen I'm just loading a whole bunch of pictures"
Moral of the Day:
~~~~~~~~~~~
1. If your program looks like it has crashed the computer when you run it, hey use a progress bar.

2. If your program runs at about the same time you hit F1, don't use a progress bar.
shorthair




PostPosted: Tue Jan 13, 2004 7:06 pm   Post subject: (No subject)

Wow Mr M. your rackin in the bits ther , you better save those for a rainy day. and about the progress bad i belive in what Mr.M says but i have no love for them , i made a real one buit mostr of the time unless your doing somthign else it just goes from 0 to 100 really fast , only a trace shows it , i also have one while my telnet verifies the stability of the connection. it even goes back to zero sometime for some reason i think its if well im sure its when athe loop is runa second time if the first fails.
jedi-bob




PostPosted: Mon Jan 19, 2004 3:26 pm   Post subject: (No subject)

Dan Shadow, can I use your progress bar in my program?
Tony




PostPosted: Mon Jan 19, 2004 5:26 pm   Post subject: (No subject)

well the idea is that you can use anything from the [Source Code] as long as you give appropriate credit someplace in your program.

btw - you can use my percent bar Wink found here
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 11 Posts ]
Jump to:   


Style:  
Search: