AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de Windows / Funciones del sistema
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
SysScreenResolution (Function)
In french: SysRésolutionEcran
Returns the resolution of a screen.
Example
// Display the resolution of the main screen
ResString is string
ResString = SysScreenResolution()
Trace("Width resolution = " + ExtractString(ResString, 1) + CR + ...
"Height resolution = " + ExtractString(ResString, 2) + CR + ...
"Nb bits per pixel = " + ExtractString(ResString, 3) + CR + ...
"Refresh rate = " + ExtractString(ResString, 4))
Syntax
<Result> = SysScreenResolution([<Screen name>])
<Result>: Character string
  • Resolution of the screen in the following format:
    <Width Resolution> + TAB + <Height Resolution> + TAB +
    <Number of Bits per Pixel> + TAB + <Refresh Rate>
  • Empty string ("") if an error occurred. ErrorInfo returns more information on the error.
<Screen name>: Optional character string
Name of the screen whose the resolution is requested.
If this parameter is not specified, the resolution of the main screen is returned. If the specified name does not exist, <Result> corresponds to an empty string ("").
Remark: The list of screen names is returned by SysListScreen.
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: wd290std.dll
Versión mínima requerida
  • Versión 12
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 22/06/2023

Señalar un error o enviar una sugerencia | Ayuda local