ScreenOrientation and the Smartphone (WM 5.0, NETCF 2.0)

  • Thread starter Thread starter gwatts
  • Start date Start date
G

gwatts

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.
 
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/DrawingRotatedTextInNETCompactFramework20.aspx

Peter
 
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.
 
Back
Top