2: You need to know how big the file is in total and how much of it you have so far. Im not sure how you do this as i have never worked with ftp programs (well, never coded one), but if you can find the two values then heres the calculation you need to make a progress bar:
P = (CS * 100) / TS
CS = Current Size (ie, how much you have downloaded so far) and TS = Total Size (how big the complete file is)
That calculates a percentage basically. When you first start and you have none of the file yet then P will = 0, when you have it all then P will = 100. You can use that to draw a line, like
Line 0, 10, P, 10
That will draw a line from the very left of the screen, 10 pixels down from the top upto 100 (when p is complete) pixels along. A pratical example of how to use this for you:
box screen width() / 2 - 51, screen height() - 70, screen width() / 2 + 51, screen height() - 52, rgb(0,0,0), rgb(0,0,0), rgb(0,0,0), rgb(0,0,0)
box screen width() / 2 - 50, screen height() - 68, screen width() / 2 + 50, screen height() - 54, rgb(255,255,255), rgb(255,255,255), rgb(255,255,255), rgb(255,255,255)
box screen width() / 2 - 50, screen height() - 68, (screen width() / 2 - 50) + P, screen height() - 54, rgb(130,130,255), rgb(130,130,255), rgb(130,130,255), rgb(130,130,255)
Set Text Size 24
Set Text To Bold
Center Text Screen Width() / 2, Screen Height() / 2 - 25, "Downloading..."
Set Text Size 18
Set Text To Normal
Center Text Screen Width() / 2, Screen Height() - 70, Str$(P) + "%"
Thats basically stolen streight out of my load map function for my game, but i changed the text to say Downloading instead of loading
It will make a progress bar (white with a black outline) which slowly fills blue as your file downloads and it also displays the percentage complete inside the bar. It will also write "Downloading.." in the center of the screen (the progress bar appears just above the bottom of the screen), that code also clears the screen with a black (or was it white, cant remember) box. Obviously you will want to change it to suite your needs ect, but it shows how it can be done.
Quick note, if 100pixels is too big for your bar.. just use P / 2 or similar. P / 2 will mean a complete bar is 50pixels big.. * 2 would be 200 pixels big, ect ect. Once you calculated P you can perform anything on it to get the final size you want
p4 2.4ghz, 256ddr ram, Geforce4 MX 440
Innovate, redefine, recreate whats in your mind. It isnt fate, you decide, only you can cross that line.