include("scripts/Window/Window.js"); function ZDMWindow(guiAction) { Window.call(this, guiAction); } ZDMWindow.prototype = new Window(); ZDMWindow.prototype.beginEvent = function() { Window.prototype.beginEvent.call(this); var mdiArea = EAction.getMdiArea(); var mdiChildren = mdiArea.subWindowList(); mdiChildren[0].showMaximized(); mdiArea.setActiveSubWindow(mdiChildren[0]); };