From 3eb5826c8a289d2ff2af246388e17d4aa6483da4 Mon Sep 17 00:00:00 2001 From: Teruaki Kawashima Date: Tue, 12 Oct 2010 12:17:39 +0000 Subject: improvement for bar tag with slider. -fix bug the slider is drawn outside of the bounds (FS#11658). -offset the slider position so that the center of the slider indicates current position. -add nobar option. if this option is set, the bar isn't drawn at all. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28248 a1c6a512-1295-4272-9138-f99709370657 --- manual/appendix/wps_tags.tex | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'manual/appendix') diff --git a/manual/appendix/wps_tags.tex b/manual/appendix/wps_tags.tex index 92460e8..58d81e6 100644 --- a/manual/appendix/wps_tags.tex +++ b/manual/appendix/wps_tags.tex @@ -650,16 +650,22 @@ Example: \item[vertical] -- force the bar to be drawn vertically. \item[invert] -- invert the draw direction (i.e. right to left, or top to bottom). - \item[slider] -- draw an preloaded image over the top of the bar. This must be + \item[slider] -- draw an preloaded image over the top of the bar so that + the centre of the image matches current position. This must be followed by the label of the desired image. \item[nofill] -- don't draw the fill bar, only the empty image (for the desired effect use with the ``slider'' option). + \item[nobar] -- don't draw the bar entirely including frame (for use + with the ``slider'' option). \end{description} Example: \config{\%pb(0,0,-,-,-,nofill, slider, slider\_image, invert)} -- draw a horizontal progressbar which doesn't fill and draws the image ``slider\_image'' which moves right to left. +Note: if the slider option is used, the bar will be shrank so that the slider will fit + inside the specified width and height. + \section{Other Tags} \begin{tagmap} \config{\%(} & The character `('\\ -- cgit v1.1