PDA

View Full Version : Progress Bar



fgasoi
01-02-2010, 16:59
Is there any way of changing the color of the character drawing the progress bar? The following

Console_ProgressBar (1, 10, 10, 50, 192, 1, 100, PBValue)

draws a red progress bar which progresses greyish-red. I have not found any way of having it progress blue, or green (while the remainder stays red).

Rick

Michael Hartlef
01-02-2010, 17:08
Mmmh, the samples I run are always yellow. Can you provide a sample?

Michael Hartlef
01-02-2010, 17:19
Ok, I figured it out. I'm just not sure what the highlight part of the color functions mean.




Console_ProgressBar(1, 10, 10, 50, Console_BackgroundRGB(255,0,0,50)+Console_ForegroundRGB(0,00,200,50), 1, lMax(1), Count(1))

ErosOlmi
01-02-2010, 19:01
I cannot check right now because I do not have sources with me.
I will check this night and see what the code is doing in that area.

ErosOlmi
01-02-2010, 20:47
Console colors are a value from zero (black on black) to 255 (white on white).
To have full console color range see example in \thinBasic\SampleScripts\Conrole\Console_OutColor.tBasic

To have red background color with blue foreground color use color number 201
To have red background color with green foreground color use color number 202

Eros

fgasoi
02-02-2010, 18:03
Thank you, Eros. 250 works nicely.

Rick