Go Back   Winamp Forums > Skinning and Design > Modern Skins

Reply
Thread Tools Search this Thread Display Modes
Old 24th May 2003, 16:02   #1
blast7
Member
 
Join Date: May 2003
Location: Sacramento, Ca
Posts: 68
Opening, closing the Media Library from a Maki script?

Yep, I'm gonna throw another one at you guys. This time I'm just trying to get a reference to the Media Library in my script so I can close/open/resize the window.

Since there is no XML file for the ML I dug around in the Wacs folder and found where all the media library's groupdefs are defined. However, no container was defined at that level. (So I don't know the ID to use in System.getContainer())

So I tried the following in a new XML file in my skins folder:


<container id="ml" name="Media Library" component="guid:{6B0EDF80-C9A5-11D3-9F26-00C04F39FFC6}" default_x="0" default_y="186" default_visible="1">
<layout id="normal">
</layout>
</container>

So that I would have an ID to use in System.getContainer(). Well, that didn't work.

Anyone have any ideas?

Tom
blast7 is offline   Reply With Quote
Old 24th May 2003, 16:13   #2
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
You can toggle the ML with a simple action and xml togglebutton.
action="toggle" param="guid:ml"
Hope it helps
BTW if you NEED to toggle it in maki, just get maki to .leftClick() the togglebutton if it is activated. Like this:-

code:

if (togglebuttonML.getActivated() == true){
togglebuttonML.leftClick();
}

hammerhead is offline   Reply With Quote
Old 24th May 2003, 16:21   #3
mc^^^^
Forum King
 
mc^^^^'s Avatar
 
Join Date: Aug 2001
Location: Perth, Australia MSN: mcbriar@ii.net Posts: All your posts are belong to me!!!!
Posts: 2,607
or you could use

code:

togglebuttonML.setActivated(!togglebuttonML.getActivated);



i think that would work in showing it if it's hidden, or hiding it if it's closed, two birds, one stone

mc^^^^ is offline   Reply With Quote
Old 24th May 2003, 16:34   #4
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
Quote:
Originally posted by mc^^^^
or you could use

code:

togglebuttonML.setActivated(!togglebuttonML.getActivated);



i think that would work in showing it if it's hidden, or hiding it if it's closed, two birds, one stone
My line of code means you can choose which one, on or off, since setActivated doesn't always work for me.
A simplified version of your code:-
code:

togglebuttonML.leftClick();

hammerhead is offline   Reply With Quote
Old 24th May 2003, 16:36   #5
blast7
Member
 
Join Date: May 2003
Location: Sacramento, Ca
Posts: 68
Thanks guys!! I was able to get hammerhead's suggestion to work.... but not mc's......

Any ideas on how I can resize the ML?

Tom
blast7 is offline   Reply With Quote
Old 24th May 2003, 16:46   #6
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
Hmm.. no, sorry
hammerhead is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump