HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: bit4bit on 2007-04-23 19:48:48

Title: How to force sorting in PanelsUI by command?
Post by: bit4bit on 2007-04-23 19:48:48
I'm new to foobar and currently trying to do some coding in PanelsUI. I wonder if it is possible to force sorting with a command (something like $sort) a instead of implementing a button or using the menu (i.e. after selecting a different track in a playlist)? I searched the documentation and the forum, but found only strings for formatting. Thanks in advance for your help!
Title: How to force sorting in PanelsUI by command?
Post by: bit4bit on 2007-04-25 14:40:58
Can't somebody tell me how to sort in a PanelsUI script without using a button? Must be either trivial or unpossible. Or is there a workaround? I want to do a formatting in SCPL followed by a resorting, because only the active row is formatted and not the hole table.
Title: How to force sorting in PanelsUI by command?
Post by: shakey_snake on 2007-04-25 16:14:39
What?

screenshot please?
Title: How to force sorting in PanelsUI by command?
Post by: bit4bit on 2007-04-25 19:15:10
Thank you for answering shakey_snake.

Ok, I have to explain a bit more. When you got your Playlist in SCPL and you click on a track it gets selected. This is reported by %_selected% and can be used for formatting purposes. In this case ony the selected row is updated and all the other rows stay the same. But I want to redraw the hole Playlist after selecting a track and thought, the easiest way would be to resort. I know that the sorting feature is implemented with $buttons and I am asking if there is an additional way to trigger sorting, in my case after selection of a track. I can't find the answer in the documentation or in the forums. Would be nice if there is a solution.
Title: How to force sorting in PanelsUI by command?
Post by: shakey_snake on 2007-04-26 00:17:09
that is currently not possible, sorry.
Title: How to force sorting in PanelsUI by command?
Post by: bit4bit on 2007-04-26 09:12:14
If it's not possible, then I've got a more general question, since I'm new to Foorbar and only fetched a part of it's possibilities.

There are lots of commands accessible from the menu, like 'Play', 'Pause', all the edit stuff, and the sorting features. And the 'Panels Dropdown Menu' is full of commands (or is it only for informational purposes?). There must be a way to use them in the code. How will I do this? Only in the COMMAND field of a button?

And at last here is an other beginners question:
Are the buttons "Global", "Background", "PerTrack", and "PerSecond" in the Panels configuration window in any way functional? I don't see a difference when I use them, or have I missed something? And the markers "// PerTrack" etc. are they still not functional in SCPL? And is there a special order in the use of the redraw type or can I shuffle them as I like to?
Title: How to force sorting in PanelsUI by command?
Post by: shakey_snake on 2007-04-26 13:23:13
If it's not possible, then I've got a more general question, since I'm new to Foorbar and only fetched a part of it's possibilities.

There are lots of commands accessible from the menu, like 'Play', 'Pause', all the edit stuff, and the sorting features. And the 'Panels Dropdown Menu' is full of commands (or is it only for informational purposes?). There must be a way to use them in the code. How will I do this? Only in the COMMAND field of a button?

Correct. They are there as a reference to make for easy copying into your code.
And at last here is an other beginners question:
Are the buttons "Global", "Background", "PerTrack", and "PerSecond" in the Panels configuration window in any way functional? I don't see a difference when I use them, or have I missed something?
You are not missing anything. They are not functional.

And the markers "// PerTrack" etc. are they still not functional in SCPL? And is there a special order in the use of the redraw type or can I shuffle them as I like to?
They are not functional in SCPL.
SCPL is drawn while scrolling. Selected and deselected items are redraw on mouse click, and the current playing song is redrawn every second.
Title: How to force sorting in PanelsUI by command?
Post by: bit4bit on 2007-04-26 17:49:16
Thank you again shakey_snake. Then I have to do a different way.