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: foo_ui_panels (Read 1308312 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foo_ui_panels

Reply #775

Foo_utils "Edit other/Send to playlist/1 - Browser" type commands are only accessible from the buttons customise menu (i.e. for the foobar buttons bar). They do not appear in the commands in the drop-down in the panels-ui.


Yep, I noticed that back with trackinfo_mod, and Terrestrial confirmed it here. Looks like it carried over to this.

I tried making a workaround by putting a foobar buttons bar behind my custom buttons panel, but it didn't work so well . If Terrestrial does indeed add this functionality, it'd be rad

-Nate

It is the same with foo_run commands

foo_ui_panels

Reply #776
After installing the latest beta, brumals config is broken. It shows the items in the playlist without an album header etc. Just as one continuous list of songs ... Am I doing something wrong ? It worked before ...

foo_ui_panels

Reply #777
Sizetwo.
You answer can be found on the last three pages of this thread.
elevatorladylevitateme

foo_ui_panels

Reply #778
I tried making a workaround by putting a foobar buttons bar behind my custom buttons panel, but it didn't work so well . If Terrestrial does indeed add this functionality, it'd be rad

-Nate

In the meantime you can install foo_run and foo_runcmd.  Create a foo_run service that uses the foo_runcmd syntax.  foo_runcmd can access those commands just fine (I use it so send albums to foobar after being processed with REACT2).  Then in your button code execute the foo_run service by name.


foo_ui_panels

Reply #780
Sizetwo.
You answer can be found on the last three pages of this thread.


Ooops. Paying attention helps, doesnt it.    And I really like the new sorting routines. Good stuff.

Thanks.

foo_ui_panels

Reply #781
Bug: When I open the sort/group by edit box, the little one, when I click a check box both boxes check themselves. When I uncheck... both uncheck. I also cannot see the G and S titles for the checkbox columns.

EDIT: Right click adds one box left click adds both? That was in no way intuitive. Is there a way to group by but not sort by?

Bug 2: Cannot seem to delete an empty SCPL, does it delete on fb2k close?

Bug 3: For auto playlists when sorting cannot be changed the sort by dialogue should be greyed out or give a warning.

Are the Sort/Group by settings stored in the PUI? Im going to assume yes.

In the group header box is it possible to do something like $if($grouped(album),this code, that code) I often only want to change the header, not the code.

On the setlayout code section for $isgrouped() it'd be nice to have some way of choosing between when grouped solely by album and grouped by album AND something else, so, something like $onlygroupedby(). As far as I can see you can have OR and AND commands so multiple groupings are fine, just not solitary ones. Another approach would be $and($isgrouped(album),$secondarygroup(none)). At the moment you'd have to NOT all the other "group by" options to achieve this result.

foo_ui_panels

Reply #782
I've just worked out that when buttons are stacked processing stops when a main menu or context menu command is executed.

I'm curious as to whether this is by design or because of a technical constraint?

What I want a button which

activates a playlist
selects all
runs replaygain as album
highlights playing

No problem with getting each command to run separately but how to do it them all?

foo_ui_panels

Reply #783
I've just worked out that when buttons are stacked processing stops when a main menu or context menu command is executed.

I'm curious as to whether this is by design or because of a technical constraint?

What I want a button which

activates a playlist
selects all
runs replaygain as album
highlights playing

No problem with getting each command to run separately but how to do it them all?


Did you try using multiple buttons in the same area?

foo_ui_panels

Reply #784
Bug Report : (maybe a bug)

1. Layouts cannot be deleted

2. $scplsetlayout() in Layout selector seems not to work.

foo_ui_panels

Reply #785
Guys,

I'm relatively novice at this, these might be stupid questions, but I can't find the answers in the wiki or this forum, so...

1) I want to replace the titlebar in foobar. I've hidden the default one and have created a new panel
Code: [Select]
$panel(pnlTitlebar,Single Column Playlist,0,200,%_width%,26,)

I couldn't figure out which type of panel to use so I used a SCPL? It worked and I've put images and buttons on the panel... but was there an easier way to replace the titlebar or re-image the titlebar?

