Help - Search - Members - Calendar
Full Version: Scrollbar in Single Columns
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Dyslogistic
I want my Panels UI theme to not have a scrollbar in the single columns playlist, how do I go about disabling it/hiding?
Falstaff
QUOTE(Dyslogistic @ May 23 2008, 15:22) *

I want my Panels UI theme to not have a scrollbar in the single columns playlist, how do I go about disabling it/hiding?



Hi,

the job is easy, put the SCPL panel in a Track Display panel (code $panel(Playlist,Single Column Playlist,...) in the code of the track display panel you have coded in the main layout by $panel(SCPL container,Track Display,...))
but just make it larger than the Track Display width (container) in order to hide the scrollbar at its right (about 20 pixels ... try and adjust)

Take care, it is only the method, cause there is some parameters to take in consideration to make it work in all cases ...

exemple :
if the playlist contains only few lines, there is no scrollbar to hide, so, if you have simply coded a larger width of your SCPL panel and adjusted/positionned your text ($alignabs()) with the %width% parameter of the SCPL panel, you could encoutered some glitches with the display of long track titles (truncated) 'cause %width% of the SCPL go beyond the %width% of the container (your Track Display) ...

do you see what i mean ?

Fortunately, all can be handled with some tweaks smile.gif
T.P Wang
Here is a method introduced by Jensen:

Adopting this method if you don't want title truncated.

For example, If you want to place a SCPL you may use:
CODE

$panel(SCPL,Single Column Playlist,$get(x),$get(y),$get(w),$get(h),)


In this method, you can replace it by:
CODE

$panel(Playlist,Track Display,$get(x),$get(y),$get(w),$get(h),)


In the configuration(code) window of "Playlist" we've just created, replace all with:
CODE

$setpvar(PLwidth,%_width%)
$panel(SCPL,Single Column Playlist,0,0,
    $ifequal($getpvar(HideScrollBar),1,$eval(%_width%+20),%_width%),
    %_height%,
)


Finally, into the configruation(code) window of "SCPL" we've just created, add the following to the first line:
CODE

$puts(width,$ifequal($getpvar(HideScrollBar),1,$getpvar(PLwidth),%_width%))
pEar
2 Falstaff pls write in detail and on an example as it to make.
Falstaff
QUOTE(pEar @ May 24 2008, 17:39) *

2 Falstaff pls write in detail and on an example as it to make.


I have coded this functionnality for the config used by Dyslogistic and explained how i have done.

i'll try to take time to make a tutorial tom eplain the procedure in details for every one.

but now, i'm busy ... maybe Dyslogistic can explain if he had understandmy code and explanations ?

btw, T.P Wang explanations is a good base wink.gif

regards
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.