P Pelky Active Member Licensed User Longtime User Mar 14, 2012 #1 I have a app with a menu.. One choice is to show a report of activities (which could be a lot of data) and would like to programatically force 'landscape' for this choice only. I have looked at the beginners guide and it only shows changing the entire project to either or all orientations. Thank you all for previous assistance - it is great to have this wealth of information and experience available to us newbies...
I have a app with a menu.. One choice is to show a report of activities (which could be a lot of data) and would like to programatically force 'landscape' for this choice only. I have looked at the beginners guide and it only shows changing the entire project to either or all orientations. Thank you all for previous assistance - it is great to have this wealth of information and experience available to us newbies...
Kevin Well-Known Member Licensed User Longtime User Mar 14, 2012 #2 You will need to add the "phone" library to your project, then the following code: Code: Sub Process_Globals Dim phone1 As Phone End Sub ... and then when you want to force landscape....... Code: Phone1.SetScreenOrientation (0) ... to restore to any/automatic orientation: Code: Phone1.SetScreenOrientation (-1) Upvote 0
You will need to add the "phone" library to your project, then the following code: Code: Sub Process_Globals Dim phone1 As Phone End Sub ... and then when you want to force landscape....... Code: Phone1.SetScreenOrientation (0) ... to restore to any/automatic orientation: Code: Phone1.SetScreenOrientation (-1)
lagore Active Member Licensed User Longtime User Mar 14, 2012 #3 You can also set the activity that is displaying the data to a particular orientation in the manifest editor SetActivityAttribute(MyModule, android:screenOrientation, "portrait") Click to expand... Upvote 0
You can also set the activity that is displaying the data to a particular orientation in the manifest editor SetActivityAttribute(MyModule, android:screenOrientation, "portrait") Click to expand...
P Pelky Active Member Licensed User Longtime User Mar 14, 2012 #4 Guys Thank you so much... I did see the phone thing but didnt know that is was a library.... as always Your assistance is much appreciated Upvote 0
Guys Thank you so much... I did see the phone thing but didnt know that is was a library.... as always Your assistance is much appreciated