Help - Search - Members - Calendar
Full Version: Help With A Button Problem Please
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
Maranatha
Hopefully THIS post won't end up in the Trash Bin like the last one. I guess I didn't have the right title on it.

Well, here goes again.-----



I thought that I'd try my hand at designing a custom layout using Panels UI.

I've studied the Wiki page on Panels for about 2 days now, and I just cannot seem to do even the most basic of things, like putting a button on the screen... Bummer....

What I have done is to do a fresh install of foobar, with all the updated dlls and libs I have been using with my other installs of foobar.

I have the images directory within the PanelsUI directory in the installation folder, as is my new .pui .

So, I start the new install, choose PanelsUI, and start with the default.pui . I then made a New one, and started in on trying to design it.

I select Preferences - PanelsUI - Edit Layout and start entering my code.

I get as far as showing a background with a menu bar image at the top. But no matter what I seem to try, I cannot get a button to show up. The two default $button2 buttons are still at the bottom, but I just can't get my buttons to show up.

This is the code so far:

///////// Background/////////////
//color tint of the wallpaper
$drawrect(0,0,0,0,brushcolor-83-83-102 pencolor-NULL)
//wallpaper, partly transparent so it can be tinted
$imageabs2(,,0,0,,,,,/images\wallpaper.jpg,alpha-100-100-100)
//menu bar
$imageabs2(,,,,,,-5,-3,/images\menubar.png,)
//////////////////////


//////////PLAYBACK BUTTONS///////////
$button(10,100,0,0,24,24,/images\pause.png,,Pause,)
/////

The wallpaper shows up, and the menubar shows up, just can't get the durned button to show.

The button I'm trying to use is 24 X 24 .

Would someone be kind enough to tell me what is wrong with that code? I'm stumped.

Thanks, from someone who is trying very hard to learn and understand!
Maranatha
Well, for whatever reason, I got it to work finally.

I had to place the code under the code that was already there for the 2 $button2 buttons..

Now my button shows up just fine. I don't know why, but I will NOT give up, and I will learn as I go along.

Many thanks anyway!
macca
CODE
//////////PLAYBACK BUTTONS///////////
$button(10,100,0,0,24,24,/images\pause.png,,Pause,)
/////


You could change that to:

CODE
//////////PLAYBACK BUTTONS///////////
// PerTrack
$button(10,100,0,0,24,24,/images\pause.png,images\pause_hover.png,Pause,)
/////


..where 'images\pause_hover.png' is the image that will be displayed when you place your cursor over the button (this can be the same as the normal image if you want)

Try that, and If it doesn't work, then perhaps try writing in the full image locations, i.e:

C:\program files\foobar2000\images\pause.png

I hope that will work for you.
-mac

EDIT:
QUOTE(Maranatha @ Jun 7 2007, 15:14) *

Well, for whatever reason, I got it to work finally.

I had to place the code under the code that was already there for the 2 $button2 buttons..

Now my button shows up just fine. I don't know why, but I will NOT give up, and I will learn as I go along.

Many thanks anyway!


You beat me to it^^^

rolleyes.gif

Also in future posts, you should use the 'third party plugins' forum to discuss panels UI/columnUI related questions smile.gif

perhaps that is why your post was removed before?
macca
Press this button:

IPB Image

Wraps code tags around the text, like quotes do.
CODE
good look with your foobar by the way!!
Maranatha
QUOTE(macca @ Jun 7 2007, 10:21) *

Press this button:

IPB Image

Wraps code tags around the text, like quotes do.
CODE
good look with your foobar by the way!!



I see now. Thank you very much!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.