Basic4ppc - Windows Mobile Development  

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

Code Samples & Tips Share your recent discoveries and ideas with other users.


Change screen orientation programmatically??


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-14-2007, 11:31 AM
Knows the basics
 
Join Date: Apr 2007
Location: Netherlands
Posts: 86
Default Change screen orientation programmatically??

Hi,

I want to set at the start of my program the screen orientation to landscape and to portrait when closing the form.

Does somebody know about code to realize that?

Harry
Reply With Quote
  #2 (permalink)  
Old 05-14-2007, 01:52 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,817
Default

There were small applications in the old forum that did this.
I hope that one of the users who downloaded it will upload it again .
Reply With Quote
  #3 (permalink)  
Old 05-14-2007, 02:02 PM
Junior Member
 
Join Date: Apr 2007
Location: Slovakia, Prievidza
Posts: 19
Send a message via ICQ to PatrikL
Default

Hello, i have it on my desktop
Attached Files
File Type: zip PPCorient.zip (4.1 KB, 188 views)
Reply With Quote
  #4 (permalink)  
Old 05-14-2007, 02:05 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,817
Default

Thanks PatrikL

You need to use the Shell keyword with one of the programs to rotate the screen.
Reply With Quote
  #5 (permalink)  
Old 05-15-2007, 09:28 AM
Knows the basics
 
Join Date: May 2007
Posts: 85
Default

Hi,
I upload again the orientation programs, you have to use them with the
shell function:
If isppc = True Then Shell("Lndsc270.exe", "")

On the title you recognise where the pda-buttons are : BtnsR270.exe
means the buttons are on the right in this landscape mode.

You wil have automaticly scrollbars if the window do not fitt.
Did not think it was a handy thing to some people, enjoy it....

Put Claude Belgium
Attached Files
File Type: zip PPCorient.zip (8.1 KB, 154 views)
Reply With Quote
  #6 (permalink)  
Old 05-15-2007, 12:37 PM
Knows the basics
 
Join Date: Apr 2007
Location: Netherlands
Posts: 86
Default

Thanks guys,

That is exactly what I needed.

Harry
Reply With Quote
  #7 (permalink)  
Old 10-03-2007, 05:01 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Default

Quick'n sweet: are these freeware?
Reply With Quote
  #8 (permalink)  
Old 10-05-2007, 01:33 PM
Knows the basics
 
Join Date: May 2007
Posts: 85
Default

Hi alfcen,

Of coarse its free to use...

Put Claude Belgium
Reply With Quote
  #9 (permalink)  
Old 10-05-2007, 02:20 PM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Default

Thanks a lot, Put

Thanks to you, I have successfully incorporated the orientation switchers in combination with dzt's HTML Viewer and formlib.dll (full screen) for the purpose of replaying Flash (.swf) files on maximum possible screen area.

Cheers
Robert
Reply With Quote
  #10 (permalink)  
Old 10-07-2007, 10:19 AM
Knows the basics
 
Join Date: May 2007
Posts: 85
Default

hi alfcen'

Y 'are Welcome...

Put Claude Belgium
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
Font Change Stanl3yCZ Questions & Help Needed 2 01-27-2008 06:22 PM
Font change klaus Questions & Help Needed 6 12-30-2007 06:00 PM
sceen orientation Filec Questions & Help Needed 3 07-13-2007 12:34 PM
Image gets lost with orientation change HARRY Questions & Help Needed 7 05-14-2007 09:19 AM
Screen orientation changes automatically? mwaite Questions & Help Needed 3 05-01-2007 06:53 PM


All times are GMT. The time now is 12:37 PM.


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