Fork me on GitHub

Announcement

The oneye project has been discontinued. You might not expect further fixes and support from us. All community related systems are set to read-only mode. Though feel free to download and use oneye as-is or even fork it over at GitHub.

#1 2014-10-05 17:09:11

sazearte
Member
From: France
Registered: 2013-10-23
Posts: 234

What process manages windows?

Hello, I would like to know what programs support the viewing window ?

Functions who manage minimize, maximize and close button ?

Offline

#2 2014-10-05 22:14:38

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: What process manages windows?

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

#3 2014-10-07 19:09:26

sazearte
Member
From: France
Registered: 2013-10-23
Posts: 234

Re: What process manages windows?

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

#4 2014-10-07 23:12:04

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: What process manages windows?

You'll need to modify the MoveBefore, MoveEvent and MoveAfter functions wink


Best regards,
Lars Knickrehm

The oneye project.

Offline

#5 2014-10-08 09:42:15

sazearte
Member
From: France
Registered: 2013-10-23
Posts: 234

Re: What process manages windows?

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

Board footer

Powered by FluxBB