QUOTE(Tommy01 @ Feb 20 2007, 11:24)

i want to change different screens (library view, now playing and so on) via buttons.
so i have a pvar called "view" and the value is evaluated for what to show...
now in every code block for each view in the if-condition
there are some "// PerSecond" and some "// PerTrack" codelines.
now i want to have in a view some control buttons like play/pause, fast forward and the like but in the other views there shouldn't be this buttons. as far as i know buttons only work in the "// PerTrack"-section, but if i write them in this section they won't dissapear when i change the view.
it sounds like you're doing something like:
$if(blah,
// PerSecond
persecond stuff....
// PerTrack
pertrack stuff..
)
which won't work. the // PerSecond, and // PerTrack blocks have to self contained since they are executed separately.
QUOTE(noorotic @ Feb 21 2007, 03:31)

EDIT: I've found that moving the Playlist Tree Panel completely off-screen solves the redraw/refresh problem. I was trying to reduce it's size to 0,0 or 4,4, etc, and that does not seem to affect anything, but moving it totally off-screen (when it shouldn't be shown, anyway) seems to work. I love PTP, maybe it is refreshing queries... something. Thanks!
if you don't want to display a panel, no need to move it off scree or change its size... just don't display it (using $panel()) and it will be hidden.
QUOTE(jimbo11883 @ Feb 22 2007, 01:04)

Regarding text on aero glass in Windows Vista...
Both of the following methods will allow you to bypass the buggy text on glass. Text can now be drawn in any color.
Use GDI+ and use GraphicsPaths instead of just drawing the text. You can add a string of text to a GraphicsPath, perform transforms, apply shadowing or glow algorithms, and output it as if it were a PNG image with preserved alpha transparency. The text would display as if it was an image.
If you're still using regular GDI, you're missing out on the simplicity and power of GDI+.

yeah, only the image stuff uses gdi+. everything else is gdi.
QUOTE(wraithdu @ Feb 22 2007, 16:48)

2. I can't get rotateflip-x to work along with nokeepaspect for images if I apply a rotation, ie rotateflip-1/3. Flipping works ok, ie rotateflip-4/6. Basically I have a 400x10 px PNG graphic to go around the edges of my SCPL. I'm resizing it to %_width%x5. It works ok on the top, but if I rotate it 90deg or 270deg for the sides, I can't get it to show up unless it is the original dimensions. Adding nokeepaspect does not help.
If someone can confirm these problems, then I'll call it a bug.
PS - when using rotateflip-x (esp when rotating), are the coordinates of the image that X and Y refer to, determined before or after the rotation? Mainly I'm referring to specification of the cropping corner and cropping dimensions, but also to the 'origin' corner (usually 0,0 and the top left corner). I guess that's the same thing, but you get the idea.
fixed for the next version. the image is rotated first, and then fitted/cropped.
QUOTE(FofR @ Feb 22 2007, 17:54)

My playlist drop down menu isn't working as expected, it starts off fine. Then after restarting foobar pop up list stops showing correctly. When I uninstall the component and its settings and remove the code, then redo everything it all works again - until I restart.
you mean the context menu?
QUOTE(Yotsuya @ Feb 24 2007, 00:31)

BUG: Placing a seekbar toolbar on top of a Track Display panel appears to suffer from the same flickering refresh problems that the spectrum analyser once did. Spectrum analyser now works well, is anyone else noticing the flickering on the seekbar?
yeah, it's either have the flicker or the ability to overlay track info over other panels.
QUOTE(mil3s @ Feb 24 2007, 13:53)

Now I have a question. Is it possible to use a $select in the SCPL 'Group by' code and change settings there with a $getpvar? It doesn't seem to be working for me at least. :/
no, the indexing is only done one and pvar changes won't cause a reindex. moving/deleting items, however will cause a reindex.
QUOTE(FofR @ Feb 26 2007, 16:54)

I have a request, I have found that as I build up the themes available for my configuration the panels code begins to get cluttered with the likes of
"if theme 1... set these variables (30 or so)
if theme 2... set another 30
..."
This makes managing and customising the code difficult.
I would love to be able to say, "if theme 1 load variables from "theme1.txt" which is just a text file formatted for panelsUI and imported directly in. Then in the actual code all I would need it one $select function to switch between all the themes - nicely separating variables and design.
well, with the .pui file, the idea is to have one self contained file with all the necessary configuration information stored inside it and having external .txt files would complicate this a bit. I have been thinking about having some sort of "global" section (similar to columns ui globals) to make managing common stuff easier.
QUOTE(carmenm @ Feb 27 2007, 03:05)

I have a little problem with PVAR and i was wondering if it came from my code. I have a button in my panelUI config which aim is to change my SCPL layout:
$button2($sub(%_width%,90),$sub(%_height%,30),0,0,26,22,'$imageabs2(,,0,44,26,22,0,0,'images/ayofe/ViewButtons.tiff',)','$imageabs2(,,0,44,26,22,0,0,'images/ayofe/ViewButtons.tiff',)',PVAR:SET:scp.display.mode:0,)
I put a test in my group display in SCP to see this change:
$select($add($getpvar(scp.display.mode),1),!noheader,%album%,%album%)
My problem is that SCP doesnt see the change.
It works between Track Display and PanelUI but not in this case.
Does anyone managed to make something like that work?
SCPL doesn't "see" pvar changes like track display (and the panels ui base) do. however, if you change the pvar, then move a track inside scpl it should change.
QUOTE(nate @ Feb 27 2007, 11:45)

Is there a way to toggle between "Now Playing" and "Follow Cursor" other than the right-click menu? Either a button command or a pvar, perhaps?
you could have two different track displays- one set to follow mode and one set to now playing and automatically switch between then depending on the playback state.
----------------------
I've uploaded a new version, with two changes that need to be taken into account if you're upgrading:
1) PanelsUI subfolder (which stores the .pui files) has been move from the profile directory to the foobar directory. So, if you want you old layouts move them from your profile directory to your foobar install directory.
2) There can be multiple buttons over the same area and all will be executed (with the caveat below), instead of just the "last" one. The caveat is that button processing stops when a context menu / main menu button is executed. so you can have a PVAR:SET button, a WINDOWSIZE button, and then a button to change layout, but you can't have a change layout button, followed by a PVAR:SET button, etc (since to change layouts you use the main menu).