×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Dec 2004
    Location
    Bavaria / Germany
    Posts
    2

    Unhappy getHeight() doesn't get full height?

    Hi everyone!

    Can someone tell me how to retrieve and use the full height of my display?
    Currently I'm using a Nokia 6800 for testing my apps.

    If I use getHeight() it returns:

    the real display-height
    minus some space for commands at the bottom of the screen
    minus some space for the title of my application

    And even if I try to draw anything outsite the bounds of getHeight, getWidth(witch workes fine) it is clipped.
    Is there someone out there who can help me unleash my display?

    Thanks!

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    You need to use the com.nokia.mid.ui.FullCanvas class to get access to the whole screen. On Series 60 phones there is a bug and getHeight() still returns the height of the normal Canvas (144 instead of 208), and in these cases you need to hardcode the height.

    shmoove

  3. #3
    Registered User
    Join Date
    Dec 2004
    Location
    Bavaria / Germany
    Posts
    2
    Thanks shmoove!

  4. #4
    Registered User
    Join Date
    Nov 2004
    Posts
    1
    what if i am using the GameCanvas class of the MIDP 2.0?
    does it mean that i cant use the it anymore?

Posting Permissions

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