May 27, 2012, 1:06 PM
Maximize window when create in destop
i want to create dynamic window in desktop and maximize it by js but i don't no how to do that.
I try with param "isMaximize" = true but it's not working. Please help me.
I try with param "isMaximize" = true but it's not working. Please help me.
windows = desk.createWindow({
id: WindowID,
title: title,
width: iWidth,
height: iHeight,
pageX: 10,
pageY: 10,
isMaximize: isMaximize,
showInTaskbar: isShowInTaskbar,
maximizable: true,
minimizable: true,
closeAction: 'close',
tools: [{
id: 'help',
qtip: 'Get Help',
handler: function (event, toolEl, panel) {
var strScript = 'window.frames.' + panel.iframe.id;
var objFrame = eval(strScript);
if (typeof (objFrame.gotoHelp) != 'undefined')
objFrame.gotoHelp();
}
},
{
id: 'refresh',
qtip: 'Refresh',
handler: function (event, toolEl, panel) {
refreshWinDow(event, toolEl, panel);
}
}],
listeners: {
close: function () {
this.destroy();
},
beforeclose: function () {
BeforCloseWindow(this);
},
activate: function () {
Activate(this.id);
}
},
autoLoad: {
url: url,
mode: "iframe",
showMask: true,
maskMsg: "Loading...."
}
});