home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 January
/
01_03.iso
/
service
/
winamp3
/
files
/
winamp3_0-full.exe
/
Skins
/
Default.wal
/
scripts
/
center.m
next >
Wrap
Text File
|
2002-07-03
|
345b
|
17 lines
#include <lib/std.mi>
Global GuiObject obj;
Global Group parentGroup;
System.onScriptLoaded() {
parentGroup = getScriptGroup();
obj = parentGroup.getObject(getParam());
}
parentGroup.onResize(int x, int y, int w, int h) {
int _w = obj.getWidth();
int _h = obj.getHeight();
obj.resize((w-_w)/2, (h-_h)/2, _w, _h);
}