monitor screen orientation

Discussion in 'Questions (Windows Mobile)' started by joel2009, Jun 4, 2009.

  1. joel2009

    joel2009 Member Licensed User

    I know there are libraries for setting screen orentation, but what about watching for screen rotation? The only work around I could think of is using a tmer tick to cross refrence a previous value. example:
    Sub app start
    screen.width = a
    end sub

    Sub timer1_tick
    if screenwidth=a then
    else
    resize controls
    screenwidth=a
    end sub

    obviously not a word for word working example, just an explaned concept. This way seems waaayyyy to memory intensive though. Is there a library or a way to hook the screen rotation event from the door library? I have searched with no avail and yet i'm pretty sure its possible.
     
  2. agraham

    agraham Expert Licensed User

  3. corwin42

    corwin42 Expert Licensed User

    Hi!

    I normally use the resize event from the formlib to monitor screen orientation changes. If you have multiple forms you have to create a new formlib object for every form but it works well in my applications.

    Greetings,
    Markus
     
  4. joel2009

    joel2009 Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice