×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    3

    MIDlet for Portrait and Landscape

    Hi @ all,

    I want to develop a MIDlet, which is running when the user holds the device in portrait position (normal position) as well as when he holds it in the landscape position.

    I read about the posibility to rotate images. But how can I rotate text which is printed by "drawString"?

    Thx for your help

    Greetings

    Ben

  2. #2
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: MIDlet for Portrait and Landscape

    How are you going to trigger the rotation? does the user select something? Some phones (which allow both landscape and portrait displays) do the rotation automatically (check for example E70).

    drawString cannot rotate the string on its own.

    Hartti

  3. #3
    Registered User
    Join Date
    Mar 2007
    Posts
    53

    Re: MIDlet for Portrait and Landscape

    Note that in e70, the resolution is 352*416 in normal mode, so if you have background image of same size, then when you open e70 so that it goes to landscape mode, image is drawn from new top/left corner but since its dimension s dont match the new one lower part of the image is not shown since new height is 352 and remaining 64 pixels are drawn offscreen. Also the right part of the screen now has 64 pixel area where no background image is drawn. So you need to have graphics for both modes.If you do much dynamic drawing, then you could at the beginning of paint-method check width&height and draw stuff accordingly.

Similar Threads

  1. landscape to portrait switch.
    By ravinder007 in forum Symbian User Interface
    Replies: 1
    Last Post: 2007-03-14, 09:48
  2. N93 video output and landscape mode.
    By Peter_Eskolin in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2006-11-23, 21:54
  3. Themes with portrait and landscape modes supported?
    By geoff_h in forum Themes/Carbide.ui
    Replies: 7
    Last Post: 2006-11-11, 12:23
  4. Replies: 0
    Last Post: 2006-05-18, 16:56
  5. Nokia N90 Portrait to Landscape Mode
    By alokkumarsingh in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-12-14, 13:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •