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: Track Info Panel with ability to change font (Read 729414 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Track Info Panel with ability to change font

Reply #550
hi. I wanted to ask if there is a way to lock the panel mode.. I mean, keep it always in "now playing mode", not allowing it to change when you double click on it

I ask this cause I have made some playback buttons. The pause button switches to play when it is paused, and viceversa. So I've had to use something like: $if(%isplaying%, , ) but when I double click to turn volume up with another button I have on the panel, the mode switches, and the play/pause button does not display as it should. I hope I made myself clear.

If it's not possible consider it as a feature request 
thanks in advance

sune

Track Info Panel with ability to change font

Reply #551
Weird, I'm still not getting that error. Make sure you're using the latest version of the component -- 0.7 beta [Oct 24 2006 - 18:45:32]

I did have an older version. After updating, I no longer get the error message but I dont' get a properties button either. All the code prior to the button works and if I create a new panel and just add

Code: [Select]
$button2(0,0,0,0,$calcwidth(Properties),13,'$font(tahoma,8,,0-0-0)Properties','$font(tahoma,8,underline,0-0-0)Properties', properties,))

I still get nothing. 

Also, adding $padding(4,0) still blanks the entire panel.

Track Info Panel with ability to change font

Reply #552
I don't know what to say because I copied and pasted that exact piece of code into a fresh panel and it works for me. All I can think of is you possibly made your background colour black so you cannot see the buttons black font?

Track Info Panel with ability to change font

Reply #553
Is it possible to implement base64 decoding in some way? That way there's no need to meddle around with image files. Instead you just use base64 hash. That way it would be easier for people to post scripts without the need to provide the image files.

Track Info Panel with ability to change font

Reply #554
I don't know what to say because I copied and pasted that exact piece of code into a fresh panel and it works for me. All I can think of is you possibly made your background colour black so you cannot see the buttons black font?

Well I thought that too since I am using a black background for the full code but I don't see anything with just the button code on a white background either. This is quite frustrating. Do you have a simple config you can post that I could test? It seems pointless sense this one line of could works for you but...

Track Info Panel with ability to change font

Reply #555
As a test, I uninstalled F2K.8 from the only machine I had not upgraded and did a clean F2K.9 install, only adding Columns UI 0.1.3 beta 1v6 and Track Info Panel Mod 0.7.1 beta. I still don't have a button with

Code: [Select]
$button2(0,0,0,0,$calcwidth(Properties),13,'$font(tahoma,8,,255-0-0)Properties','$font(tahoma,8,underline,255-0-0)Properties', properties,))

and with

Code: [Select]
$padding(4,0)
$button2(0,0,0,0,$calcwidth(Properties),13,'$font(tahoma,8,,255-0-0)Properties','$font(tahoma,8,underline,255-0-0)Properties', properties,))

I get an [UNKNOWN FUNCTION] message again.

 

Track Info Panel with ability to change font

Reply #556
As a test, I uninstalled F2K.8 from the only machine I had not upgraded and did a clean F2K.9 install, only adding Columns UI 0.1.3 beta 1v6 and Track Info Panel Mod 0.7.1 beta. I still don't have a button with

Code: [Select]
$button2(0,0,0,0,$calcwidth(Properties),13,'$font(tahoma,8,,255-0-0)Properties','$font(tahoma,8,underline,255-0-0)Properties', properties,))

and with

Code: [Select]
$padding(4,0)
$button2(0,0,0,0,$calcwidth(Properties),13,'$font(tahoma,8,,255-0-0)Properties','$font(tahoma,8,underline,255-0-0)Properties', properties,))

I get an [UNKNOWN FUNCTION] message again.


Do you have

Requires:

MS Visual C++ 2005 Runtime Library
GDI+ - only needed for Windows 2000

Links to above in the first post.

Track Info Panel with ability to change font

Reply #557
Would it be possible to add a boolean value to $imageabs2() to reflect if an image exists?  The current function appears to return a boolean of TRUE no matter what I throw at it. This would be useful so that we could do things like:

$if2($imageabs2(code for cover image),$imageabs2(code for no-cover image))

instead of the current layering approach which has some limitations and wastes resources.

Track Info Panel with ability to change font

Reply #558
yes I second that, I also want wild card value possible ie so I could do Folder.* and have it display any gfx type..

Track Info Panel with ability to change font

