You Are Here:

Community: Developer Discussion Boards

#1 Old Wrong canvas size - 2009-03-25, 20:29

Join Date: Mar 2009
Posts: 8
jonasok
Offline
Registered User
Hi everybody

I'm developing an application, in which i'm using a canvas.

The problem is that the size of the canvas is wrong!
My physical screen resolution is 640 x 360, but getHeight returns 240 and getWidth return 360.

If I use setFullScreen(true) i get width = 360 and height = 360.

I have tried drawing something below 360, which didn't work.
Anything i try to draw below 240 or 360 won't show up. It's just black!


When i'm using a form, it fill's up the whole screen, as intended.


Have I forgotten any keys in the jad-file?

It works in the emulator.
I'm using a Nokia 5800 running
S60 5th., Symbian v. 9.4

I have been searching the forums, unfortunately without any luck!
Any help is much appreciated.

Jonas
Reply With Quote

#2 Old Re: Wrong canvas size - 2009-03-25, 20:55

Join Date: Jun 2003
Posts: 4,325
Location: Cheshire, UK
grahamhughes's Avatar
grahamhughes
Offline
Forum Nokia Champion
First rule... when using setFullScreenMode(), you need to use the sizeChanged() event to get the new screen size. On many devices, the size does not change immediately.

Second, you might find useful information in this wiki article.

Hope some of that helps.

Cheers,
Graham.
Reply With Quote

#3 Old Re: Wrong canvas size - 2009-03-25, 21:25

Join Date: Mar 2009
Posts: 8
jonasok
Offline
Registered User
It did!!

Thank you very much.

I didn't needed the setFullScreen. It was just an example. :)
I had already tried implementing the sizeChanged-method. But that doesn't make any difference.

I needed to set
Nokia-MIDlet-On-Screen-Keypad: no

Now it works!
Thanks again :)
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
Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird Problem with find box Kern-Exec-3 sohilr General Symbian C++ 7 2007-12-05 05:10
KERN-EXEC 3 with CEikEdwin acarrion Symbian User Interface 3 2007-10-17 15:43
S60 3rd FP1 emulator scn size issues.. John.Holloway Symbian Tools & SDKs 0 2007-07-06 15:21
Nokia 6600 Canvas Size vinaycore General Discussion 0 2003-09-10 13:31
6310i Emulator Canvas Size. fmhunter Mobile Java Tools & SDKs 1 2002-07-23 11:38

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: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d134434X 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