PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Finding out the characteristics of the resolution
  • Limit
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
SysChangeScreenResolution (Function)
In french: SysChangeRésolutionEcran
Modifies the resolution of a screen.
Example
IF SysChangeScreenResolution(640, 480, 8, 60) = True THEN
Info("Restart your computer in order to apply the new configuration")
END
Syntax
<Result> = SysChangeScreenResolution(<Resolution in width> , <Resolution in height> , <Number of bits per pixel> , <Refresh rate> [, <Screen name>])
<Result>: Boolean
  • True if it is necessary to restart the computer to take into account the change of resolution,
  • False otherwise. ErrorInfo returns more details about the problem.
<Resolution in width>: Integer
New resolution in width (in pixels).
<Resolution in height>: Integer
New resolution in height (in pixels).
<Number of bits per pixel>: Integer
New number of bits per pixel.
<Refresh rate>: Integer
New refresh rate (in Hertz).
<Screen name>: Optional character string (with quotes)
Name of the screen to modify. If this parameter is not specified, the resolution of the main screen will be modified. If the name of the screen does not exist, <Result> is set to False.

Note: The list of screen names is returned by SysListScreen.
Remarks

Finding out the characteristics of the resolution

To find out the current resolution of the screen, use SysScreenResolution.
To find out the list of possible resolutions for a screen, use SysListScreenResolution.

Limit

This function cannot be used in Windows NT4.
Related Examples:
The system functions (screens) Unit examples (WINDEV): The system functions (screens)
[ + ] Using the SysXxx functions on the screens in order to get various information:
- Retrieve the number of screens installed on the computer
- Retrieve the graphic cards installed on the computer
- Change the resolution of a screen
- ...
Component : wd240std.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment