Support and General Use > Theming and Appearance Customization
This wps line is not update: am I doing anything wrong?
pixelma:
--- Quote from: Lear on August 09, 2007, 04:06:42 PM ---Sorry, no scrolling for next file information, as it is considered dynamic.
--- End quote ---
Yes it is dynamic and can cause problems with updating, but: I disagree with this absolute statement from my experience as a "user" because it usually works on the higher RAM targets I've seen so far.
I've got the following line in my M5-wps which works perfectly there (also tried on Ipod Mini and H10):
%s%?Fn
And for example the iCatcher.wps that is in SVN uses next song info on a scrolling line too - and I haven't noticed any problems on M5.*
It wouldn't work reliably without forcing updates with sublines (or removing "%s") on my Ondio though (an Archos target with low RAM) where the next track info is usually only available within 1...1.5 minutes before the end of the currently playing track and obviously dynamic (that's why there is this workaround with duplicated sublines in the Archos-iCatcher for example - which causes the line to start scrolling again when subline changes, but I've found changes of "all 5 or 6" seconds are often almost not noticable, or at least not disturbing).
*) Recently I found a weird dependency while trying to display a graphic in this place when next song info is not present though.
Edit: @Mikerman: I tried both of your ideas - duplicating sublines worked, a %t0 subline didn't.
Mikerman:
Thanks--very interesting and humorous to hear. At times, I find the writing of a WPS to be like trying to solve the NYTimes crossword puzzle ...
;)
DervishD:
--- Quote from: Mikerman on August 09, 2007, 06:56:48 PM ---Hmm, if that indeed is the limitation, I wonder if it would work just to have alternating lines that are the same; e.g. %s%t5%It;%s%t5%It. (Or, for that matter, alternating lines where the second line is given no time, e.g. %s%t5%It;%s%t0%It.)
Oftentimes, more than 1 way to skin a cat with a WPS.
--- End quote ---
I've tried that, and the problem is that the scroll resets. I mean, everytime the line is "switched" the scroll starts from the beginning, and in long lines this is a problem (you won't be able to read it). A partial solution is to use a high value in %t, but then you have to be careful: a value small enough so you don't have to wait ages for the line to update once the information is available, a value big enough so you can scroll the line at least once in that period of time.
Tricky, at best ;)
Anyway, it's an interesting (and inspiring) solution. Thanks a lot!
Raúl Núñez de Arenas Coronado.
Mikerman:
Thanks for pointing the dynamic information/scrolling issue out. I had never faced it before, because I always had alternating lines. An interesting issue.
NicolasP:
Yes, it's a tricky issue. I didn't manage to find an elegant way around it, and it's mostly a (quite understandable) limitation of the scrolling code: you can't change the contents of a scrolling line without resetting its position.
I filed a bug report for it (FS#7006), but I don't really expect it to be solved any time soon...
pixelma: the %t0 subline doesn't force an update because it's never actually displayed.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version