Please enable JavaScript to view this site.

thinBasic Help Manual

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

Description

 

Returns resolution of given monitor.

 

Syntax

 

resolutionString = System.Monitor(index).Resolution

 

Returns

 

String, in format x,y,width,height

 

Parameters

 

Name

Type

Optional

Meaning

index

Numeric

No

The index is 1 based, number in range 1 - System.Monitor.Count.

 

Remarks

 

You can reach for numeric values of width and height directly via .Width and .Height.

 

Restrictions

 

Read only.

 

See also

 

Examples

 

uses "Console" 

 

printl "Number of monitors:", System.Monitor.Count

printl "Primary monitors  :", System.Monitor.Primary 

 

long i

for i = 1 to System.Monitor.Count

  printl "Monitor #" + i in 15

  printl "Is primary?: " iif$(System.Monitor(i).IsPrimary"YES!""No")

  printl "Resolution:  " System.Monitor(i).Resolution  ' Usable area for full-screen app

  printl "Width:       " System.Monitor(i).Width       ' Horizontal resolution

  printl "Height:      " System.Monitor(i).Height      ' Vertical resolution

  printl "Work area:   " System.Monitor(i).WorkArea    ' Usable area for app windows

  printl 

next

 

waitKey

 

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software