Do something like this:
PHP Code:
//#CLIENTSIDE
function onCreated() {
// Create a new window and set attributes
new GuiWindowCtrl("MyWindow") {
// Use the default skin
style = $pref::Video::defaultguistyle;
// Set the size of the window
clientrelative = true;
clientextent = {320, 200};
// Set the position
x = 120;
y = 80;
// Set the title of the window
text = "Hello Window";
}
}
function onDefaultStyleChanges() {
MyWindow.style = $pref::Video::defaultguistyle;
}