Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Screen orientation changes automatically?


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-30-2007, 09:02 PM
Junior Member
 
Join Date: Apr 2007
Posts: 42
Send a message via Yahoo to mwaite
Default Screen orientation changes automatically?

I see reference to screen orientation support in the "What's New" doc, however I cannot find any way to detect a screen orientation event has occurred. Am I to assume we must query the height/width ourselves?
Reply With Quote
  #2 (permalink)  
Old 05-01-2007, 06:31 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

You need to use the FormLib library.
Code:
'First add an object named flb of type FormLib. Sub Globals
End Sub
Sub App_Start Form1.show flb.New1("Form1",B4PObject(1)) End Sub
Sub flb_Resize 'Fires when the user changes the screen orientation if Form1.Width > Form1.Height then msgbox("Landscape") else msgbox("Portrait") end if End Sub
Reply With Quote
  #3 (permalink)  
Old 05-01-2007, 07:09 PM
Junior Member
 
Join Date: Apr 2007
Posts: 42
Send a message via Yahoo to mwaite
Default

Thanks Erel.

I thought I had seen that somewhere when I was reading the docs, but when I went looking for it again I couldn't find it in the list of methods that Formlib supports, and search "resize" yields nothing. I see it now in the Overview paragraph. By chance is there a complete list of supported events/methods for the librarys that one can use as a reference? I hate to miss something. Now I can go remove my timer event that was looking for screen orientation changed
Reply With Quote
  #4 (permalink)  
Old 05-01-2007, 07:53 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

It is missing from the FormLib help by mistake.
It will be fixed.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically Open Pword With A Word File sintaq Questions & Help Needed 3 03-26-2008 03:31 PM
automatically send a csv file via active-sync sunnyboyj Questions & Help Needed 3 12-22-2007 02:35 PM
Change screen orientation programmatically?? HARRY Code Samples & Tips 11 10-09-2007 03:40 PM
sceen orientation Filec Questions & Help Needed 3 07-13-2007 01:34 PM
Image gets lost with orientation change HARRY Questions & Help Needed 7 05-14-2007 10:19 AM


All times are GMT. The time now is 11:14 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0