ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / System functions
  • Finding out the characteristics of the resolution
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 information on the error.
<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
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.

Remark: 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.
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
- ...
Business / UI classification: Business Logic
Component: wd290std.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help