| FBA The Creator http://www.fbacreator.com/fbaforum/ |
|
| Rotate Screen? http://www.fbacreator.com/fbaforum/viewtopic.php?f=5&t=23 |
Page 1 of 1 |
| Author: | trids [ Wed Apr 02, 2008 9:52 am ] |
| Post subject: | Rotate Screen? |
How do I detect when the screen has been rotated? Is there an event that fires when this happens? For example when the user slides out the keyboard, apps usually rotate from portrait to landscape on my HTC TyTN2. And then, having detected this, how do i rotate the display? Or .. is there a way to hook in an FBA app into some system event that triggers when the keyboard slides out, so that the re-orientation happens seamlessly? |
|
| Author: | evilmaio [ Wed Apr 02, 2008 10:30 am ] |
| Post subject: | Re: Rotate Screen? |
Actually on the fly switch is not supported. FBA exe are designed keeping in mind screen orientation shouldn't change while app is running |
|
| Author: | trids [ Wed Apr 02, 2008 12:50 pm ] |
| Post subject: | Re: Rotate Screen? |
evilmaio wrote: Actually on the fly switch is not supported... That's disappointing! But a small price to pay for something as excellent as FBA, which itself is free. evilmaio wrote: ...FBA exe are designed keeping in mind screen orientation shouldn't change while app is running Hmmm .. ok, but even if I startup an FBA app in landscape mode, it displays in portrait. Edit .. Ah, I see now how FBA supports orientation (it's done via project settings) .. but this means that you have to compile a separate CAB file for landscape?! |
|
| Author: | evilmaio [ Wed Apr 02, 2008 1:19 pm ] |
| Post subject: | Re: Rotate Screen? |
Actually yes, as a consequence ingame switch is not supported. |
|
| Author: | FR4NK5T3R [ Thu Apr 03, 2008 7:59 am ] |
| Post subject: | Re: Rotate Screen? |
I sometimes forget to set the orientation in the IDE and rather than rebuild the app in FBA again I just alter the ini file that accompanies the exe. If it was possible within the app to alter the text in the ini file and do a restart you could add the option to rotate on the fly |
|
| Author: | evilmaio [ Thu Apr 03, 2008 8:24 am ] |
| Post subject: | Re: Rotate Screen? |
Yes, this is possible; you can open main .ini file with: openconfig("fba.ini") then rewrite the ini file with correct value and ask your user to restart the application. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|