MacTrove  — Classic Macintosh Archive
 
 Home Software Hardware Docs Magazines Forums Search
Search:   Software, forums, magazines & more

Get Monitors Xfcn 1.5

File get-monitors-xfcn-15.hqx
Size 10.1 KB
Version 1.5
Category Development
↓ Download get-monitors-xfcn-15.hqx

Enjoying MacTrove? Anonymous downloads are free and unlimited. Create a free account to track favorites, contribute corrections, and join the community chat.

About

GetMonitors takes no parameters. It returns the following info: MonitorNumber, IsMainScreen, HasColor, BitDepth, BottomCoordinate, RightCoordinate MonitorNumber tells the order that the monitor's card was encountered, IsMainScreen is true if the screen has the menubar, HasColor is true if the monitor is set to a color mode (not grays or Black & White), BitDepth is the current setting for that monitor, BottomCoordinate is the bottom pixel on that screen, RightCoordinate is the rightmost pixel on that screen. Here's what I had when I wrote it: 1,false,false,4,480,1280 2,true,true,8,480,640 Since the monitors sit next to each other, and the one on the right has the menubar it is considered the main screen, so it's topleft is considered the Origin, or 0,0 so it's RightCoordinate is 640, and it's BottomCoordinate is 480. The monitor next to it runs off of the built in video card, so it loads first, but it's RightCoordinate is 1280, which is 640 from the first monitor, plus 640 which is its width, and it's BottomCoordinate is 480, the same as the main screen. This is controlled by how you move the screens around in the Monitors control panel. Click on and/or examine the script of the button above to see how it works!

MacTrove — Classic Macintosh Archive — Full site | Software | Search
Classic version — compatible with older browsers.