Old 15th January 2003, 18:28   #1
Wes_janson
Junior Member
 
Join Date: Jan 2003
Location: Los Angeles
Posts: 38
Send a message via ICQ to Wes_janson
2 questions about Layouts and MAKI

Greetings,

I have to questions concerning MAKI and XML Layouts:

1. Is it possible to have multiple layouts showing at once? For example, I want to be able to cycle through a set of layouts while having another layout (which is not being cycled) displayed the entire time. If possible, how would I do this?

2. Is it possible to place a group outside of a layout, but within a container? And if so, how would I call that group into a MAKI script? Would it be like this:

ButtonGroup = getContainer("main").getObject("mygroup");

Thanks for the assistance.

Jason
Wes_janson is offline   Reply With Quote
Old 15th January 2003, 19:02   #2
Gonzotek
Gunslinger
 
Gonzotek's Avatar
 
Join Date: May 2000
Location: Terminus
Posts: 4,694
1. Not within the same container. You could have multiple groups within the layout(which is really just a special type of group).

2. No. You can define a group before a container or inside a container, but not inside a layout. You can only instantiate it in a group(and through inheritance, a layout).

-=Gonzotek=-

I was away for a while.
But I'm feeling much better now.
Gonzotek is offline   Reply With Quote
Old 16th January 2003, 02:58   #3
Wes_janson
Junior Member
 
Join Date: Jan 2003
Location: Los Angeles
Posts: 38
Send a message via ICQ to Wes_janson
I do not mean defining a group in a container and outside a layout, I mean inserting the group (<group id=...). Can that be done? And if so, would the MAKI line above import it?

Jason
Wes_janson is offline   Reply With Quote
Old 16th January 2003, 03:28   #4
Hollow
Major Dude
 
Hollow's Avatar
 
Join Date: Oct 2001
Location: Baker Lab, Ithaca NY
Posts: 1,128
Send a message via AIM to Hollow
Quote:
Originally posted by Wes_janson
I do not mean defining a group in a container and outside a layout, I mean inserting the group (<group id=...). Can that be done? And if so, would the MAKI line above import it?

Jason
Yes, you can insert the group into a layout. <group id=.., just like you said. That maki line wouldn't work. You have to have the group either be the layout in a container, or be inserted in to a layout. none of the getObject functions can get something that is still just a defination for an object, like an uninstancated group. (A group can only be created in the container it was defined in, unless its not defined in a container (right?)). If you want to dynamically create an instance of a group, its
code:
Group DynGrp = new Group;
DynGrp.setXmlParam("id","theNameOfTheGroup");
DynGrp.setXmlParam("x", "XCOORD");
etc...
DynGrp.init(OBJECTPARENT)


That same method can be used to dynamically create any type of object.

If none of that answers your question, can you restate it maybe.
Hollow is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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