var myWindow = new pergola.Window();
myWindow.build({});
hasCommands, hasToolBar and hasZoomAndPan let you override this behavior. Other properties let you control geometry, position, state and appearance. The property type let's you define a mapping window.
Using the theme "nürburgring" with skin "rubber", as set in the config file.
var window1 = new pergola.Window("");
window1.build({
x : 60,
y : 60,
width : 600,
height : 400,
fill : "#FFFFF4",
hasToolBar : false,
hasZoomAndPan : false,
});
var window2 = new pergola.Window("Ellipsis");
window2.build({
x : 80,
y : 80,
width : 640,
height : 480,
contains : ellipses.dum(),
menu : {
menu1 : {
...
},
menu2 : {
...
}
}
});