P pruebas6969 Member Licensed User Longtime User Oct 27, 2012 #1 hello good morning We are developing an application that needs to know when you change the of the tablet in vertical or horizontal I tried phoneorientarion but not working . tnx for all and sorry for my bat enlish
hello good morning We are developing an application that needs to know when you change the of the tablet in vertical or horizontal I tried phoneorientarion but not working . tnx for all and sorry for my bat enlish
NJDude Expert Licensed User Longtime User Oct 28, 2012 #2 Try this: Code: Copy If Activity.Width > Activity.Height Then Msgbox("Landscape mode", "") Else Msgbox("Portrait mode", "") End If Upvote 0
Try this: Code: Copy If Activity.Width > Activity.Height Then Msgbox("Landscape mode", "") Else Msgbox("Portrait mode", "") End If
P pruebas6969 Member Licensed User Longtime User Oct 28, 2012 #3 NJDude said: Try this: Code: Copy If Activity.Width > Activity.Height Then Msgbox("Landscape mode", "") Else Msgbox("Portrait mode", "") End If Click to expand... Tnks for the answer but i look for the event when the change occurs Upvote 0
NJDude said: Try this: Code: Copy If Activity.Width > Activity.Height Then Msgbox("Landscape mode", "") Else Msgbox("Portrait mode", "") End If Click to expand... Tnks for the answer but i look for the event when the change occurs
NJDude Expert Licensed User Longtime User Oct 28, 2012 #4 There's no event, when you change the orientation Activity_Resume triggers, you can add the code posted above there if you like. Upvote 0
There's no event, when you change the orientation Activity_Resume triggers, you can add the code posted above there if you like.
P pruebas6969 Member Licensed User Longtime User Oct 28, 2012 #5 resume event is already busy with another code NJDude said: There's no event, when you change the orientation Activity_Resume triggers, you can add the code posted above there if you like. Click to expand... yes but I have the when the tablet back from the hibernation Upvote 0
resume event is already busy with another code NJDude said: There's no event, when you change the orientation Activity_Resume triggers, you can add the code posted above there if you like. Click to expand... yes but I have the when the tablet back from the hibernation
NJDude Expert Licensed User Longtime User Oct 28, 2012 #6 I don't understand what you mean by "resume event is already busy with another code", you can add several pieces of code there, whatever you add there it will be executed. Upvote 0
I don't understand what you mean by "resume event is already busy with another code", you can add several pieces of code there, whatever you add there it will be executed.
P pruebas6969 Member Licensed User Longtime User Oct 28, 2012 #7 is the same event NJDude said: I don't understand what you mean by "resume event is already busy with another code", you can add several pieces of code there, whatever you add there it will be executed. Click to expand... Is true, but how I can distinguish between the tablet change the orientation and when the tablet ibernation pass mode and is reactivated again ??? Upvote 0
is the same event NJDude said: I don't understand what you mean by "resume event is already busy with another code", you can add several pieces of code there, whatever you add there it will be executed. Click to expand... Is true, but how I can distinguish between the tablet change the orientation and when the tablet ibernation pass mode and is reactivated again ???
NJDude Expert Licensed User Longtime User Oct 28, 2012 #8 I would suggest you create a little sample for yourself and use that code, then do what you describe and see the results. Upvote 0
I would suggest you create a little sample for yourself and use that code, then do what you describe and see the results.
P pruebas6969 Member Licensed User Longtime User Oct 28, 2012 #9 NJDude said: I would suggest you create a little sample for yourself and use that code, then do what you describe and see the results. Click to expand... I'll do it and then show the result. is there any way to change the tablet orientation without losing forms ??? Upvote 0
NJDude said: I would suggest you create a little sample for yourself and use that code, then do what you describe and see the results. Click to expand... I'll do it and then show the result. is there any way to change the tablet orientation without losing forms ???
NJDude Expert Licensed User Longtime User Oct 28, 2012 #10 What do you mean "is there any way to change the tablet orientation without losing forms"? Upvote 0
JonPM Well-Known Member Licensed User Longtime User Oct 28, 2012 #11 pruebas6969 said: I'll do it and then show the result. is there any way to change the tablet orientation without losing forms ??? Click to expand... Use state manager, http://www.b4x.com/forum/showthread.php?t=9777 Upvote 0
pruebas6969 said: I'll do it and then show the result. is there any way to change the tablet orientation without losing forms ??? Click to expand... Use state manager, http://www.b4x.com/forum/showthread.php?t=9777