Support and General Use > Theming and Appearance Customization

Trying to program playback progress bar to WPS

(1/2) > >>

ribbie:
I have a Toshiba Gigabeat F40 that I am trying to program a custom WPS for.  I have succeeded in programming all the text entries, but when I attempt to follow the instructions to program a simple playback progress bar into the display, I either get a blank line or the WPS reverts back to a much simpler WPS with almost none of the information I wish to display.  Could someone please give me the correct code for this feature or let me know what I have done wrong.   (The centering code also did not work for me, hence the spacing in the wps file.)  BlackEscape is the WPS I am trying to customize.

Here are the contents of my wps file:

        Volume %pv dB 
         %fb kbs %fc
   bat. %bl %         %bt

%s%ac%?ia<%ia|Artist Unknown>
%s%ac%?id<%id|Album Unknown>
%s%ac%?it<%it|Title Unknown>
     track-%in     year-%iy
            %ig

next:%s%ac%?Ia<%Ia|Artist Unknown>
%s%ac%?It<%It|Title Unknown>

             %pc/%pr

%lh
 

karashata:
The progress bar tag is %pb|bitmap.bmp|x-pos|y-pos|width|height|, substituting those text labels for the appropriate information.  Also, the centering tag is %ac (which will center to the viewport, not the screen, so if the viewport's only half the screen, it will center to that half...)

Hope that helps you out!

MarcGuay:

--- Quote from: ribbie on December 19, 2008, 03:01:50 PM ---or the WPS reverts back to a much simpler WPS with almost none of the information I wish to display
--- End quote ---

This is what happens when your WPS code is not written properly - it reverts to the default display.  It's a common point of misunderstanding and I'm thinking of a place to add it to the documentation.  If you can suggest a place to put it, please let me know.

yapper:
I'm not sure if it is feasible, but an error message displayed by the WPS parser might make it more apparent to users when a WPS issue has caused the default display to be used instead of the user's chosen WPS.

karashata:
I assume you're talking about on target, because I know for a fact the sim dumps error messages to the terminal window whenever it reverts to the built-in default, telling you what's wrong with the WPS...

Navigation

[0] Message Index

[#] Next page

Go to full version