Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips
Documentation Wiki Register Members List B4P 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, 12:31 PM
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Netherlands
Posts: 216
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, 02:52 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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, 03:02 PM
Knows the basics
 
Join Date: Apr 2007
Location: Slovakia, Martin
Posts: 51
Send a message via ICQ to PatrikL Send a message via Skype™ to PatrikL
Default

Hello, i have it on my desktop
Attached Files
File Type: zip PPCorient.zip (4.1 KB, 417 views)
Reply With Quote
  #4 (permalink)  
Old 05-14-2007, 03:05 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
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, 10:28 AM
Knows the basics
 
Join Date: May 2007
Posts: 95
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, 350 views)
Reply With Quote
  #6 (permalink)  
Old 05-15-2007, 01:37 PM
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Netherlands
Posts: 216
Default

Thanks guys,

That is exactly what I needed.

Harry
Reply With Quote
  #7 (permalink)  
Old 10-03-2007, 06:01 AM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 768
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
Default

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

Hi alfcen,

Of coarse its free to use...

Put Claude Belgium
Reply With Quote
  #9 (permalink)  
Old 10-05-2007, 03:20 PM
alfcen's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu Islands
Posts: 768
Send a message via Skype™ to alfcen
Awards Showcase
Beta Tester 
Total Awards: 1
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, 11:19 AM
Knows the basics
 
Join Date: May 2007
Posts: 95
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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
can i change font ? gjoisa Questions (Windows Mobile) 1 03-29-2008 10:58 AM
Font change klaus Questions (Windows Mobile) 6 12-30-2007 07:00 PM
sceen orientation Filec Questions (Windows Mobile) 3 07-13-2007 01:34 PM
Image gets lost with orientation change HARRY Questions (Windows Mobile) 7 05-14-2007 10:19 AM
Screen orientation changes automatically? mwaite Questions (Windows Mobile) 3 05-01-2007 07:53 PM


All times are GMT. The time now is 05:02 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0