PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
ScreenType (Function)
In French: TypeEcran
Returns the type of screen on which the application is run: phone, tablet, computer or watch.
Notes:
  • Android To find out the exact size of the diagonal of the screen, use ScreenSize.
  • In simulator mode, the type of screen corresponds to a computer screen.
Example
// If the application is displayed on a large screen (tablet or PC)
IF ScreenType() IN (teTablet, teComputer) THEN
...
END
Syntax
<Result> = ScreenType()
<Result>: Integer constant
Type of screen:
teComputerComputer screen (diagonal greater than 13 inches).
teWatchWatch screen (diagonal less than 2 inches).
teTabletTablet screen (diagonal included between 7 and 13 inches).
tePhonePhone screen (diagonal included between 2 and 7 inches).
Components
Android wd230android.jar
Minimum required version
  • Version 22
Comments
Click [Add] to post a comment