Modifies or retrieves the display orientation of the current window.
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: | |
winOrientationLandscape | Window in landscape mode (the width is greater than the height). |
winOrientationPortrait | Window in portrait mode (the height is greater than the width). |
<Orientation>: Integer constant
New orientation that must be given to the window: | |
winOrientationLandscape | Window in landscape mode (the width is greater than the height). |
winOrientationPortrait | Window 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: | |
winOrientationLandscape | Window in landscape mode (the width is greater than the height). |
winOrientationPortrait | Window 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: wd280android.jar