Having said that, dealers have implemented portrait/landscape designs by taking snapshots of their landscape design, rotating and adjusting for portrait, and then placing transparent button elements essentially over the top of the snapshot image in their pages/popups within TPDesign4. TPControl can provide the orientation, and effectively the dealers send page/popup commands for either their landscape or portrait assets.
We have included an API for orientation detection which is documented in our TPC API commands:
****
TPCACC-
Accelerometer: Returns device orientation data. Unparsed parameters will disable the function"
TPCACC-ENABLE | 1
TPCACC-DISABLE
TPCACC-QUERY
TPC informs NI with string in format:
String From [11003:1:8]-[TPCACC-DeviceOrientationLandscapeRight;]
Possible variants:
DeviceOrientationPortrait
DeviceOrientationPortraitUpsideDown
DeviceOrientationLandscapeLeft
DeviceOrientationLandscapeRight
DeviceOrientationFaceUp
DeviceOrientationFaceDown
****
Alternately, and perhaps simpler, as TPControl supports multiple file slots for Apple and Windows implementations, you could transition from landscape to portrait using 2 x TP4 files as in the example posted on our Downloads page:
TPControl Landscape to Portrait Rotation using FileSlots.AXW