Reply #559
Code: [Select]
$padding(4,0)
$button2(0,0,0,0,$calcwidth(Properties),13,'$font(tahoma,8,,255-0-0)Properties','$font(tahoma,8,underline,255-0-0)Properties', properties,))

I get an [UNKNOWN FUNCTION] message again.

You have one too many ")" at the end.

Track Info Panel with ability to change font

Reply #560
Do you have

Requires:

MS Visual C++ 2005 Runtime Library
GDI+ - only needed for Windows 2000

Links to above in the first post.

Yes. Otherwise it wouldn't work at all.

Track Info Panel with ability to change font

Reply #561

Code: [Select]
$padding(4,0)
$button2(0,0,0,0,$calcwidth(Properties),13,'$font(tahoma,8,,255-0-0)Properties','$font(tahoma,8,underline,255-0-0)Properties', properties,))

I get an [UNKNOWN FUNCTION] message again.

You have one too many ")" at the end.

Good catch but still doesn't work. 

I just tried the pause button example in the wiki and it displays but nothing happens when I click it. Just substituting properties for pause seems to break something.

Also, still can't get padding to work at all. After removing the extra closing parens, I at least don't get an error and the screen doesnt' go blank but nothing happens either. Could someone document this command in the wiki please? The only reference to it is under drawing a rectangle.

Track Info Panel with ability to change font

Reply #562
So I played a bit more and noticed a few oddities.

Code: [Select]
$button2(0,0,0,0,$calcwidth("Properties"),$calcheight("Properties"),'$font(tahoma,8,,0-0-0)Properties','$font(tahoma,8,underline,0-0-0)Properties', properties,)

&

Code: [Select]
$button2(0,0,0,0,$calcwidth("Properties"),$calcheight(Properties),'$font(tahoma,8,,0-0-0)Properties','$font(tahoma,8,underline,0-0-0)Properties', properties,)

Will display correctly but the button doesn't work.

While

Code: [Select]
$button2(0,0,0,0,$calcwidth(Properties),$calcheight(Properties),'$font(tahoma,8,,0-0-0)Properties','$font(tahoma,8,underline,0-0-0)Properties', properties,)

&

Code: [Select]
$button2(0,0,0,0,$calcwidth("Properties"),$calcheight("Properties"),'$font(tahoma,10,,0-0-0)Properties','$font(tahoma,10,underline,0-0-0)Properties', properties,)

Will not display at all.

The slightest change in values seems to break buttons.

Track Info Panel with ability to change font

Reply #563
hi. I wanted to ask if there is a way to lock the panel mode.. I mean, keep it always in "now playing mode", not allowing it to change when you double click on it

I ask this cause I have made some playback buttons. The pause button switches to play when it is paused, and viceversa. So I've had to use something like: $if(%isplaying%, , ) but when I double click to turn volume up with another button I have on the panel, the mode switches, and the play/pause button does not display as it should. I hope I made myself clear.

If it's not possible consider it as a feature request 
thanks in advance

sune


yeah, I don't like the double-click to change mode either... I will change it to a context menu option in the next version.


Would it be possible to add a boolean value to $imageabs2() to reflect if an image exists?  The current function appears to return a boolean of TRUE no matter what I throw at it. This would be useful so that we could do things like:

$if2($imageabs2(code for cover image),$imageabs2(code for no-cover image))

instead of the current layering approach which has some limitations and wastes resources.


I'll add a $fileexists or something similar (as well as wildcard support).

So I played a bit more and noticed a few oddities.


I'm guessing the font you have chosen in the "Font" section isn't tahoma 8.

Try this:

Code: [Select]
$calcwidth(Properties)|
$font(tahoma,8,,0-0-0)$calcwidth(Properties)


which should illustrate the problem.

also the command should match exactly with the menu item, so remove the space before properties.

this should work

Code: [Select]
$button2(0,0,0,0,$calcwidth($font(tahoma,10,,0-0-0)Properties),$calcheight($font(tahoma,10,,0-0-0)Properties),'$font(tahoma,10,,0-0-0)Properties','$font(tahoma,10,underline,0-0-0)Properties',Properties,)

or
Code: [Select]
$font(tahoma,10,,0-0-0)
$button2(0,0,0,0,$calcwidth(Properties),$calcheight(Properties),'$font(tahoma,10,,0-0-0)Properties','$font(tahoma,10,underline,0-0-0)Properties',Properties,)

Track Info Panel with ability to change font

Reply #564
I'm guessing the font you have chosen in the "Font" section isn't tahoma 8.

Yes. I see the problem.

also the command should match exactly with the menu item, so remove the space before properties.

Looks like the problem was in the example on the wiki but Metal termite has corrected it already (Thanks!).

I'm still not sure how to use $padding(x,x) though. I tried adding it to the first example you gave and it works fine but it still doesn't work with the properties example.

Track Info Panel with ability to change font

Reply #565
Is a clickable progress bar possible? I'd love this

Track Info Panel with ability to change font

Reply #566
a clickable progress bar wouldnt be too hard using buttons but the actual event of skipping to position x is the hangup. do you know of any way to tell foobar to jump to a given time index?


Track Info Panel with ability to change font

Reply #568
A nice feature would be the ability to use Ctrl - A to select all the code in the formatting strong part of the config window


I am also having some problems with the WMP11 layout. Buttons just don't work at all. I cleared the very bottom trackinfo_mod panel and just used some basic button code and it still not liking me.

Code: [Select]
$button2(489,11,0,0,48,48,$imageabs(489,11,images\play.png,),$imageabs(489,11,images\play_h.png,),Playpause,)


The image appears but it is the hover image not the normal one and the button is unclickable.

foo_run is setup correctly to work with Playpause. I also tried it with Play or Pause. No luck though.


WMP11 thread is here for details on the code and layouts

Track Info Panel with ability to change font

Reply #569

hi. I wanted to ask if there is a way to lock the panel mode.. I mean, keep it always in "now playing mode", not allowing it to change when you double click on it
"........"
sune

yeah, I don't like the double-click to change mode either... I will change it to a context menu option in the next version.

Hi
I agree that the double-click system is annoying now that we have the possibility to insert buttons and an option  to choose the mode we want would be better.
But also i find it a bit frustrating to have to choose between a panel that will only display 'now playing' infos or only 'follow cursor' infos. Of course we can set up 1 panel for each mode. But wouldn't it be better if we could display both at the same time in just one panel ? With 2 functions maybe ?
An exemple would maybe explain better what i would like:
Code: [Select]
$nowplaying(...Some code that would take its infos from the now playing file...)

$followcursor(...Some code that would take its infos from the file selected by the cursor...)

Thanks

Track Info Panel with ability to change font

Reply #570
hello
i love the plugin!!!! 
in fact i have two panels displayed as described by the above poster.
my question though is this:
on my "follow cursor" panel i can't seem to make it completely blank out.
even when i clear the playlist the panel will not empty.
the info for the last track i had selected is still displayed in the panel.
am i doing something wrong or is this normal ?
and is there a way to make it be blank when there is nothing in my playlist ?
i hope i am making sense

-pete

Track Info Panel with ability to change font

Reply #571
Is there a way to have buttons set up to open up say the lyrics panel.  Either as a new panel say using the floating panel plug in (dockable or whatever it is) or better yet as a new splitter.

I already have a splitter on auto hide containing the lyrics panel, but would prefer it if i could have a button for the playlist and one for the lyrics and click to alternate between.

What im trying to say is replace foo_uie_tabs with buttons is it possible?

Track Info Panel with ability to change font

Reply #572
Is there a way to have buttons set up to open up say the lyrics panel.  Either as a new panel say using the floating panel plug in (dockable or whatever it is) or better yet as a new splitter.

I already have a splitter on auto hide containing the lyrics panel, but would prefer it if i could have a button for the playlist and one for the lyrics and click to alternate between.

What im trying to say is replace foo_uie_tabs with buttons is it possible?

There is a modification of foo_uie_tabs in which you can access it's commands via context menu=via buttons too.
Favourite artist:CD-R
Favourite album:700MB

Track Info Panel with ability to change font

Reply #573

Is there a way to have buttons set up to open up say the lyrics panel.  Either as a new panel say using the floating panel plug in (dockable or whatever it is) or better yet as a new splitter.

I already have a splitter on auto hide containing the lyrics panel, but would prefer it if i could have a button for the playlist and one for the lyrics and click to alternate between.

What im trying to say is replace foo_uie_tabs with buttons is it possible?

There is a modification of foo_uie_tabs in which you can access it's commands via context menu=via buttons too.



Do you have any links on how to do it or where i can download the mod? would i need to use foo_run?

Track Info Panel with ability to change font

Reply #574
Download
It acts exactly like the the usual foo_uie_tabs,but adds a few commands that you can assign to buttons.
Favourite artist:CD-R
Favourite album:700MB