| Reply | « Previous Thread | Next Thread » |
|
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! |
|
Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
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 |
| peterblazejewicz |
| View Public Profile |
| Find all posts by peterblazejewicz |
|
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 |
|
Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
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 |
| peterblazejewicz |
| View Public Profile |
| Find all posts by peterblazejewicz |
|
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 |
|
Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
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 |
| peterblazejewicz |
| View Public Profile |
| Find all posts by peterblazejewicz |
|
Thank you very much again Peter!!
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| 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 |