Page 1 of 1
Horizonal Bar plugin
Posted: December 21st, 2006, 8:12 pm
by Kilo
Hello All. Long time user, first time poster. I wrote a plugin to provide a little more functionality over the $Bar function:
- Allows you to define the characters used in the bar
- Allows you to specify the upper and lower bound
- Requires .NET 2.0
- Examples in README file and screenshots at download site
You can download it
here.
-Brian
Posted: May 17th, 2008, 4:49 pm
by EvylRat
Has anyone got this plugin? I've got three Bars on a screen, and all three don't look right.
Posted: May 18th, 2008, 7:34 pm
by caesar
I can't find the plugin where the author uploaded it, if someone can upload it then I could check.
@EvylRat If you can upload it somewhere then I'll check (
http://mihd.net)
Posted: May 20th, 2008, 10:32 pm
by EvylRat
Is there any other way to have a simple, none custom char bar
this might help in my other post
http://forums.lcdsmartie.org/viewtopic. ... highlight=
Posted: May 20th, 2008, 10:47 pm
by caesar
I don't know of a bar plugin that doesn't use custom chars. sorry.
Posted: May 24th, 2008, 12:25 am
by EvylRat
I've got a workaround... using the WIDTH plugin
$dll(width.dll,1,5#X,)
produces
XXXXX
on the screen
$dll(width.dll,1,10#X,)
produces
XXXXXXXXXX
on the screen.
I've tested this with custom chars.
Eg.
$dll(Pbar,2,9#8,$HDFree(C)#$HDTotal(C))
is the same as (i think)
$dll(width.dll,1,$dll(math,11,$dll(math,4,$dll(math,5,$HDFree(C),$HDTotal(C)),9),0)#$CustomChar(1,0,0,31,31,31,31,0,0)$Chr(176),)
I took the free space as a percentage of total, divded by number of total bars for graph, and rounded to nearest whole.
Command fails though if width is zero.Maybe a WARNIF could fix that.
Posted: May 24th, 2008, 6:46 am
by caesar
Great idea!
PS: That's why I like smartie so much, plugin combining gets you interesting results.