Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Many q's
#1
1: How do you get the prossesing bar in basic?? the bar you gewt when you install a software or any thing.
and how do you make the bar run for "X" Seconds ?

2: How do i make a box across text in basic other than something like:
PRINT "________________"
PRINT "| [Text] |"
PRINT"_________________"
Reply
#2
If you're in text mode, you have the entire dos character set at your disposal, which contains numerous box-making characters. Look in the QB help under 'ASCII character set' (qboho version don't display properly), and you'll find all the characters you need.

as for a display bar, if you're in text mode:

say you're copying 30 files, or loading 30 things or something. you can have two variables, filescopied and totalfiles, and do this -

Code:
locate bary, barx
for x = 0 to barlength * (filescopied / totalfiles)
  print chr$(219); ' I think that's the character for a solid bar
next x

but there's hundreds of thousands of millions of billions of ways to make a progress bar. that one just takes very little code Smile
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Reply
#3
what if you were to make a dummy progress bar
like, one which does no work..just keeps the user waiting ?
Reply
#4
in the qb help bring up the ASCII character codes. go to the second page and then just copy the ones you like and just do

print "?"
sleep 4
print "??"
? = your image thin from the ascii character codes
url=http://www.spreadfirefox.com/?q=affiliates&id=0&t=79][Image: safer.gif][/url]
Reply
#5
Quote:what if you were to make a dummy progress bar
like, one which does no work..just keeps the user waiting ?

The user would get angry. Very angry...
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#6
QBNZ had a challenge compo to create a loading bar, and one of them was text mode. You can get the download of most of the entries from http://qbnz.com/pages/challenges/oldchallenges/0103.zip
Reply
#7
Quote:print "?"
sleep 4
print "??"
din quite get this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)