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 1317591 times) previous topic - next topic
0 Members and 8 Guests are viewing this topic.

foo_ui_panels

Reply #1125
Feature request:

Add a new command (like SORT: or FILTER:) that loads a 'right click' menu, and maybe call it MENU:. Just like both the other commands do. What the new command would do is allow you to run many things from one button.

Uses for this:

You can recreate the main menu with buttons, and whatever you want in them. There are others too for changing playlists from a single button (saves space), running different run commands from one button, etc.

Format:

Code: [Select]
$button(,,,,,,,,MENU:*name_you_give*|*foobar_name*:My Playlists|*playlist_name*,)

--

Does that make sense? Would it be useful? I think if this were implemented it should be able to apply to $button() and $button2() so you can have an image also .

Thoughts?

Oh, also, I am having trouble applying a CUSTOM sort command to a button. I am using:
Code: [Select]
$button(0,$get(butY),0,0,22,21,$get(dir1)sort1.png,$get(dir1)sort2.png,SORT:artist|%artist%:album|%album%,)

But when I click the button, nothing happens. Any help would be great!
Song List: keikoniumboards.ke.funpic.org/files/songlist.html

foo_ui_panels

Reply #1126
for some reason playlist tree will not work in panels  ui 10.0.2 and I really want to use it - I am running the latest version - when it tries to be load the ram usage shoots up to 100+ mb and it window goes blank/white... but still nothing loads.. please help

foo_ui_panels

Reply #1127
I don't see how it would be any less feasible than $eval(). Just rather than returning a number, it would return True or False.


its the way functions return truth values... I don't think its possible

Thanks for your reply. So it seems that I have some trouble for non-english text. Look at screenshots:


hmmm... I'm not sure... I'll see if I can track it down later.

I have to redraw the panel with another thing like next track or anything for it to go well. Does that mean that not all panel is redrawn when doing what i did


yeah, its not redrawing to reflect the changes in the variables...


Terrestrial: would it be possible to allow something like that in $eval() :
$eval(2+-4)
and make it $eval(2-4)

this is problem when you have a variable and you do  $eval(2+$get(toto))
if the variable equals -2. I would like to allow positive and negative values for toto but currently it is not possible

Thanks


maybe try $eval(2$get(toto)) and set toto to "+2" or "-2" as a temporary workaround...

It would also be useful to have an option for $drawrect to make them formatted like 3d system boxes.


you should be able to fake it using $drawrect and using SYSCOL-

I don't know why, but since I installed the new version (0.10.2), foobar crashes on startup saying "unhandled exception: bad allocation", even when using default settings. (foobar doesn't create a crash log)


delete foo_uie_single_column_playlist.dll and foo_uie_trackinfo_mod.dll. you don't need them with PanelsUI and they are incompatible.

I made a topic asking how to override cursor status (Here) with no replies as of yet.


the command is not possible for the near future, but you can use CONTEXT-PLAYING and CONTEXT-SELECTED for the buttons...

Oh, also, I am having trouble applying a CUSTOM sort command to a button. I am using:
Code: [Select]
$button(0,$get(butY),0,0,22,21,$get(dir1)sort1.png,$get(dir1)sort2.png,SORT:artist|%artist%:album|%album%,)

But when I click the button, nothing happens. Any help would be great!


