Windows Mobile: Writing applications for multiple device screen sizes/orientations


I just recieved the latest issue of "Smartphone & Pocket PC Magazine", and they were kind enough to publish my article on writing applications in managed code that support multiple screen sizes and orientations. This is a tricky subject, and I've tried to lay out some approaches that might be helpful. My thanks to Mel Sampat who is the expert on this subject.


 Now I have to finish the companion piece of developing using C++... It's a good thing we've all got snowed in again in Redmond, and I have the afternoon free to work on it.


 


 


Comments (5)

  1. Mike Edwards says:

    I am looking forward to seeing ideas for this in c++  – my new app for Windows Mobile 5 uses the "top left hand corner" method for not exceeding the screen size and it’s very liming.

  2. Mike Edwards says:

    I did have a look at that, got part-way through watching the video then had to get back to work. It talked about landscape and portrait screens, but I was hoping to find a way of coping with square screens as well. Though I suspect I’ll just have to use different screens on the square products as no amount of moving controls will cope with having less screen space.

    (In case anyone was wondering, the last word in my first comment should have been "limiting").

  3. MSDN Archive says:

    The important part is that Mel introduces a library called ScreenLib that will help your controls re-position themselves: so your app will look good on both landscape/portrait AND square devices.

    My article in the magazine discusses some other approaches: using the control layout templates to make "snapshots" for different layouts for example.

  4. Mike Edwards says:

    Sounds like I need to finish the video and/or play with the code.

Skip to main content