ilan Expert Licensed User Longtime User Feb 7, 2013 #1 hi there i am using a macbook pro (windows 7 installed) and i am trying to change the orientation to landscape on my macbook pro the buttons crtl+f11 doesnot works tried also fn+crtl+f11, and other many options (it would be nice if there where a simpe button that does that, EREL) does anyone have an idea how can i change the orientation on my phone using B4A bridge??? thanx
hi there i am using a macbook pro (windows 7 installed) and i am trying to change the orientation to landscape on my macbook pro the buttons crtl+f11 doesnot works tried also fn+crtl+f11, and other many options (it would be nice if there where a simpe button that does that, EREL) does anyone have an idea how can i change the orientation on my phone using B4A bridge??? thanx
Olaan Expert Licensed User Longtime User Feb 7, 2013 #2 Hi ilan12041981, The present, I always press button ctrl+11,it always changed for me. I think that you must set here as belows Last edited: Feb 28, 2013 Upvote 0
Hi ilan12041981, The present, I always press button ctrl+11,it always changed for me. I think that you must set here as belows
ilan Expert Licensed User Longtime User Feb 8, 2013 #3 thanx theera for your reply but thats doesnot solved the problem if i am using the sdk emulator i can change the orientation by cklicking fn + crtl + f11 in the emulator but i usually work with the b4a bridge because its much faster and there i cannot change the orientation from potrait to landscape is there maybe a bug in the b4a bridge?? thanx Upvote 0
thanx theera for your reply but thats doesnot solved the problem if i am using the sdk emulator i can change the orientation by cklicking fn + crtl + f11 in the emulator but i usually work with the b4a bridge because its much faster and there i cannot change the orientation from potrait to landscape is there maybe a bug in the b4a bridge?? thanx
Erel B4X founder Staff member Licensed User Longtime User Feb 8, 2013 #4 Ctrl + F11 is an emulator shortcut, not an IDE shortcut. You will need to rotate the phone in order to change its orientation. Upvote 0
Ctrl + F11 is an emulator shortcut, not an IDE shortcut. You will need to rotate the phone in order to change its orientation.
Mark Read Well-Known Member Licensed User Longtime User Feb 8, 2013 #5 Don't forget about the Phone library. Its also good for changing orientation between activities. SetScreenOrientation (Orientation As Int) Changes the current activity orientation. This method cannot be called from a service module. Orientation - -1 for unspecified, 0 for landscape and 1 for portrait. Code: Copy Dim p as phone Sub Activity_Create(FirstTime As Boolean) 'somewhere in your code for example p.SetScreenOrientation (0) 'Switch to landscape mode End Sub Upvote 0
Don't forget about the Phone library. Its also good for changing orientation between activities. SetScreenOrientation (Orientation As Int) Changes the current activity orientation. This method cannot be called from a service module. Orientation - -1 for unspecified, 0 for landscape and 1 for portrait. Code: Copy Dim p as phone Sub Activity_Create(FirstTime As Boolean) 'somewhere in your code for example p.SetScreenOrientation (0) 'Switch to landscape mode End Sub