ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Window 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
WinOrientation (Function)
In french: FenOrientation
Modifies or retrieves the display orientation of the current window.
Example
IF WinOrientation() = winOrientationLandscape THEN
WinOrientation(winOrientationPortrait)
END
Syntax

Changing the window orientation 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 when no windows are open, it has no effect and returns -1.
Component: wd290android.jar
Minimum version required
  • Version 17
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help