FBA The Creator

The True Multiplatform PC / PocketPC Opensource Development Tool - Read Only Mode - Kept only for historical purposes - Thank you all ;)
It is currently Thu Jun 04, 2026 6:09 am

All times are UTC




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Rotate Screen?
PostPosted: Wed Apr 02, 2008 9:52 am 
Offline

Joined: Mon Mar 31, 2008 6:52 am
Posts: 18
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?

:?:


Top
   
 Post subject: Re: Rotate Screen?
PostPosted: Wed Apr 02, 2008 10:30 am 
Offline
FBA Administrator
FBA Administrator
User avatar

Joined: Fri Mar 21, 2008 11:19 pm
Posts: 238
Location: Rome - Italy
Actually on the fly switch is not supported.
FBA exe are designed keeping in mind screen orientation shouldn't change while app is running :)


Top
   
 Post subject: Re: Rotate Screen?
PostPosted: Wed Apr 02, 2008 12:50 pm 
Offline

Joined: Mon Mar 31, 2008 6:52 am
Posts: 18
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. :cry:

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?!


Top
   
 Post subject: Re: Rotate Screen?
PostPosted: Wed Apr 02, 2008 1:19 pm 
Offline
FBA Administrator
FBA Administrator
User avatar

Joined: Fri Mar 21, 2008 11:19 pm
Posts: 238
Location: Rome - Italy
Actually yes, as a consequence ingame switch is not supported.


Top
   
 Post subject: Re: Rotate Screen?
PostPosted: Thu Apr 03, 2008 7:59 am 
Offline
User avatar

Joined: Wed Mar 26, 2008 12:44 pm
Posts: 16
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

_________________
Join us at http://www.gizmondoforums.com


Top
   
 Post subject: Re: Rotate Screen?
PostPosted: Thu Apr 03, 2008 8:24 am 
Offline
FBA Administrator
FBA Administrator
User avatar

Joined: Fri Mar 21, 2008 11:19 pm
Posts: 238
Location: Rome - Italy
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited