×

Discussion Board

Results 1 to 2 of 2

Thread: scrolling

  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    1

    scrolling

    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
    Join Date
    Apr 2007
    Posts
    220

    Re: scrolling

    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
  •