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
  #11 (permalink)  
Old 10-07-2007, 08:34 PM
taximania's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 237
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by Put Claude View Post
Hi,
I upload again the orientation programs, you have to use them with the
shell function:
If isppc = True Then Shell("Lndsc270.exe", "")

Put Claude Belgium
And, as usual for my device, the 'orientation programs' don't work.
I am programming on the device.

Code:
Sub Globals
	'Declare the global variables here.

End Sub

Sub App_Start
	Form1.Show
End Sub


Sub Button1_Click
if isppc = true then Shell("Lndsc270.exe", "")

End Sub
If 'isppc' is invalid, you mean cPPC. Which still doesn't work on my device.
I will post more tomorrow after work.
I get the time to program the device at work
__________________
Endemol
Waste of space

O2 XDA Artemis Touch Flo 4.02 Full Cube Rom WM6.1

http://www.taximania.net
Reply With Quote
  #12 (permalink)  
Old 10-09-2007, 03:40 PM
Knows the basics
 
Join Date: May 2007
Posts: 87
Default

hi taxmania,

Sorry if not understandable, this is a piece from the code, an I did not mentioning the variable 'isppc'...
Sub global

isppc=0

End Sub

Sub App_Start 'POINT to start

isppc = CPPC 'returns False or True=PPC, check if running on desktop or PPC
If isppc = True Then Shell("Lndsc270.exe", "")

work with variable, so I have not togo trough the cPPC function all the time...
Works with me on 4 different Pockets WM3 SE, WM 5, WM6 Pro....
Good luc....

Put Claude Belgium

Last edited by Put Claude : 10-09-2007 at 03:48 PM. Reason: forgot something
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
can i change font ? gjoisa Questions & Help Needed 1 03-29-2008 10:58 AM
Font change klaus Questions & Help Needed 6 12-30-2007 07:00 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
Screen orientation changes automatically? mwaite Questions & Help Needed 3 05-01-2007 07:53 PM


All times are GMT. The time now is 03:58 AM.


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