2) I have a 5x26pixel image that I want to stretch over the width of the screen. I've used the following code inside the subpanel:
Code: [Select]
$imageabs2(%_width%,26,0,0,%_width%,26,-200,0,/images\waz_titlebar.png,NOKEEPASPECT ALPHA-255)

but it doesn't work! Even with alpha set to 255, the left and right edges of the image fade  So as a temporary fix, I've used the following code:
Code: [Select]
$imageabs2($eval(%_width%+400),26,0,0,$eval(%_width%+400),26,-200,0,/images\waz_titlebar.png,NOKEEPASPECT)

But it's messy and surely there is a better way?

Thanks,
Rukh

foo_ui_panels

Reply #786
@Rukh:
1 - If you want to create your own titlebar, don't use a panel.
Just write the code in the main layout (this way you can move the window).

2 - Try this code:
$imageabs2($eval(%_width%+400),26,,,,,-200,0,/images\waz_titlebar.png,NOKEEPASPECT)

foo_ui_panels

Reply #787

I've just worked out that when buttons are stacked processing stops when a main menu or context menu command is executed.

I'm curious as to whether this is by design or because of a technical constraint?

What I want a button which

activates a playlist
selects all
runs replaygain as album
highlights playing

No problem with getting each command to run separately but how to do it them all?


Did you try using multiple buttons in the same area?


Yes - the only command executed is the command of top button .

foo_ui_panels

Reply #788
1 - I've put it back in the main layout. Thanks for the tip.

2 - I still have a problem with transparency, or opaque-ness. My titlebar, which is a uniform colour, 5 pixels wide stretched across the screen is darker at the edges?? It is very obvious because I've pasted a box of the same colour over the top of it to check... even extending the image 200 pixels past the edge of the screen does not solve the problem.

How do I stop this auto-opaque-ness?? Alpha 255 does not work.


Rukh

foo_ui_panels

Reply #789
Latest one does not work here. At first foobar says that the modeule is missing (the typical question wether I want to keep the configuration), then it complains that it cannot load the component. Missing dependency. W2K here.


I'm getting the same thing. I'm running Windows 2000 also. Is there some additional library or special Windows XP dll required now?

foo_ui_panels

Reply #790
I don't know if it will solve your problem,but it worths a try:GDI+ library
Favourite artist:CD-R
Favourite album:700MB

foo_ui_panels

Reply #791
Well the dll was already in the directory, but I replaced it anyway. Still nothing.

 

foo_ui_panels

Reply #792
Hi,

I'm using your wonderful plugin now, but one thing bothers me.
I have a global shortcut mapped to activate or hide the foobar window but with your plugin it does'nt work that great. At first it worked but now it won't activate anymore i.e it's hidden. On top of that it flickers and steals focus sometimes (but not showing the window).

Can you take a look at this? I'm using the latest (0.91 beta) version and I'm on XP SP2

foo_ui_panels

Reply #793
Could/should all SCP layouts be available to all SCP panels (I have 2 SCPs in my config: one as a browser; one as a "Now Playing", it would be good to be able to use the same layouts in both)?


the layouts are stored per panel, so they won't be available to both (so you can have different designs for the two).

Quote
The selected "sort/group by" type seems to stick to the SCP until changed- if so, maybe it should be ticked (like the playlist name the SCP displays).


added.

Quote
How can you tell what the first sort key field is? $isgrouped() seems to be true if the field (should that be criteria name?) is anywhere in the sorting/grouping sequence)


I've added a $sortidx() functions. for grouping the order doesn't matter.

Quote
How about sorting the "sort/group by" entries so they are listed in the order selected (as well as/ instead of the numerical subscripts). Maybe with up/down buttons?  Might be easier to use?


I think that might be a bit harder to use, as when you click something the order will change (which means if you click again, you will hit a different item)

Quote
How about giving %_rowheight% and %_norows% as variables we can use in SCP (similar to %_width%  or %_height% in panels_UI)!


%_height% will return the rowheight in scpl.

1.  What exactly does the 'Group by sort' checkbox do?  And if it does what I think, does it take the Primary or Secondary sort?


with it checked it will group by the primary sort field. without it will group by what's in the "Group by" box.

Quote
2.  When is the 'Secondary Sort' applied?  Only if it's the last sort by criteria in the order?


yep.

Quote
This would eliminate some logic code in SCPL and simplify things for different layouts (singles, albums, etc), especially if you can assign specific sorting presets to different playlists and SCPL panels.


with the new $playlistname() function it should be easier to automatically switch layouts based on playlist.

Quote
Bug (maybe) - I cannot delete a layout under right-click -> settings (button does nothing).  I can create a layout however, without a problem.


fixed.

foo_ui_panels

Reply #794
[quote name='Yotsuya' post='481502' date='Mar 27 2007, 23:02']
The left/right clicks work as you described in your previous post however I would think it more intuitive just to be able to left click to check each box instead of the left click for both boxes and right click for sort box.
[/quote]

left/click right click saves a few clicks and is faster once you get the hang of it. I will eventually remove the "group by" check box as it is a bit misleading and have another way to indicate "group by" (maybe a dash or something above/below the sort index).

Quote

Also, the little numbers between the boxes appear to indicate the precedance of the grouping/sorting, is there a way to reorder these without clearing the boxes and starting over?


nope, just remember the old order and start over

Quote

As for the crashing, foobar continues to crash often when loading the main configuration dialog. I do not believe I am using any raw unicode characters in my configuration and have drawn flack in some other threads for my overuse of $char(). However, I do run my systems under the Japanese codepage 932 instead of the US codepage 437.


yeah, its something to do with codepages and unicode / utf8 conversion. it's crashing within scintialla, who's code I'm not familiar with so I'm not quite sure what's going on. I tried changing the codepage on my system to see if I could reproduce the crash but then vista refused to boot, which meant I had to reinstall  does bringing up the scpl layout box ever cause a crash, or is it only the main panels ui settings dialog (the one with the formatting string).

Quote

EDIT: What is the proper procedure for modifying an existing preset? I can select an existing preset in "Sort/Group By" dialog and it will display the current settings, I can change those settings, but when I go to [Save] I am prompted for a new preset name. If I type in the old preset name it creates a second preset with that same name.


fixed.

[quote name='D3WEY' post='481508' date='Mar 27 2007, 23:41']
Probably my last try on this...might as well give it one more bump on the new page:

[quote name='D3WEY' post='480125' date='Mar 21 2007, 09:33']
Does anyone know why, ever since switching to Panels UI, my drag'n'dropped playlist items always move to the bottom of the playlist? In ColumnsUI, there was an option to have dropped items insert wherever you dropped them. That option, while still set the way it was, obviously doesn't function since i'm using Panels UI. Thanks for any help you can provide
[/quote]
[/quote]

you can't. scpl doesn't really support drag and drop positioning yet.

[quote name='Yotsuya' post='481516' date='Mar 28 2007, 00:29']
Has anyone figured out how to switch layouts in scpl?
I tried making some buttons like this:
Code: [Select]
$button2($sub(%_width%,42),$get(mainpanel.y),0,0,14,14,X,x,PVAR:SET:playlist.mode:0,)
$button2($sub(%_width%,28),$get(mainpanel.y),0,0,14,14,Y,y,PVAR:SET:playlist.mode:1,)
$button2($sub(%_width%,14),$get(mainpanel.y),0,0,14,14,Z,z,PVAR:SET:playlist.mode:2,)

And set my layout selector code to this:
Code: [Select]
$select($add($getpvar(playlist.mode),1),
$scplsetlayout(Album)
,
$scplsetlayout(Singles)
,
$scplsetlayout(Radio)
)

But it does not switch when I click the buttons. I can confirm the buttons are setting the pvars as they change with $getpvar(playlist.mode) in a Track Display panel.  I tried manually changing the layout from the SCPL configuration dialog but could not figure out how.

I also tried using he $scplsetlayout() as the button command but that does not appear to work either. Also, when it comes to the different layouts the delete button does not appear to work and I cannot find a way to rename an existing layout.

All these new toys to play with
[/quote]

