PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • 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 the computer must be restarted to take the change of resolution into account,
  • 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
- ...
Components
WINDEVReports and Queries wd230std.dll
Linux wd230std.so
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment