Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: [Not my release] foo_uie_panel_splitter (Read 408820 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[Not my release] foo_uie_panel_splitter

Reply #200
ok, thanx for the various advices!
ill try that(not sure if i can do it, im kinda new to this)

greets
CruX05

[Not my release] foo_uie_panel_splitter

Reply #201
Quick question: is there a command for either the text or the image buttons that allows you to hide/close the current panel? (ie, the panel that the button is contained in).

[Not my release] foo_uie_panel_splitter

Reply #202
Quick question: is there a command for either the text or the image buttons that allows you to hide/close the current panel? (ie, the panel that the button is contained in).


i was looking for a such command too, but PSS do not allow this for now. I know why you need a such button, dropdown menu created with a PSS panel need to be hidden by clicking to same button that permit to show it ...

btw, if you find a such command, tell it to us please

[Not my release] foo_uie_panel_splitter

Reply #203
Is there any way to choose the rendering order of panels (ie which panel is rendered on top of the others and such like)? The reason I ask is that I would like some drop down menus to be displayed over the playlist, but at the moment the playlist seems to rendered on top of everything else.

EDIT: Nevermind, got it. That was n00bishly simple of myself.

so how did you do it?

edit:
another question:
i'd love to do open a specific context menu (e.g. [group] replaygain) with a button. Is there a possibility to do that? (Not necessarily in PPS, i mostly use Track info panel mod for buttons)

[Not my release] foo_uie_panel_splitter

Reply #204

Is there any way to choose the rendering order of panels (ie which panel is rendered on top of the others and such like)? The reason I ask is that I would like some drop down menus to be displayed over the playlist, but at the moment the playlist seems to rendered on top of everything else.

EDIT: Nevermind, got it. That was n00bishly simple of myself.

so how did you do it?


Panels are rendered in order as placed in the columns UI setup tab. I just moved the relevant panels up the stack.

[Not my release] foo_uie_panel_splitter

Reply #205
I'm curious, is there a way to emulate
$if($or(%ps_ispause%,$not(%ps_isplaying%)),

But for the play type? i.e. default and or shuffle.

I've been thinking of trying to get around this, with putting a blank image button under

$textbutton(200,$sub(%_height%,36),20,20,▪▪,▪▪,COMMAND:'',fontcolor:0-0-255,fontcolor:255-0-0)
$textbutton(200,$sub(%_height%,36),20,20,▫▫,▫▫,COMMAND:'',fontcolor:0-0-255,fontcolor:255-0-0)

The problem is, I've got no idea how to hide and or display one text button and hiding the other with the image button.

If anyone had an idea, I'd be grateful.

[Not my release] foo_uie_panel_splitter

Reply #206
I'm curious, is there a way to emulate
$if($or(%ps_ispause%,$not(%ps_isplaying%)),

But for the play type? i.e. default and or shuffle.

I've been thinking of trying to get around this, with putting a blank image button under

$textbutton(200,$sub(%_height%,36),20,20,??,??,COMMAND:'',fontcolor:0-0-255,fontcolor:255-0-0)
$textbutton(200,$sub(%_height%,36),20,20,??,??,COMMAND:'',fontcolor:0-0-255,fontcolor:255-0-0)

The problem is, I've got no idea how to hide and or display one text button and hiding the other with the image button.

If anyone had an idea, I'd be grateful.



I'm confused by what it is you actually want to achieve. COuld you elaborate?

[Not my release] foo_uie_panel_splitter

Reply #207
Sure.

I have two textbuttons.
One makes foobar play stuff in default, the other in shuffle mode.

Now I'm trying to display each button according to the mode that is selected.

I.e. if default play mode is selected, the shuffle mode button appears and vice versa.

[Not my release] foo_uie_panel_splitter

Reply #208
Sure.

I have two textbuttons.
One makes foobar play stuff in default, the other in shuffle mode.

Now I'm trying to display each button according to the mode that is selected.

I.e. if default play mode is selected, the shuffle mode button appears and vice versa.


not possible for now, there is no variable available that indicate which playback order is activated.

it was possible in earlier versions of foobar (< 0.9.5.3) when cwb_hook component was compatible because this component brought a such variable : %cwb_playback_order% (or something similar, i don't remember the right syntax)

[Not my release] foo_uie_panel_splitter

Reply #209
there is a possibility to do this:
create a dummy-panel (i used a tab splitter with forced layout, 0 width and height)
now hide and show this panel (using PANELSHOW:caption:1/0) with the same buttons you use for playback order.
Now you can use $if($isvisible_c(caption),buttonactive,buttondisabled) in your button.

i found this idea in br3tt's ibiza config

[Not my release] foo_uie_panel_splitter

Reply #210
is it possible to use a button to set a tag through quicktagger? i tried every way of writing the command that came to my mind, but it won't work
CONTEXT: 'Tagging/Quick Tagger:Set<RATING>to:1';


Hi, I have similar issues here. I'm trying to call the iPod functions within the context menu.

using the following code:

$imagebutton($sub(%_width%,600),84,27,22,images/BUTTONS/black_ipod_send.png,images/BUTTONS/black_ipod_send_over.png,CONTEXT:'iPod/Send to iPod',,)

with no success.

is the command CONTEXT correct?
Is it able to call functions inside the context menu from other plugins? (in my case foo_dop)

regards

EDIT: I have found my mistake: CONTEXT:iPod/Send to iPod,................without the ' ' it works

[Not my release] foo_uie_panel_splitter

Reply #211
i was talking about the initial test, to choose the good button to display.

[Not my release] foo_uie_panel_splitter

Reply #212
so something along the lines of
Code: [Select]
$font(Wingdings 3,10,)

$if($isvisible_c(Filter),

$textbutton(200,$sub(%_height%,36),20,20,U,U,PANELSHOW:Filter:0;COMMAND:'Playback/Order/Random';REFRESH:1,fontcolor:0-0-255,fontcolor:255-0-0)
,
$textbutton(200,$sub(%_height%,36),20,20,r,r,PANELSHOW:Filter:1;COMMAND:'Playback/Order/Random';REFRESH:1,fontcolor:0-0-255,fontcolor:255-0-0)
,)


Can't get it to really work. seem like the second button is being active whatever I do.

EDIT
Sorry was an error on my part.

[Not my release] foo_uie_panel_splitter

Reply #213
i just figured out there is a problem with this method:
foobar remembers playback order when you restart it, but the panel is either shown or not, depending on your settings.

i solved the problem with a command line in my foobar-shortcut which sets playbackorder to default (or whatever i want) on startup.

since foobar2000.exe /command:Playback/Order/Default didn't work (anyone got an idea why?), i used foo_runcmd and set my shortcut to foobar2000.exe /runcmd=Playback/Order/Default

[Not my release] foo_uie_panel_splitter

Reply #214
i just figured out there is a problem with this method:
foobar remembers playback order when you restart it, but the panel is either shown or not, depending on your settings.

i solved the problem with a command line in my foobar-shortcut which sets playbackorder to default (or whatever i want) on startup.

since foobar2000.exe /command:Playback/Order/Default didn't work (anyone got an idea why?), i used foo_runcmd and set my shortcut to foobar2000.exe /runcmd=Playback/Order/Default


thanx for the tips

[Not my release] foo_uie_panel_splitter

Reply #215
It would be nice if an ability for buttons to set the values of variables similar to $puts was implemented in the future.

 

[Not my release] foo_uie_panel_splitter

Reply #216
hey guys & dear experts

I'm trying to create a button to manipulate multiple items selected from a playlist using the COMMAND properties.
If I use the properties function through the context menu it works for all my selected items from the playlist (standard functionality of fb2k).

If I call the properties function through a button in PSS (also in track mod info), it handles only the first item of the selection in the playlist. 

Is there any solution for that?

[Not my release] foo_uie_panel_splitter

Reply #217
hey guys & dear experts

I'm trying to create a button to manipulate multiple items selected from a playlist using the COMMAND properties.
If I use the properties function through the context menu it works for all my selected items from the playlist (standard functionality of fb2k).

If I call the properties function through a button in PSS (also in track mod info), it handles only the first item of the selection in the playlist. 

Is there any solution for that?


No, PPS buttons only work for now playing item or selected item (only one).
It doesn't work in Track info panel either...

there are only two ways that i now of:
either you use Columns UI's standard buttons, or you use foobars command lines, using /playlist_command:|conext command>(commandline guide)
You can execute this command with run services (foo_run)
In track info panel, you can make a button to run this service.
Unfortunately, you can't start a run service trough a PPS-button

But i prefer track info panel for buttons anyway, since PPS buttons have some problems like flickering or being stuck on mouseover-effect if you move the mouse out of the panel splitter area.
I use PPS buttons only if necessary, e.g. for panel switching

[Not my release] foo_uie_panel_splitter

Reply #218
there are only two ways that i now of:
either you use Columns UI's standard buttons, or you use foobars command lines, using /playlist_command:|conext command>(commandline guide)
You can execute this command with run services (foo_run)
In track info panel, you can make a button to run this service.
Unfortunately, you can't start a run service trough a PPS-button

But i prefer track info panel for buttons anyway, since PPS buttons have some problems like flickering or being stuck on mouseover-effect if you move the mouse out of the panel splitter area.
I use PPS buttons only if necessary, e.g. for panel switching


Thank you very much for your answer. I will try what you suggested. I hope I get it working. My intention is to do the following:

mark several tracks in the playlist
click on one button to send them to or to remove them from the ipod
without using the context menu.

if this one works I will do that also for editing the track properties and so one...

Regards




EDIT: now its working. I'm handling the selected tracks in the el_playlist with the command line option!

[Not my release] foo_uie_panel_splitter

Reply #219
Need help.

In screenshot, there are two panels in consideration - the Filter Panel & the Playlist Panel.
There is a switch to the left border which toggles visibility of Filter Panel.
When Filter Panel is toggled visible(as shown below), it overlaps instead of moving Playlist Panel to the right.

I think it has something to do with "left" in Forced Layout but don't know how to get about it.

Anyone know how to avoid panel overlap when toggled on and off?


[Not my release] foo_uie_panel_splitter

Reply #220
Instead of writing the dimensions of Playlist Panel in "left","top", "width" and "height" use the $movepanel()-function (but keep the "Forced layout" checkbox selected).

Write in the script box (below or above your button-string):
$if($isvisible_c(Filter Panel),
$movepanel_c(Playlist Panel,<TYPE IN WIDTH OF FILTER PANEL>,0,$sub(%_width%,<TYPE IN WIDTH OF FILTER PANEL>,%_height%),
$movepanel_c(Playlist Panel,0,0,%_width%,%_height%))

[Not my release] foo_uie_panel_splitter

Reply #221
Thanks very much Tedgo, its working now. 

Had to fix couple of typos in code you gave and experimented with Forced Layout to get it working properly.

Here's the working configuration:

Filter Panel:
Forced Layout enabled.
Left - 1
Top - 0
Width - 260
Height - %_height%

Playlist Panel:
Forced Layout enabled.
Left - <blank>
Top - 0
Width - <blank>
Height - %_height%

Code:
$imagebutton(0,0,5,800,,C:\Foobar2000\Images\toggle.png,
PANELSHOW:'Filter Panel':-1;REFRESH,,)
$if($isvisible_c(Filter Panel),
$movepanel_c(Playlist Panel,260,0,$sub(%_width%,260),%_height%),
$movepanel_c(Playlist Panel,1,0,%_width%,%_height%))

Just a glitch in queuemanager panel which does not refresh properly. If foobar2000 is minimized and maximized again, all seems ok. Could be a problem with my display, cannot say for sure.

[Not my release] foo_uie_panel_splitter

Reply #222
I have a little problem but I don't know if it's caused by Panel Stack Splitter or ELPlaylist...

So, this is the situation:
I have a layout based on Panel Stack Splitter and in the main PSS i've integrated a "pseudo transparent" ELPlaylist.
Now i have an artist picture layed under the ELPlaylist that should be only displayed if a file is playing and when playback stops, nothing - or maybe another picture - should be displayed.
I did it with a $if(%ps_isplaying%,...) function.
But when playback stops the artist picture is still visible as long as i switch to another playlist or play another file from another artist.
How can I get it to be really only displayed when playback is "active"?

[Not my release] foo_uie_panel_splitter

Reply #223
Does this have an alternative to $alignabs()? I had a look but couldn't see it. If not I think using track_info_mod would be the best way to absolutely align text?

[Not my release] foo_uie_panel_splitter

Reply #224
There's no need for $alignabs() since you have to give the position in each string.
For instance:
$drawtext(Blablabla,0,0,%_width%,20,192-192-192,hcenter vcenter)
Where it means:
$drawtext(<YOUR TEXT OR TF>,position from left,position from top,width of the line,height of the line,colour in R-G-B,options)

or with drawstríng (it's possible to set it up for multiple lines):
$drawstring(Blablabla$crlf()Nananana$crlf()Blablabla2$crlf()Holdrio,0,0,%_width%,%_height%,192-192-192,hcenter vcenter)