PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV Mobile 27 → [WM24] Android Is there a way to lock screen orientation via programming?
[WM24] Android Is there a way to lock screen orientation via programming?
Iniciado por Robert, abr., 22 2021 2:48 PM - 1 resposta
Membro registado
105 mensagems
Publicado em abril, 22 2021 - 2:48 PM
I know you can change the screen orientation via SysScreenOrientation, but is there a way to programmatically change the Orientation property of a window?

The setting where if you go to the Describing the window screen > GUI > Orientation = Free | Locked Portrate | Locked Landscape
Thanks!
Publicado em janeiro, 28 2022 - 12:04 PM
Have you tried editing the manifest? I have managed the orientation of windows this way.

During the generation of the application go to "Advanced configuration"/"Edit manifest" and then modify the screenOrinetation attributes for all activities (windows) you want.