ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Window functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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
Attention If the WinOrientation is called when there is no current window, the function has no effect and returns -1.
Component: wd300android.jar
Minimum version required
  • Version 17
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help