In the link below, Microsoft describes two ways to limit rotation of an application screen on a tablet.
http://msdn.microsoft.com/en-ca/library/windows/apps/hh700342.aspx
what's happening is that delphi's (XE3) TRibbon doesn't handle rotation well. it tends to get hung.
as would be expected, the MS web site describes how to do this from MS development products. I don't see how I can do this in my Delphi project.
Method 1:
add this to your appxmanifest file:
<InitialRotationPreference>
<Rotation Preference="landscape"/>
<Rotation Preference="landscapeFlipped"/>
</InitialRotationPreference>
I haven't yet found where/how the appxmanifest should be part of the application so I can do this in delphi.
Method 2:
call this with code:
Windows.Graphics.Display.DisplayProperties.AutoRotationPreferences =
Windows.Graphics.Display.DisplayOrientations.Landscape;
to migrate this to delphi, I'd need to know API DLL information so I could do something similar.
Any ideas?
Could there be a COM object or DLL that gives us access to this?