Discussion Board

Results 1 to 2 of 2

Thread: scrolling

  1. #1
    Registered User jitendra_j2me's Avatar
    Join Date
    Sep 2008
    Posts
    1
    i hav a problem. i hav to shown 20-30 items on an canvas one after another. but i dont know to scroll the canvas. please help me.

  2. #2
    Regular Contributor amitmishra19's Avatar
    Join Date
    Apr 2007
    Posts
    220
    Hi,

    To perform scrolling through canavs you have wrtie you own routine that should do following-
    1-divide the canvas in three sections- status pane, main pane and command pane.
    2- Now you need to decide teh height of every item and the number of item that will fit at once in your main pane.
    3- store your items in a vector and draw the max. number of viewable items on to the canvas.
    4- Now override the keyPressed() method to trap the DOWN key.
    5- As soon as the DOWN key is pressed then take next lot of items from teh vector and redraw the screen.

    Hope this will help you.

    Regards
    Amit

Similar Threads

  1. Scrolling in Dialog resource.
    By mahavirjain in forum Symbian User Interface
    Replies: 12
    Last Post: 2008-06-18, 09:34
  2. CEikEdwin Scrolling Problem
    By sahdev_nitin in forum Symbian C++
    Replies: 2
    Last Post: 2008-01-30, 09:55
  3. Horizontal scrolling in List Boxes
    By urrg in forum Symbian User Interface
    Replies: 3
    Last Post: 2004-11-23, 09:30
  4. How to create moto gp type scrolling road ?
    By abhishek_in2000 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2004-01-13, 06:49
  5. CAknDialog. How do I change CBA, Title and handle scrolling?
    By mmalo in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-02-27, 15:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved