Name
GetDisplayModes -- return available display modes (V5.0)
Synopsis
t = GetDisplayModes([monitor])
Function
This function can be used to find out all display modes supported by the specified monitor. GetDisplayModes() will then store all supported modes in a table and return it to you. The table returned by this function is a collection of a number of sub-tables that all have Width and Height elements initialized.

This function is useful for finding out if a specific display mode is actually supported by this system before trying to switch to this mode using the ChangeDisplayMode() command.

Inputs
monitor
optional: monitor whose display modes shall be queried (defaults to 1 which means query the primary monitor) (V6.0)
Results
t
a collection of all available display modes
Example
t = GetDisplayModes()
For Local k = 0 To ListItems(t) - 1
   DebugPrint("Mode", k + 1, "Width:", t[k].Width, "Height:", t[k].Height)
Next
The code above queries the display mode database and then prints all available modes.

Show TOC