You Are Here:

Community: Developer Discussion Boards

#1 Old How to add a list on a Canvas?? - 2006-11-21, 00:10

Join Date: Nov 2006
Posts: 11
Send a message via Skype™ to Rodrigo82
Rodrigo82
Offline
Registered User
Hi everybody!

I would like to know if it´s possible to add a List on a Canvas?? and How??
If not... could anybody tell me how can I do a good looking menu or form?? Or just some advice. Please I need help!! Thank you very much!
Reply With Quote

#2 Old Re: How to add a list on a Canvas?? - 2006-11-21, 00:34

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
hi,

list is a set of items,
so if you has an array of items you could show them on view by drawing,
with canvas that is just all "draw" methods from graphics object,
e.g. "menu list' is also a list:
http://discussion.forum.nokia.com/fo...ad.php?t=88418
not easy,
I've don't remember if source files are posted here at all,
You can however find examples of such custom low-level List implementation by looking into Nokia sample source files that comes with Nokia SNAP SDK:
http://www.forum.nokia.com/info/sw.n...lient_SDK.html
Nokia has customized List drawn on Canvas build upon custom graphics-items (using images and drawn strings), but that's rather hard to start with,

regards,
Peter
Reply With Quote

#3 Old Re: How to add a list on a Canvas?? - 2006-11-21, 12:04

Join Date: Nov 2006
Posts: 11
Send a message via Skype™ to Rodrigo82
Rodrigo82
Offline
Registered User
Thanks a lot Peter,

Let me see if I understood... So if I want to make a good looking list, I could build the list as a normal List and then draw each element with Canvas, right?
Ok, another question: If I want to select each Item of my List. Should I handle key events like going up and down on the list and then redraw my Canvas to simulate a selected or focused item?? If not could you help me again. Sorry if my english is not the best but I´m from Spain I hope you can understand me. Thank you again for your help

regards

Rodrigo
Reply With Quote

#4 Old Re: How to add a list on a Canvas?? - 2006-11-22, 01:54

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
hi,
yes, exactly, you need to handle key events to reflect element being focused on canvas and in your "model" (could be as simple as array and current index reference) - so when for example FIRE is pressed you know exactly which item is currently selected on screen, when DOWN/UP is pressed you advance menu item selector,
regards,
Peter
Reply With Quote

#5 Old Re: How to add a list on a Canvas?? - 2006-11-22, 12:28

Join Date: Nov 2006
Posts: 11
Send a message via Skype™ to Rodrigo82
Rodrigo82
Offline
Registered User
Hi!

Thank you very much again Peter, you helped me a lot! But now I have another doubt, each time I move the cursor over the screen, should I repaint the whole canvas, or is it possible just to redraw the selector cursor? So the drawing would be faster. Thanks again for your time

regards
Rodrigo
Reply With Quote

#6 Old Re: How to add a list on a Canvas?? - 2006-11-23, 01:01

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
hi,

look into Canvas and Graphics objects methods/properties,
you can draw only single item on canvas that way updating only part of screen, or limit clip rectangle to force redrawing only on part of the screen, etc,
thanks,
regards,
peter
Reply With Quote

#7 Old Re: How to add a list on a Canvas?? - 2006-11-23, 13:15

Join Date: Nov 2006
Posts: 11
Send a message via Skype™ to Rodrigo82
Rodrigo82
Offline
Registered User
Thank you very much again Peter!!
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
Implementing a List using Canvas, or something else jaazz Mobile Java General 8 2008-07-24 13:14
How to add a list in a Canvas?? Rodrigo82 Mobile Java General 1 2006-11-21 01:35
How to add items dynamically to the double pop menu style list box vinayakak Symbian User Interface 0 2005-12-07 09:16
6680 and bluetooth service profiles ceruault Mobile Java Networking & Messaging & Security 1 2005-10-08 23:24
Major problem with delegation to Canvas bartekn Mobile Java Media (Graphics & Sounds) 8 2003-10-08 18:46

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