What is a Group?

A group is a set of objects that can be referred to and manipulated as a whole. First must defined by a <groupdef> tag, then located with a <group> tag. Group is an important concept to understand because a group is such a versatile object.

Simple Tutorial: Using groups

Let's go back to our "Simple Tutorial" example. As you recall, we have two groups defined: "player.normal.playbuttons" and "play.normal".



Let's take a look at the code: (player.xml)



If we change line 113 and 114: change the x and y coordinates of the group objects, their positions are reversed. This is a simple change and much more convinient than changing the position of each element independently.




Simple Tutorial: Playback Buttons Group Definition





On lines 19-64 you'll see our group definition of the playback buttons. This section contains only the definition of the group or, in another words, it defines which objects are in the group. Once the group is defined, you can use it later as we will see later. Let's go over the elements inside the group.



Simple Tutorial: Song File Info & Visualization Group Definition



SongInfo group is another group definition just like the Playback Buttons group. As you can see that the elements defined inside this group is different from the previous one. In this example, we're using elements other than buttons. We're using the layer to set the background color of two areas. A layer is basically an image. Layers can overlay on top of each other. It is similar to a layer in Adobe Photoshop. "Songinfo" and "infoline" are text objects displaying information stored within Winamp3 runtime variables.

X
Impressum

Nullsoft, Inc.
22000 AOL Way, Dulles VA 20166
USA
vertreten durch Julie Jacobs und Donald R. Neff

Eingetragen im Company Register von Arizona, USA unter der Nr. 0829063-0

Umsatzsteuer ID: DE251307807

Kontakt: aolmedien@aol.com

Telefon: +1 703 265-0094

Telefax: +1 703 466-9170

AOL Music

Download Winamp, The #1 Free Media Player. Play your MP3, AAC, MPEG, AVI files, and more. Get free MP3 songs, videos, skins and plug-ins. Synch your iPod or Creative Zen, and get mobile music with Winamp Remote.

Copyright © 1999 - 2008 Nullsoft. All Rights Reserved.