ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Mobile specific functions / Phone functions
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
ScreenSize (Function)
In french: TailleEcran
Returns the size (in inches) of the diagonal of the screen on the device where the application is run.
Remarks:
  • ScreenType is used to find out the type of device screen (phone, tablet, PC, etc.).
  • In simulator mode, the size returned is not reliable.
Example
// If the application is displayed on a large screen (tablet or PC)
IF ScreenSize() >= 7 THEN
Info("The screen is a tablet or a PC")
END
Syntax
<Result> = ScreenSize()
<Result>: Real
Size of the diagonal of the screen in inches. For example:
  • Computer screen (diagonal greater than 13 inches).
  • Watch screen (diagonal less than 2 inches).
  • Tablet screen (diagonal included between 7 and 13 inches).
  • Phone screen (diagonal included between 2 and 7 inches).
Component: wd290android.jar
Minimum version required
  • Version 22
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help