Help - Search - Members - Calendar
Full Version: Panels UI bug: interface not displayed
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
DarkBlackCorner
Hey. I found a bug recently in the Panels UI component, which causes the user interface to not be displayed correctly. Here's what I mean:

IPB Image

This error is in displaying the interface only - I can still use the shortcut key I've set up to play music, though this causes the icons on my desktop to flicker. Also the error only occurs if foobar is closed while minimised(something I do frequently), and does not occur in any other UI that I have installed. You may also notice that it's opened separate windows for the Quick Search and foobar

Hope someone can help.
The Judge
I don't understand what the error is exactly. Does the UI work normally until you minimise it or is it always like that? If it's the latter, it's because you have an error in your Panels code.
DarkBlackCorner
QUOTE(The Judge @ Jul 3 2007, 16:20) *

I don't understand what the error is exactly. Does the UI work normally until you minimise it or is it always like that? If it's the latter, it's because you have an error in your Panels code.


The error is caused by closing foobar while it is minimised (if I close while in a normal window state, its fine).
The error actually occurs once the program has been opened and restored to a window state (in which case it appears as above).

Hope you can help.
The Judge
Post your PUI or your code using codebox and we'll be better able to see if it's your code.
DarkBlackCorner
Here you go - is this it?...

CODE

$puts(switcherWidth,160)
$puts(viewerHeight,200)

$drawrect(-1,-1,$add(%_width%,2),$add(%_height%,2),brushcolor-226-225-216)

$puts(yOffset,0)

$panel(Playing,Track Display,0,$get(yOffset),%_width%,100,)

$puts(yOffset,100)

$panel(Controls1,Track Display,0,$get(yOffset),130,26,)
$panel(Vis,Egoh Spectrum analyser,130,$get(yOffset),$sub(%_width%,260),26,)
//$panel(Vis,Spectrum analyser,130,$get(yOffset),$sub(%_width%,260),26,)
$panel(Controls2,Track Display,$sub(%_width%,130),$get(yOffset),130,26,)

$puts(yOffset,128)

// extra room for extra panels
$ifgreater($getpvar(showExtra),0,$puts(extraOffset,24),$puts(extraOffset,0))
$ifgreater($getpvar(showPane),0,$puts(paneOffset,$add($get(viewerHeight),2)),$puts(paneOffset,0))

$panel(Switcher,Playlist switcher,0,$get(yOffset),$get(switcherWidth),$sub(%_height%,$add($get(yOffset),50,$get(extraOffset))),)

// show main window pane

$panel(Playlist,Single Column Playlist,$add($get(switcherWidth),2),$add($get(yOffset),$get(paneOffset)),$sub(%_width%,$add($get(switcherWidth),2)),$sub(%_height%,$add($get(yOffset),26,$get(extraOffset),$get(paneOffset))),)

$select($getpvar(showPane),
$panel(Albumlist,Album list,$add($get(switcherWidth),2),$get(yOffset),$sub(%_width%,$add($get(switcherWidth),2)),$get(viewerHeight),),
$panel(Explorer,Explorer Tree,$add($get(switcherWidth),2),$get(yOffset),$sub(%_width%,$add($get(switcherWidth),2)),$get(viewerHeight),)
)

$puts(yOffset,$sub(%_height%,48))

$panel(Search,Quick Search Toolbar,0,$sub($get(yOffset),$get(extraOffset)),$get(switcherWidth),22,)

$ifgreater($getpvar(showExtra),0,
$panel(Menu,Menu,0,$sub(%_height%,48),240,24,)
$panel(Seekbar,Seekbar,250,$sub(%_height%,48),$sub(%_width%,380),22,)
$panel(Order,Playback order,$sub(%_width%,120),$sub(%_height%,48),120,22,)
,)

$panel(Status,Track Display,0,$sub(%_height%,24),%_width%,24,)
DarkBlackCorner
Sorry! - It appears that this is an ongoing problem, and has already been raised.

Thanks all the same. Hope I didn't waste anyone's time.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.