the layout selector code is only evaluated when the playlist changes / or a new sorting/grouping is applied. ideally you shouldn't have to manually select a layout, but the layout should be automatically chosen based on the sorting/grouping pattern. with the new sort/group main menu with the new version you should be able to create a preset and button as a workaround though.

[quote name='Squeller' post='481536' date='Mar 28 2007, 03:51']
Latest one does not work here. At first foobar says that the modeule is missing (the typical question wether I want to keep the configuration), then it complains that it cannot load the component. Missing dependency. W2K here.
[/quote]

fixed.

[quote name='Kiteroa' post='481543' date='Mar 28 2007, 04:32']
I may be wrong but from my playing with it:

It seems to me that the SCP layout selector code only runs after the SCP is redrawn either by using the "sort/group by" option or by sending/adding etc. to the playlist (changing playlist contents?).

The layout name in the SCPL configuration dialog chooses which layout you are editting.

The "sort/group by" option chooses which sort and grouping to use and then SCP layout selector code is run to determine SCP layout to apply (layout names are case sensitive!). The value of the variables at the time the SCP layout selector code is run determines which layout is used. Changes to the variables have no effect until the SCP is changed again by "sort/group by" or by changing the SCP contents.

To get layouts changing more dynamically the SCP layout selector code would have to be run more often (Per Track or Per Second?)

I'm not sure whether it is really is working as it seems to me; whether it is meant to work like this or whether it should be updating more often! I'm sure we'll find out in the next few days!

Im looking forward to playing with it some more, tomorrow.
[/quote]

all correct

[quote name='DiGiCharat' post='481566' date='Mar 28 2007, 07:05']
nope 

i'm working in windows xp professional edition

maybe a user32.dll problem because everytime i crash i noticed that

Symbol: "GetWindowTextLengthW" (+00000547h)
Address: 01AAE580h, location: "foo_ui_panels", loaded at 019F0000h - 01ABA000h
Address: 019F0000h, location: "foo_ui_panels", loaded at 019F0000h - 01ABA000h

performed some search on internet and found it's related to user32.dll..
[/quote]

yeah, its scintilla. same problem as Yotsuya and a couple of other people.



[quote name='shakey_snake' post='481580' date='Mar 28 2007, 08:06']
I'm interested to know where this new sort info stuff is stored. (.pui? .cfg?)
As well as what this means to the SORT: and FILTER: button commands (if anything)
[/quote]

SORT: is kinda depricated. the settings are stored in the .cfg.

[quote name='TheBlackCat' post='481684' date='Mar 28 2007, 17:29']
I still haven't fully fixed the button transparency problem with my buttons.
[/quote]

post your button images and I will take a look.

[quote name='FofR' post='481852' date='Mar 29 2007, 14:26']
Like the new system, going to take a short while adapting my layout to it though.
Can you apply this sorting using a $button command?
[/quote]

not directly yet, but through the main menu in the new version.

[quote name='FofR' post='481856' date='Mar 29 2007, 14:51']
EDIT: Right click adds one box left click adds both? That was in no way intuitive. Is there a way to group by but not sort by?
[/quote]

have a empty sort by string.

Quote

Bug 2: Cannot seem to delete an empty SCPL, does it delete on fb2k close?


fixed with the new version.

Quote

Bug 3: For auto playlists when sorting cannot be changed the sort by dialogue should be greyed out or give a warning.


didn't think of that. will do for the next version.

Quote

Are the Sort/Group by settings stored in the PUI? Im going to assume yes.


no, in the main foobar .cfg.

Quote

In the group header box is it possible to do something like $if($grouped(album),this code, that code) I often only want to change the header, not the code.


yep ($isgrouped() and $sortidx() would be the functions).

Quote

On the setlayout code section for $isgrouped() it'd be nice to have some way of choosing between when grouped solely by album and grouped by album AND something else, so, something like $onlygroupedby(). As far as I can see you can have OR and AND commands so multiple groupings are fine, just not solitary ones. Another approach would be $and($isgrouped(album),$secondarygroup(none)). At the moment you'd have to NOT all the other "group by" options to achieve this result.


hmmm... maybe a $groupcount()...

foo_ui_panels

Reply #795
I've just worked out that when buttons are stacked processing stops when a main menu or context menu command is executed.

I'm curious as to whether this is by design or because of a technical constraint?


by design due to some techincal considerations... I'll see if I can remove this restriction in the future.

2. $scplsetlayout() in Layout selector seems not to work.


have you added the appropriate layouts to scpl?

2 - I still have a problem with transparency, or opaque-ness. My titlebar, which is a uniform colour, 5 pixels wide stretched across the screen is darker at the edges?? It is very obvious because I've pasted a box of the same colour over the top of it to check... even extending the image 200 pixels past the edge of the screen does not solve the problem.


its a gdi+ thing with stretching images.

Hi,

I'm using your wonderful plugin now, but one thing bothers me.
I have a global shortcut mapped to activate or hide the foobar window but with your plugin it does'nt work that great. At first it worked but now it won't activate anymore i.e it's hidden. On top of that it flickers and steals focus sometimes (but not showing the window).

Can you take a look at this? I'm using the latest (0.91 beta) version and I'm on XP SP2


seems to work fine from me (on xp sp2). are you doing anything else to get this problem?

-------------------------

I've uploaded 0.9.2

foo_ui_panels

Reply #796
That was a marathon answering session, thanks for your responses. .

I do foresee a problem with storing Sort by info in the cfg - many people who create and distribute their pui layouts will likely want to have smart sorting code that changes with buttons etc. New users of the layout would have to add each sort command manually to make the layout work correctly. It's proving a hassle getting everyone to change one variable, let alone this .

It'd be nice if the pui could provide the complete solution as you said it should earlier in this topic.

Is it an fb2k limitation preventing pui storage? I don't really understand this change in philosophy, storing component information outside of the pui. If it is a limitation, any change of creating an "install these sort by/group settings if they don't exist" option?

foo_ui_panels

Reply #797
That was a marathon answering session, thanks for your responses. .

I do foresee a problem with storing Sort by info in the cfg - many people who create and distribute their pui layouts will likely want to have smart sorting code that changes with buttons etc. New users of the layout would have to add each sort command manually to make the layout work correctly. It's proving a hassle getting everyone to change one variable, let alone this .

It'd be nice if the pui could provide the complete solution as you said it should earlier in this topic.

Is it an fb2k limitation preventing pui storage? I don't really understand this change in philosophy, storing component information outside of the pui. If it is a limitation, any change of creating an "install these sort by/group settings if they don't exist" option?


Maybe an option to import a pui's sort/group settings? Or a way to separate user global sort/group and layout specific sort/group so the user's own custom sorts don't get overwritten. (I've already tinkered around with the presets and I would hate to load up a pui that suddenly decides that this is how the sort/groups should be and overwrites my settings)

foo_ui_panels

Reply #798
Good call, maybe a pui specific sort/group settings? Then by changing the pui the sort functions change, when you change back you still have your original versions.

Trying to make a chronological sort, sorting by Data puts the earliest at the top, I can use the sort by/reverse menu to change the whole playlist but then the albums aren't in order. A reverse chronological order would be great, any ideas on how to get this to work? Maybe for each sort by option there could be a way of reversing it? So I could sort by opposite date order then sort by track order.

foo_ui_panels

Reply #799
I do foresee a problem with storing Sort by info in the cfg - many people who create and distribute their pui layouts will likely want to have smart sorting code that changes with buttons etc. New users of the layout would have to add each sort command manually to make the layout work correctly. It's proving a hassle getting everyone to change one variable, let alone this .


well, the layouts should handle the "visual" stuff, but the sort / grouping stuff is more of a user preference that really shouldn't change with the layout, as each person would have their slightly different way of sorting (and grouping). each layout should contain multiple scpl layouts to handle different grouping / sorting situations (eg "Album", "Singles", "Rating", etc) and the names should probably be standardized, but the user should ultimately decide which layout goes with which sorting/grouping pattern (and they would only have to do this once, and it would work across all layouts).

for buttons, instead of using names perhaps using something like $setpreset(1) would work, or maybe some standard preset names....

or is there some other problem I'm not quite seeing?