t = GetDisplayModes([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.
t = GetDisplayModes() For Local k = 0 To ListItems(t) - 1 DebugPrint("Mode", k + 1, "Width:", t[k].Width, "Height:", t[k].Height) NextThe code above queries the display mode database and then prints all available modes.