need single quotes (') around the SORT:

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

I've uploaded 0.11.0. The main new thing is the ability to popup new panels ui windows through a button.

foo_ui_panels

Reply #1128
I also started a wiki page here.  Feel free to add things

foo_ui_panels

Reply #1129
My sorting works now! Thanks .

And thank you for the new version too ^__^.
Song List: keikoniumboards.ke.funpic.org/files/songlist.html

foo_ui_panels

Reply #1130
Quick question. Is it not possible to change the value of pvar with a button if $setpvar is preset in the // Global?

foo_ui_panels

Reply #1131

Terrestrial: would it be possible to allow something like that in $eval() :
$eval(2+-4)
and make it $eval(2-4)

this is problem when you have a variable and you do  $eval(2+$get(toto))
if the variable equals -2. I would like to allow positive and negative values for toto but currently it is not possible

Thanks


maybe try $eval(2$get(toto)) and set toto to "+2" or "-2" as a temporary workaround...

Yes i can do that but the thing i forgot to say before is that i really would like to do something like $eval(2 -$get(toto)). Not possible yet but i can wait.

About the redraw problem would it be possible to have an action like REDRAW in order to get rid of such problems?

I've uploaded 0.11.0. The main new thing is the ability to popup new panels ui windows through a button.

Great, thanks

foo_ui_panels

Reply #1132
Bug in v0.11.0.
[a href="http://img182.imageshack.us/my.php?image=v11pk9.jpg" target="_blank"] Perhaps you could set the relative path to the folder of the currently used pui config to keep things consistent.

EDIT2: I like the menu function on the button in the default config. Although i think it would be even better if one could change the root for the menu. For example if one set the root to "playback > order" one only get the playback order menu.

Thanks for keep updating this component.

foo_ui_panels

Reply #1133
I've uploaded 0.11.0. The main new thing is the ability to popup new panels ui windows through a button.

Where did the  Layout Globals go?
elevatorladylevitateme

foo_ui_panels

Reply #1134
2 Terrestial

I download ui_panels v 11.0 and clear PANELSUI folder for use it's default layout.
When I push on button "MENU" I have Error windows "Unhandle exception : Overflow" and foobar closes.

I use WindowsXP+SP2.

I have this error on other configurations (not only default) and with earlest version of  ui_panels.

Can you solve this bug?
_________________________________________________________________________________

Edit: I find reason - delete foo_menu_addons and button "MENU"  start work fine.

foo_ui_panels

Reply #1135
Hi there,

wondering if anybody can help.

I'm trying to display in a panel an image of the artist.

I try to declare first: $puts(bandPath,$replace(%path%,%filename_ext%,band.jpg))

Then using
$if($cwb_fileexists($get(bandPath)),
   $if(%ispaused%,
      $imageabs2($get(albumwidth),$get(albumwidth),,,,,2,2,$get(bandPath),alpha-100 nokeepaspect)
      ,
      $imageabs2($get(albumwidth),$get(albumwidth),,,,,2,2,$get(bandPath),nokeepaspect)
   )
   ,
   $imageabs2($get(albumwidth),$get(albumwidth),,,,,2,2,$get(images)noart.png,nokeepaspect)
)

But it's not working.

Anybody has a solution?

Thanks in advance!

foo_ui_panels

Reply #1136
I am also getting the graphical glitch where the title bar comes up missing some parts to it..

foo_ui_panels

Reply #1137
Quick question. Is it not possible to change the value of pvar with a button if $setpvar is preset in the // Global?


well, the button changes the pvar, but then the $setpvar is executed in the global section.... so no I guess..

Bug in v0.11.0.
Window frames looks really weird when I start foobar. I'm using XP.


fixed.. I've uploaded 0.11.1

Quote
EDIT: Also noticed. I can't seem to open anything other than the default config with the new POPUP function.  Perhaps you could set the relative path to the folder of the currently used pui config to keep things consistent.


do something like:

$button(62,$sub(%_height%,18),0,0,0,0,/images\lib.png,/images\libH.png,POPUP:library.pp,)

which will create a new layout in the same directory as the main .pui. you can then just right click on the new window and change the code.

Where did the  Layout Globals go?


since there can be more than one window, the layout globals have moved to the settings dialog (bottom left, "Globals").

foo_ui_panels

Reply #1138
Quick question. Is it not possible to change the value of pvar with a button if $setpvar is preset in the // Global?


You could execute the $setpvar once a track using $ifequal(%playback_time_seconds%,0,$setpvar(),)
This way you the pvar will be executed everytime a track starts and you could still change the value using a button after that.

foo_ui_panels

Reply #1139

Quick question. Is it not possible to change the value of pvar with a button if $setpvar is preset in the // Global?


You could execute the $setpvar once a track using $ifequal(%playback_time_seconds%,0,$setpvar(),)
This way you the pvar will be executed everytime a track starts and you could still change the value using a button after that.

Thanks, but don't want the pvar to be reset after every track. Only once when Foobar is loaded.  But since terrestrial said it isn't possible I guess the simple toggle functionality will have to do.

do something like:

$button(62,$sub(%_height%,18),0,0,0,0,/images\lib.png,/images\libH.png,POPUP:library.pp,)

which will create a new layout in the same directory as the main .pui. you can then just right click on the new window and change the code.


Great, thanks. Now, how do I change the window title?

foo_ui_panels

Reply #1140
When running foobar under wine/linux using panelsui, if the "settings" option is selected for the main panelsui configuration dialog, foobar does not open the dialog and instead becomes unresponsive to user input and the user must either sit and listen to music or kill the process.

I hesitate to bring this up because this is far from a typical setup however given the previous problems regarding unicode and scintilla triggered by this same event I was wondering if maybe we could have some sort of override so that panelsui can use a standard edit box instead.

 

foo_ui_panels

Reply #1141
Thanks, but don't want the pvar to be reset after every track. Only once when Foobar is loaded.  But since terrestrial said it isn't possible I guess the simple toggle functionality will have to do.


or, put the $setpvar in the // Background section of the main panels ui window. The // Background section is only run on startup / after you change something in the preferences or settings dialogs.

Quote
Great, thanks. Now, how do I change the window title?


you can't at the moment.

When running foobar under wine/linux using panelsui, if the "settings" option is selected for the main panelsui configuration dialog, foobar does not open the dialog and instead becomes unresponsive to user input and the user must either sit and listen to music or kill the process.

I hesitate to bring this up because this is far from a typical setup however given the previous problems regarding unicode and scintilla triggered by this same event I was wondering if maybe we could have some sort of override so that panelsui can use a standard edit box instead.


yeah, that's what I'll most likely do, since I still haven't had any luck on reproducing the bug

foo_ui_panels

Reply #1142
is it possible to setup a keyboard hotkey for buttons created in panelsui?


foo_ui_panels

Reply #1144
[quote name='carmenm' date='May 3 2007, 20:48' post='489843']
[quote name='terrestrial' post='489811' date='May 3 2007, 06:07']
[quote name='carmenm' post='488133' date='Apr 26 2007, 07:50']
Terrestrial: would it be possible to allow something like that in $eval() :
$eval(2+-4)
and make it $eval(2-4)

this is problem when you have a variable and you do  $eval(2+$get(toto))
if the variable equals -2. I would like to allow positive and negative values for toto but currently it is not possible

Thanks
[/quote]

maybe try $eval(2$get(toto)) and set toto to "+2" or "-2" as a temporary workaround...
[/quote]
Yes i can do that but the thing i forgot to say before is that i really would like to do something like $eval(2 -$get(toto)). Not possible yet but i can wait.


How about

$eval(2+$eval($get(toto)))

foo_ui_panels

Reply #1145
I've been using the same code for my SCP for awhile but with this release (11.1) my group display wont show up now!
I tried fofr's to see if it would work and I couldn't get the group display to show with his either.
Any ideas? Anyone?

foo_ui_panels

Reply #1146
I've been using the same code for my SCP for awhile but with this release (11.1) my group display wont show up now!
I tried fofr's to see if it would work and I couldn't get the group display to show with his either.
Any ideas? Anyone?



Yeah I just had to rebuild my Fb because something screwed up the CFG or my Columns UI and when I tried this latest Panels, it didn't want to work at all so don't know.

foo_ui_panels

Reply #1147
[quote name='Kiteroa' date='May 4 2007, 00:31' post='490000']
[quote name='carmenm' date='May 3 2007, 20:48' post='489843']
[quote name='terrestrial' post='489811' date='May 3 2007, 06:07']
[quote name='carmenm' post='488133' date='Apr 26 2007, 07:50']
Terrestrial: would it be possible to allow something like that in $eval() :
$eval(2+-4)
and make it $eval(2-4)

this is problem when you have a variable and you do  $eval(2+$get(toto))
if the variable equals -2. I would like to allow positive and negative values for toto but currently it is not possible

Thanks
[/quote]

maybe try $eval(2$get(toto)) and set toto to "+2" or "-2" as a temporary workaround...
[/quote]
Yes i can do that but the thing i forgot to say before is that i really would like to do something like $eval(2 -$get(toto)). Not possible yet but i can wait.


How about

$eval(2+$eval($get(toto)))
[/quote]

No this doesnt work if toto equals -3 for example. In fact toto is an offset for me and can be negative. Sometimes i have to do $eval(2 -$get(toto)), so no workaround currently

foo_ui_panels

Reply #1148
Feature request:
If I push button with POPUP:layout comand and this layout already popuped, then action of this pushing is close popuped layout.

In this way I can define very simpy main panel with buttons  to open/close
1. album art
2. trackinfo panel
3. single columns panel

and etc...

foo_ui_panels

Reply #1149
Hi Terrestrial and thanx for this new feature POPUP ... but ...

Same Feature request:
If I push button with POPUP:layout comand and this layout already popuped, then action of this pushing is close popuped layout...

Otherwise:

=> I have buggs with POPUP button

i explain: on my main layout, i've 3 buttons, each open a specific popup layout :
        POPUP1
        POPUP2
        POPUP3
when i open 1st or second popup, then close it, then close main layout (quit foobar), WHEN i restart foobar, i've a PVAR of my main layout which has changed !!???
I've not the pb when i launch POPUP3 then close it then close foobar and restart, the PVAR is always set to the value before closing foobar

overflow ??

thanx ...

EDIT:

after deleting my popup layouts and redone them, it's work now ... but don't understand what appen before with this pvar 

Still missing the possibility to close a popup panel !!!

Bye