You Are Here:

Community: Developer Discussion Boards

#1 Old Unhappy getHeight() doesn't get full height? - 2004-12-07, 09:24

Join Date: Dec 2004
Posts: 2
Location: Bavaria / Germany
Send a message via ICQ to TKuun
TKuun
Offline
Registered User
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!
Reply With Quote

#2 Old 2004-12-07, 11:36

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
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
Reply With Quote

#3 Old 2004-12-07, 15:23

Join Date: Dec 2004
Posts: 2
Location: Bavaria / Germany
Send a message via ICQ to TKuun
TKuun
Offline
Registered User
Thanks shmoove!
Reply With Quote

#4 Old 2005-05-16, 09:51

Join Date: Nov 2004
Posts: 1
wilsoneden
Offline
Registered User
what if i am using the GameCanvas class of the MIDP 2.0?
does it mean that i cant use the it anymore?
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