The process of creating the Windows component implies the creation of two objects:
var myWins = new dhtmlXWindows(skin);
myWins.createWindow(id, left, top, width, height);
where
skin - (string) changes window's skin (setSkin())
id - id of a window
The full list of initialization properties for the createWindow method is given below.
var myWins = new dhtmlXWindows()
myWins.createWindow("about", 20, 30, 300, 200);
Windows can also be initialized by object notation
var myWins = new dhtmlXWindows({
image_path:"codebase/imgs/",
skin:"dhx_blue"
});
myWins.createWindow({
id:"about",
left:20,
top:30,
width:300,
height:200,
center:true,
onClose:function(){
alert("I'm closed");
}
});