MultiDisplayInfo

Description:

baMultiDisplayInfo returns information about the screens.

Platforms:

Windows and macintosh

Usage:

Result = baMultiDisplayInfo( Monitor, InfoType )

Arguments:

String, string.
Monitor is the monitor to get the information of; eg "\\.\DISPLAY1". You can also use "primary" to get the primary display, or "secondary" to get the secondary display.
InfoType is the type of information to get. Can be:

"height" 

the height of the screen in pixels

"width" 

the width of the screen in pixels

"depth" 

the colour depth of the screen in bits

"refresh" 

the current refresh frequency of the display adaptor

"xpos" 

the x position of the monitor in relation to the primary monitor
"ypos"  the y position of the monitor in relation to the primary monitor

"number" 

the number of monitors in the system. The Monitor is ignored

"primary" 

the name of the primary display. The Monitor is ignored

"secondary" 

the name of the secondary display. The Monitor is ignored

"card" 

the name of the card powering the monitor. Windows only

"modes" 

returns a list of all the modes the monitor supports

Returns:

String.
Returns the information requested, or an empty string if unsuccessful.

Examples:

Director:
ScrHgt = baMultiDisplayInfo( "primary", "height" )

Authorware:
monitors := baMultiDisplayInfo( "", "number" )
 

Notes:

On Macintosh, not all screens support user selected refresh rates. In these cases, a refresh rate of 0 is returned.

On Macintosh, displays are identified by a number, eg "6204534".

 

See also:

baSetMultiDisplay
baMultiDisplayList
baSetDisplay
baSetDisplayEx