Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    May 2007

    How add vertical Scroll in canvas.

    I want to add vertical scroll in canvas. Is it supported? i yes than how?

  2. #2
    Registered User
    Join Date
    May 2007

    Re: How add vertical Scroll in canvas.

    I dont think you would be able to add a vertical scroll bar on to a canvas. However u can definetly code the logic to add vertical scroll. If u just need it to display text that u scroll...it would be very simple..al u need to do is split the text into an araay of string in such a way that the width of each text element is not greater then the screen width.

    later assuming u want to show 5 lines at atime and u have 10 lines what u could do is draw 5 lines using a for loop from 1-5 and then when u press down key u could draw from 2-6 and so on also when u press the up key u could draw from 1-5 again assuming u were at the 2nd line ...but make sure u don not crss the limits ie 1-10 as it may give u an arrayindex exception

Similar Threads

  1. Creating a Vertical Scroll Bar ?
    By ManoDasa in forum Symbian User Interface
    Replies: 3
    Last Post: 2006-04-27, 14:01
  2. Replies: 1
    Last Post: 2006-03-03, 23:57
  3. how to add canvas in form in midlet
    By mathi77in in forum Mobile Java General
    Replies: 1
    Last Post: 2005-07-13, 07:50
  4. Major problem with delegation to Canvas
    By bartekn in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2003-10-08, 17:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts