|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
|
The Shark
(Forum King) |
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: |
|
|
|
|
|
#3 |
|
Forum King
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: i think that would work in showing it if it's hidden, or hiding it if it's closed, two birds, one stone
![]() |
|
|
|
|
|
#4 | |
|
The Shark
(Forum King) |
Quote:
A simplified version of your code:- code: |
|
|
|
|
|
|
#5 |
|
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 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|