Display Orientation

Last post 09-12-2005 1:44 by Anonymous. 10 replies.
Page 1 of 1 (11 items)
Sort Posts: Previous Next
  • 10-29-2003 7:01

    Display Orientation


    This is related to my last post with the subject "Text".

    Does anyone know how can I change, using .netcf C#, the display
    orientation?

    I mean, all my application, all my controls, and everything...

    I see there are application with "landcape" display. How are they build?

    I've searched the forums and groups but I seem to find only the same question with no answer.

    Thank you in advance.

    [:X] Anca

  • 10-29-2003 9:18 In reply to

    Re: Display Orientation

    just a quick google for "ChangeDisplaySettingsEx" (from Perdition's suggestions) came up with this link:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceui40/html/ceconchangedisplaysettingsex.asp
  • 10-29-2003 9:52 In reply to

    Re: Display Orientation


    Thank you for the answer.

    I've read that. I've searched all day long the internet and not only. I'm a begginer, so don't be so hard on me [:I].

    That seems to be a Visual C++ function and I suppose I can call it somehow throught P/Invoke in .netcf C# ( also Perdition idea ). I'm still working on this and maybe my question seem very simple to you
    but ...

    I've also read some documentation on P / Invoke. From what I've seen, nobody did that till now or something related.

    Plrase feel free to give me any advice.

    [:X]

    Anca
  • 10-29-2003 10:34 In reply to

    Re: Display Orientation

    basically, all of .NET code is "managed", and safe (integer overflow checks etc.). P/Invoke uses old (unmanaged) code in your managed (.NET) apps. so, before .NET, P/Invoke was not needed - anything could use anything else. But, of course, microsoft could not create managed code for EVERYTHING...so they stuck p/invoke in so we could do their work :).

    It's meant to be easy when you get the hang of it (I have used it once, and then it didnt work)...so good luck :)
  • 10-30-2003 11:35 In reply to

    • ctacke
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-27-2007
    • Indiana
    • Posts 2,255

    Re: Display Orientation

    Take a look at these articles:

    http://smartdevices.microsoftdev.com/Learn/Articles/501.aspx
    http://smartdevices.microsoftdev.com/Learn/Articles/500.aspx
  • 10-30-2003 15:56 In reply to

    Re: Display Orientation

    Nice articles [:)] though unfortunately it makes solving anca's problem more difficult as the DEVMODE structure required by the ChangeDisplaySettingsEx function is a complex structure.

    Playing around with it for a bit I couldn't get it to work, though also not 100% sure my device (iPAQ 2210) supports it. If anyone does get it to work within managed code I would love to know how as this could be useful in future projects [:)]
  • 11-29-2003 7:27 In reply to

    Re: Display Orientation

    After a some research, I found that screen rotation is available only after the release 4.0 of WindowsCE.NET. There is also another method, the way of GAPI library. But it seems to be replaced in the near future with another library, so backward compatibility is not granted. The last, and most difficult, is to write a "virtual" screen driver, as done in some commercial software. In my opininion the last one could be a satisfying solution.

    Andrea Liana
    ---------------------
    mailto:andliana@tin.it
  • 11-30-2003 3:46 In reply to

    Re: Display Orientation

    Yep I also noticed that it was only available after 4.0. The iPAQ 2210 I'm using runs PPC2003 (WinCE 4.2) so the function is available, just couldn't get it to work [;)]
  • 12-09-2003 11:57 In reply to

    Re: Display Orientation


    Thank you guys for your suport.
    I will try what you're suggesting and keep you informed.

    [:X]




    Anca
  • 12-09-2003 12:05 In reply to

    • ctacke
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-27-2007
    • Indiana
    • Posts 2,255

    Re: Display Orientation

    The API was added in 4.x, but that doesn't mean the OEM added driver support for it...
  • 09-12-2005 1:44 In reply to

    Re: Display Orientation

    Hi,

    I have an Intermec 700C device running PPC2003 1ST EDITION and I'm looking
    for a way to to change the screen orientation programmatically. I have
    already tried the API "ChangeDisplaySettingsEx" function but it didn't work.

    I know that the Second Edition supports this, but the manufacturer says that
    upgrading to the Second Edition the existing devices that my client already uses is
    not possible. Therefore the OS has to remain PPC 2003 1st Edition.

    After some investigation, it seems that the only way to do this is by
    creating a display driver that supports screen rotation using a tool by
    Microsoft called the "Platform Builder" which is usually supplied to device manufacturers.

    Unfortunately, this is not included with my MSDN Subscription, so my
    question is if anybody knows where can I find a display driver that
    supports screen rotation with PocketPC 2003 First Edition?

    I also know that there is a utility to do this but the customer requires
    that I do it from within the application(that is programmatically).

    TIA

    George Papadopoulos
    Cosine Consultants Ltd
Page 1 of 1 (11 items)