码迷,mamicode.com
首页 > 其他好文 > 详细

Foobar2000–panel stack splitter

时间:2015-05-07 11:50:49      阅读:146      评论:0      收藏:0      [点我收藏+]

标签:

在imagebutton上点击时后,鼠标总是变成水平状,在 behaviour 中关闭 enable resizeable border就好了.

 

CUI的布局:

技术分享

根选项最好是Horizontal/Vertical splitter,因为只有这样才能控制下面Panel Stack Splitter的caption的显隐,Playlist Tabs只能包含一个播放列表,不防设在PSS中设Playlist Tabs的名字为ELPlaylist。配制那个PSS,对下属的两个面板就选“强制布局”,位置参数都设成这样,Left:0,Right:0, Width: %ps_width%, Height: $sub(%ps_height,36),然后在Script的PerTrack中粘贴下面的代码:


$puts(skin_path,%ps_foobar2000_path%\skin\mono_lite)

$drawrect(0,$sub(%ps_height%,36),%ps_width%,36,30-30-30,,)

$if($or($not(%ps_isplaying%),%ps_ispause%),
$imagebutton(41,$sub(%_height%,29),,,$get(skin_path)\play.png,$get(skin_path)\play_h.png,COMMAND:Playback/Play or Pause),
$imagebutton(41,$sub(%_height%,29),,,$get(skin_path)\pause.png,$get(skin_path)\pause_h.png,COMMAND:Playback/Play or Pause))
$imagebutton(12,$sub(%_height%,28),,,$get(skin_path)\prev.png,$get(skin_path)\prev_h.png,COMMAND:Playback/Previous)
$imagebutton(71,$sub(%_height%,28),,,$get(skin_path)\next.png,$get(skin_path)\next_h.png,COMMAND:Playback/Next)
$imageabs(105,$sub(%_height%,30),1,24,$get(skin_path)\splitter.png)

$if($isvisible_c(ELPlaylist),
$textbutton(120,$sub(%ps_height%,30),$add($gettextwidth(Lyric),10),22,Lyric,Lyric,PANELSHOW:ELPlaylist:0;PANELSHOW:Lyric:1;REFRESH,fontcolor:255-255-255 brushcolor:100-100-100,fontcolor:255-219-0 brushcolor:0-35-70),
$textbutton(120,$sub(%ps_height%,30),$add($gettextwidth(Lyric),10),22,Lyric,Lyric,PANELSHOW:ELPlaylist:1;PANELSHOW:Lyric:0;REFRESH,fontcolor:255-255-255 brushcolor:100-100-100,fontcolor:255-219-0 brushcolor:0-35-70)
)


技术分享

Foobar2000–panel stack splitter

标签:

原文地址:http://www.cnblogs.com/cnsealine/p/4484160.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!