In the link below, Microsoft describes two ways to limit the screen rotation of an application on a tablet.
http://msdn.microsoft.com/en-ca/library/windows/apps/hh700342.aspx
what happens is that delphi (XE3) TRibbon does not cope with the rotation. he has a tendency to hang.
as expected, the MS website describes how to do this from MS development products. I do not 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 have not yet found where / how appxmanifest should be part of the application, so I can do it in delphi.
Method 2:
call it code:
Windows.Graphics.Display.DisplayProperties.AutoRotationPreferences =
Windows.Graphics.Display.DisplayOrientations.Landscape;
in order to port this to delphi, I would need to know the info of the DLL API so that I could do something like this.
Any ideas?
COM- DLL, ?