A. register_autopopup="1"
Before we delve into the code, I want to go over one feature. Take a look at this
tag:
.
When you add this tag to a groupdef, Winamp automatically wraps a container and
layout around it and allow you to see the group in a separate window. This is
particularly useful when you want to test the behavior of that group separate from
everything else. To open that window, right click on the Main Player to bring up the
menu. Go to the "Windows" submenu and you'll see the extra windows relativepos.xml
has created. Open them up and try them out.
B. Defining X&Y Coordinates
Line 11-19 defines a group with a "blue-vis" layer at the coordinate of (20,30).
This is probably what you've been doing all along. As you can see, that the
blue-vis layer's location doesn't change if you resize the window. The position is
fixed.
*Small size window
*Large size window; Blue-vis layer position did not change
I encourage you to play with this XML file. If you change the X&Y coordinates on
line 14 to (-20, -30), your blue-vis layer will disappear. The reason is that the
coordinate specified will be outside the context of your component window and
therefore will not be rendered.
*Negative X&Y Coordinates: (-20, -30)
|
|