Screen Type

Returns the type of screen on which the application is run: phone, tablet, computer or watch.

Notes:
·       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 (ssTabletssComputer) THEN
...
END
Syntax
<Result> = ScreenType()
<Result>: Integer constant
Type of screen:
teComputer
Computer screen (diagonal greater than 13 inches).
teWatch
Watch screen (diagonal less than 2 inches).
teTablet
Tablet screen (diagonal included between 7 and 13 inches).
tePhone
Phone screen (diagonal included between 2 and 7 inches).

Comments

Popular posts from this blog

Toast Display

Word Processing Control

Read XML String and load the data in Controls