WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 DHTML Menu 4.1 on multiple monitors, tED, June 20, 2002
     Re:DHTML Menu 4.1 on multiple monitors, Erik Arvidsson, June 28, 2002
         Re:DHTML Menu 4.1 on multiple monitors, Ed Schiebel, July 2, 2002
             Re:DHTML Menu 4.1 on multiple monitors, Erik Arvidsson, July 4, 2002

Subject: Re:DHTML Menu 4.1 on multiple monitors From: Erik Arvidsson Date: July 4, 2002

This is not true for NT5.1 using NVidia and multiple monitors. Neither is this teh way it is supposed to be according to the documentation at MSDN. Still your code should not break non matrox users since the test cases will never be true. I'll add this the next time I update the js file.

erik

From: Ed Schiebel
Sent: July 2, 2002
Subject: Re:DHTML Menu 4.1 on multiple monitors

The problem is in MenuItem.positionSubMenu.

In W2k, multiple monitors are treated as distinct entities.  As a result, screen.width and screen.height report the size of the monitor that the page is being displayed on, not the size of the entire array.  What gets us in trouble, is that mouse clicks and other screen coordinates are reported relative to the whole array of monitors.  If a mouse click is in the second monitor, its left is reported as, say1300, while screen.width is 1280.

I fixed this bug by adding this code to positionSubMenu, just after initializing var rect

// handle multiple monitors

// assumes all monitors are same resolution

var screenx_width = screen.width;

while(rect.left > screenx_width)

screenx_width += screen.width;

var screenx_height = screen.height;

while(rect.top > screenx_height)

screenx_height += screen.height;

I then replaced all references to screen.width and screen.height with screenx_width and screenx_height. 

If all your monitors are the same resolution (not required by Win2K), then this works like a charm. 

--ed

From: Erik Arvidsson
Sent: June 28, 2002
Subject: Re:DHTML Menu 4.1 on multiple monitors

This works fine with Nvidia NView so I guess it is the way the Matrox drivers treat popup windows.

erik

From: tED
Sent: June 20, 2002
Subject: Re:DHTML Menu 4.1 on multiple monitors

Hi,

while DHTML Menu 3 works on multiple monitors, DHTML Menu 4.1 opens its menu's on the edge of monitor one (while using monitor 2).

i'm using winXP / IE 6.0 english (with all updates) on a Matrox G400 Max

tED







Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX