i am using rad studio xe5 and i need to return the current screen orientation to the text property of a label on my form.
how can i get the value of TScreenOrientation();
thank you amit
You can do it like this:
uses
FMX.Platform;
....
var
ScreenService: IFMXScreenService;
....
ScreenService := TPlatformServices.Current.GetPlatformService(IFMXScreenService)
as IFMXScreenService;
Orientation := ScreenService.GetScreenOrientation;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.