You Are Here:

Community: Developer Discussion Boards

#1 Old Listbox in "large" or "full" screen - 2008-03-25, 16:41

Join Date: Mar 2008
Posts: 57
nokia_e70
Offline
Regular Contributor
Hi guys

I don't know how it looks at your phones, but on my E70, making a Listbox in the screen modes "large" or "full" looks totally wrong. It misses the background in the lower part along with some other artifacts. Also the same thing happens when switching orientation to landscape (missing background and artifacts on the right side of the screen).
Reply With Quote

#2 Old Re: Listbox in "large" or "full" screen - 2008-03-25, 22:23

Join Date: Mar 2003
Posts: 936
Location: Espoo, Finland
JOM's Avatar
JOM
Online
Forum Nokia Champion
Not used listboxes yet, but had lots of fun debugging appuifw.Canvas callbacks. It's amazing when they get called by system... Most of the times it's almost logical!

Code:
    canvas = appuifw.Canvas(
       resize_callback = cb_handle_resize,
       redraw_callback = cb_handle_redraw)
Try to add lots of debugging code into your callbacks and figure out whether you're doing all resizing and redrawing that's needed, when needed and in right order. Try to slow down your computer to actually see how many times everything is redrawn. Shouldn't be too difficult

Well, good luck! Hoping it's your code and not a bug in pyS60

Btw if you use custom background graphics, you're sure to remember resizing it, too?
Reply With Quote

#3 Old Re: Listbox in "large" or "full" screen - 2008-03-25, 23:18

Join Date: Mar 2008
Posts: 57
nokia_e70
Offline
Regular Contributor
Quote:
Originally Posted by JOM View Post
Not used listboxes yet, but had lots of fun debugging appuifw.Canvas callbacks.
Yeah, and I go the other way round... gave up on listboxes, I'm gonna implement my own using the canvas.

Quote:
Try to add lots of debugging code into your callbacks and figure out whether you're doing all resizing and redrawing that's needed, when needed and in right order. Try to slow down your computer to actually see how many times everything is redrawn. Shouldn't be too difficult
Isn't it pointless to handle a resize event anyway? Redraw has to be fired anyway, right?

Quote:
Btw if you use custom background graphics, you're sure to remember resizing it, too?
I don't - I like the default system wallpaper, and that resizes automagically
Reply With Quote

#4 Old Re: Listbox in "large" or "full" screen - 2008-03-26, 18:52

Join Date: Mar 2003
Posts: 936
Location: Espoo, Finland
JOM's Avatar
JOM
Online
Forum Nokia Champion
Quote:
Originally Posted by nokia_e70 View Post
Isn't it pointless to handle a resize event anyway? Redraw has to be fired anyway, right?
Must handle resize, since I have full screen graphics. Also have to check that cursor remains on-screen after resize. Btw resize is called not only at normal-full change, but also when you rotate screen.

Most of the times resize calls redraw.. or at least someone calls, since few times I jump to redraw while in the middle of resize! Not too nice: I'm fixing new graphics, someone forces screen redraw with old graphics and when I'm done I have to call redraw myself
Reply With Quote

#5 Old Re: Listbox in "large" or "full" screen - 2008-03-26, 20:04

Join Date: Mar 2008
Posts: 57
nokia_e70
Offline
Regular Contributor
Quote:
Originally Posted by JOM View Post
Must handle resize, since I have full screen graphics.
Are You sure? Read on...

Quote:
Most of the times resize calls redraw..
That's exactly my point. When there is resize, there's also redraw. So there's no point in handling both. You could handle resize IN your redraw handler and throw out the resize handler altogether, so You don't have a racing condition between two conflicting handlers. After all, You can check the screen dimensions from the redraw handler to know if the resize has happened.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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 On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make listbox full screen? zhangwei_Nirvana Symbian User Interface 2 2008-01-29 13:53
Full screen listbox skin not rendered correctly template60 General Symbian C++ 2 2007-09-11 05:34
listbox in full screen mode has a white bar at the bottom shareqrahman General Symbian C++ 1 2007-09-07 15:18
How to refresh listbox screen? zerglim General Symbian C++ 4 2004-07-30 10:53
drawing a listbox that doesn't fill up the whole screen ThreeSixFiveOh Symbian User Interface 2 2003-11-21 10:30

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: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