Ah, cool, I am getting there. It's quite complicated having to calculate how big I want each panel to be. Is there any tool or something easier than trial and error?Any ideas why setting PSS as the base splitter does not let me configure that splitter as vertical or horizontal?Also, if I wanted to let some borders on some panels, but with a different color, what's the code I should be using?
$puts(button_path_1,'./icons/nn-favorites.png')$puts(button_path_3,'./icons/nn-stop.png')$puts(button_path_4,$if(%ps_isplaying%,$if(%ps_ispause%,'./icons/nn-play.png','./icons/nn-pause.png'),'./icons/nn-play.png'))$puts(button_path_5,'./icons/nn-next.png')$imagebutton(1,2,24,24,$get(button_path_1),$get(button_path_1),PANELSHOW:'Library':$if($isvisible_c('Library'),0,1);PANELSHOW:'Explorer Tree':$if($isvisible_c('Explorer Tree'),0,1);REFRESH,,) $imagebutton(40,2,24,24,$get(button_path_3),$get(button_path_3),COMMAND:Playback/Stop;REFRESH,,) $imagebutton(68,2,24,24,$get(button_path_4),$get(button_path_4),COMMAND:Playback/Play or Pause;REFRESH,,) $imagebutton(96,2,24,24,$get(button_path_5),$get(button_path_5),COMMAND:Playback/Next;REFRESH,,)
1. When I start up foobar2000 manually, the imagebutton's I've created appear fine:How can I get them to appear regardless of the manner in which foobar2000 is started?
2. Is there any way to get rid of this "minimized" toolbar (refer to first picture, red arrow)? I have toolbars hidden but this rectangular thing still appears at the top of the screen, under the title bar.
$textbutton(0,37,90,18,Library,Library,SETGLOBAL:activepanel:1,fontcolor:120-130-135 ,fontcolor:190-200-205)$textbutton(89,37,90,18,Explorer,Explorer,SETGLOBAL:activepanel:2,fontcolor:120-130-135, fontcolor:190-200-205)$ifequal($get_ps_global(activepanel),1,$set_ps_global(test,11),$set_ps_global(test,22))
That worked, thanks a lot! Somehow I missed the info on the refresh function.
not possible. all you can do is use alt-print screen to take a screenshot of foobar and then paste it into something like paint. check how many pixels wide it is. then assuming you have a PSS panel taking up the whole width, work out the difference between the 2 values. of course this is subject to change if you switch windows themes.
when you want to toggle something on/off, you need to check it's current state and then apply the opposite...Code: [Select]PANELSHOW:xpanel1:$if($isvisible_c(xpanel1),0,1);
//default value of 1 to show it. 0 would hide it...$init_ps_global(show,1)//show panel depending on value$showpanel_c(xpanel1,%show%)
i must admit, i don't use PANELSHOW - but i thought what i posted would work. instead, i use global variables. on the "PanelList" tab i make sure the panel has the "hide panel on startup" box ticked.then my script goes something like this....Code: [Select]//default value of 1 to show it. 0 would hide it...$init_ps_global(show,1)//show panel depending on value$showpanel_c(xpanel1,%show%)then my button action code...Code: [Select]SETGLOBAL:show:$ifequal(%show%,1,0,1);REFRESH;