You are not logged in.
Pages: 1
Hello, I would like to know what programs support the viewing window ?
Functions who manage minimize, maximize and close button ?
Offline
Events of the minimize (2916), maximize (2839) and close (2559) buttons are caught (client-side) in the file system_xxxxxxxxxx/extern/libs/eyeWidgets/BaseWidgets.js at the lines in brackets.
From there some messages are send to the corresponding application at the server-side.
Best regards,
Lars Knickrehm
The oneye project.
Offline
I would run a function when the window moves
Windows.Snaps(id);
here is the function Snaps
Snaps: function (id) {
if (xTop(id)==0) {
Windows.Maximize(id);
}
},
Offline
I finished the snap.
But I have a problem, the maximize button is disabled, why?
Here is my function for example Click to enlarge the window to the right
MaximizeRight: function (id) {
var e, height, width;
e = document.getElementById(id);
if (e && !Windows.List[id].noResize) {
if (Windows.List[id].maximized === 2) {
height = Windows.List[id].height;
Windows.SetHeight(id, height, 1);
width = Windows.List[id].width;
Windows.SetWidth(id, width, 1);
Windows.SetX(id, Windows.List[id].x);
Windows.SetY(id, Windows.List[id].y);
Windows.List[id].maximized = 0;
} else {
if (!Windows.List[id].maximized) {
Windows.List[id].height = xHeight(id);
Windows.List[id].width = xWidth(id);
Windows.List[id].x = xLeft(id);
Windows.List[id].y = xTop(id);
}
height = xHeight(e.parentNode);
Windows.SetHeight(id, height, 2);
width = xWidth(e.parentNode)/2;
Windows.SetWidth(id, width, 2);
Windows.SetX(id, width, 1);
Windows.SetY(id, 0, 1);
Windows.List[id].maximized = 2;
}
if (Windows.List[id].resizeMessage !== undefined) {
sendMsg(Windows.List[id].checknum, Windows.List[id].resizeMessage, eyeParam('arg', width) + eyeParam('arg', height));
}
sendMsg(Windows.List[id].xChecknum, 'saveWinMax', eyeParam('maximized', Windows.List[id].maximized) + eyeParam('winName', id) + eyeParam('appChecknum', Windows.List[id].checknum));
}
},
I want that when you click on the maximize button, the window becomes larger
Offline
Pages: 1