PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework ScreenOrientation and the Smartphone (WM 5.0, NETCF 2.0)

Reply

ScreenOrientation and the Smartphone (WM 5.0, NETCF 2.0)

 
Thread Tools Rate Thread
Old 13-09-2006, 04:10 AM   #1
gwatts@phys.washington.edu
Guest
 
Posts: n/a
Default ScreenOrientation and the Smartphone (WM 5.0, NETCF 2.0)


Hi,
I've got a small app I'd like to display, by default, in landscape
mode.

It is a simple clock which is meant to have very large letters so it
is visible from far away.

Microsoft.WindowsCE.Forms.SystemSettings.ScreenOrientation seems to
work fine in the smartphone emulator, but fails on my Cingular 2125
smartphone. The exception name is blank in the display (i.e. I have no
idea what type of exception it is).

Since my smart phone has no user selectable screen rotation, I'm
guessing this is a disabled feature. Thanks in advance!

Cheers,
Gordon.

  Reply With Quote
Old 13-09-2006, 08:05 AM   #2
Peter Foot [MVP]
Guest
 
Posts: n/a
Default Re: ScreenOrientation and the Smartphone (WM 5.0, NETCF 2.0)

Most smartphones don't offer screen rotation, the orientation is fixed
either in portrait or landscape depending on the device. The ability to
rotate was, I think, added in one of the recent AKU updates for WM5.0 AKU
2.Something. If there is a ROM update for your device you could try applying
that and see if it enables this functionality. Otherwise you'll have to look
at drawing your content at a 90 degree angle:-
http://blog.markarteaga.com/Drawing...ramework20.aspx

Peter

--
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com

<gwatts@phys.washington.edu> wrote in message
news:1158117031.086264.194800@m73g2000cwd.googlegroups.com...
> Hi,
> I've got a small app I'd like to display, by default, in landscape
> mode.
>
> It is a simple clock which is meant to have very large letters so it
> is visible from far away.
>
> Microsoft.WindowsCE.Forms.SystemSettings.ScreenOrientation seems to
> work fine in the smartphone emulator, but fails on my Cingular 2125
> smartphone. The exception name is blank in the display (i.e. I have no
> idea what type of exception it is).
>
> Since my smart phone has no user selectable screen rotation, I'm
> guessing this is a disabled feature. Thanks in advance!
>
> Cheers,
> Gordon.
>



  Reply With Quote
Old 13-09-2006, 09:28 AM   #3
gwatts@phys.washington.edu
Guest
 
Posts: n/a
Default Re: ScreenOrientation and the Smartphone (WM 5.0, NETCF 2.0)

Hi Peter,
Thanks! A ROM update did, indeed, come out, and I did apply it (a
month or two ago). As far as I can tell, that feature was not enabled.

Your text drawing code that you refer to looks interesting, thanks!
I'll take a look at that.

Cheers,
Gordon.

Peter Foot [MVP] wrote:
> Most smartphones don't offer screen rotation, the orientation is fixed
> either in portrait or landscape depending on the device. The ability to
> rotate was, I think, added in one of the recent AKU updates for WM5.0 AKU
> 2.Something. If there is a ROM update for your device you could try applying
> that and see if it enables this functionality. Otherwise you'll have to look
> at drawing your content at a 90 degree angle:-
> http://blog.markarteaga.com/Drawing...ramework20.aspx
>
> Peter
>
> --
> Peter Foot
> Device Application Development MVP
> www.peterfoot.net | www.inthehand.com
>
> <gwatts@phys.washington.edu> wrote in message
> news:1158117031.086264.194800@m73g2000cwd.googlegroups.com...
> > Hi,
> > I've got a small app I'd like to display, by default, in landscape
> > mode.
> >
> > It is a simple clock which is meant to have very large letters so it
> > is visible from far away.
> >
> > Microsoft.WindowsCE.Forms.SystemSettings.ScreenOrientation seems to
> > work fine in the smartphone emulator, but fails on my Cingular 2125
> > smartphone. The exception name is blank in the display (i.e. I have no
> > idea what type of exception it is).
> >
> > Since my smart phone has no user selectable screen rotation, I'm
> > guessing this is a disabled feature. Thanks in advance!
> >
> > Cheers,
> > Gordon.
> >


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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