Support and General Use > Theming and Appearance Customization
Progress Bar Options - BACKDROP
RockBoxFan:
Has anyone successfully used the BACKDROP option on a progress bar? I have been through the wiki and the manual, but I cannot seem to get this option to do anything.
I am trying to create a progress bar in color, with a grayed bar underneath, showing the bar's full length. Is that what this option is supposed to do? I see that most themes put the progress bar's backdrop right into the wps screen's backdrop, but I am trying to avoid doing that.
Any help would be appreciated.
[Saint]:
Sure, happy to help here...
So, the syntax you want is:
"%<bar capable tag>(x,y,width,height,<filename_of_bar_image>.bmp,backdrop,<identifier_of_backdrop>)"
x, y, width, height, filename_of_bar_image, are all probably self explanatory. The next param, "backdrop", just tells the parser what to do with the next param it finds which needs to be the identifier of your backdrop image.
The identifier is what you %xl'ed it as:
%xl(identifier,<my_bar_backdrop_filename>.bmp,x,y)
example:
%V(0,0,100,10,-)
%xl(A,my_backdrop_image.bmp,0,0)
%pv(0,0,100,10,my_bar_image.bmp,backdrop,A)
If you need any more help, just ask...
[St.]
RockBoxFan:
Thanks for the reply. I have the syntax correct. This is what I am doing:
#
# Progress Bar
#
%V(4,90,168,7,-)
%xl(z,pbback.bmp,0,0)
%pb(0,0,168,7,pb.bmp,backdrop,z)
I get the progress bar, but it does not have a backdrop. Both pb.bmp and pbback.bmp are 168x7 bit maps. I am really stumped.
[Saint]:
Interesting...
What is the target device?
Would you mind uploading the whole theme please? Images and all, in some form of compressed format (.7z, .zip, etc.), to somewhere like DataFile Host so that I might take a look at this myself?
This syntax works as expected on device (I use it in the themes for my Android handset and iPod Color) here.
[St.]
RockBoxFan:
The target is an iPod Nano 1G. Let me work on getting you the files.
In the meantime, I have stripped down the theme. It now consists of a .wps with the above pasted lines ONLY, a .cfg calling the .wps ONLY, and of course the two .bmp files.
Could this be a bug? It does not work in the simulator.
OK, so I updated the simulator, and it works now!
It also runs fine on the Nano 1G, Version 3.8.
It's always better when I solve my own problems, but thank you again for your help.
Navigation
[0] Message Index
[#] Next page
Go to full version