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
WinOrientation (Function)
In French: FenOrientation
Modifies or retrieves the display orientation of the current window.
Example
IF WinOrientation() = winOrientationLandscape THEN
WinOrientation(winOrientationPortrait)
END
Syntax

Modifying the orientation of the window Hide the details

<Result> = WinOrientation(<Orientation>)
<Result>: Integer constant
Orientation of the window after modification:
winOrientationLandscapeWindow in landscape mode (the width is greater than the height).
winOrientationPortraitWindow in portrait mode (the height is greater than the width).
<Orientation>: Integer constant
New orientation that must be given to the window:
winOrientationLandscapeWindow in landscape mode (the width is greater than the height).
winOrientationPortraitWindow in portrait mode (the height is greater than the width).

Finding out the current orientation of the window Hide the details

<Result> = WinOrientation()
<Result>: Integer constant
Current orientation of the window:
winOrientationLandscapeWindow in landscape mode (the width is greater than the height).
winOrientationPortraitWindow in portrait mode (the height is greater than the width).
Remarks
Caution: If WinOrientation is called while there is no current window, the function has no effect and it returns -1.
Components
Android wd230android.jar
Minimum required version
  • Version 17
Comments
Click [Add] to post a comment