PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
SysScreenOrientation (Function)
In french: SysOrientationEcran
Used to:
  • find out the orientation of the screen on the device (Pocket PC, Android, iOS or Universal Windows 10 App phone).
  • modify the orientation of the screen on the device (Pocket PC or Android phone).
Versions 17 and later
Universal Windows 10 App This function is now available for Windows Phone applications.
New in version 17
Universal Windows 10 App This function is now available for Windows Phone applications.
Universal Windows 10 App This function is now available for Windows Phone applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode. It can only be used to find out the device orientation.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode. It can only be used to find out the device orientation.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode. It can only be used to find out the device orientation.
Example
// Fill the "LIST_Orientations" control with the possibles orientations
ListAdd(LIST_Orientations, SysListScreenOrientation())

// Select the current orientation of the screen in the list
LIST_Orientations = SysScreenOrientation()
// Change the orientation of the screen
// The screen will be turned around
SysScreenOrientation(Orient180)
Syntax

Finding out the screen orientation Hide the details

<Result> = SysScreenOrientation()
<Result>: Character String constant
Value of current screen orientation:
Orient0The screen is oriented in the default direction.
Orient90The screen is turned around by 90° clockwise.
Orient180The screen is turned around by 180°.
Orient270The screen is turned around by 90° anticlockwise (or by 270° clockwise).
Remarks
  • The change of screen orientation is not supported by all the mobile devices. When this feature is not available, SysScreenOrientation always returns Orient0.
Component : wp250std.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment