×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    98

    Listbox and kinetic scrolling problem *solved*

    Hi,

    I have weird problem with CAknDoubleGraphicStyleListBox

    Kinetic scrolling wont work its really hard to scroll list without it.

    I have 2 views and in other view kinetic scrolling works ok and another one not :)

    Was there something what I need to enable in listbox to get it work?

    Working listbox items are loaded right away and not working listbox items
    are added async.. so first there is zero items and then those are added one by one. Can this cause problem?

    5.0 sdk / n97 mini
    Thanks
    Last edited by miikkis; 2010-04-25 at 16:50.

  2. #2
    archerabi
    Guest

    Re: Listbox and kinetic scrolling problem

    From what i remember you have to create and enable scrollbarframe.

    Code:
    iListBox->CreateScrollBarFrameL(ETrue);
    	iListBox->ScrollBarFrame()->ScrollBarVisibility(CEikScrollBar::EVertical);
    	iListBox->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto);

  3. #3
    Registered User
    Join Date
    Nov 2007
    Posts
    98

    Re: Listbox and kinetic scrolling problem

    Quote Originally Posted by archerabi View Post
    From what i remember you have to create and enable scrollbarframe.

    Code:
    iListBox->CreateScrollBarFrameL(ETrue);
    	iListBox->ScrollBarFrame()->ScrollBarVisibility(CEikScrollBar::EVertical);
    	iListBox->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto);
    There is

    Code:
    iList->CreateScrollBarFrameL( ETrue );
    iList->ScrollBarFrame()->SetScrollBarVisibilityL(
    	                 CEikScrollBarFrame::EOn,
    	                 CEikScrollBarFrame::EAuto );

    I think it will do same thing, but kinetic still not working :)

  4. #4
    Registered User
    Join Date
    Nov 2007
    Posts
    98

    Re: Listbox and kinetic scrolling problem

    Ok I wound the problem. In view where I use listbox I also draw couple icons.

    Icons are located top of listbox and listbox is shrinked so both can be seen.

    thats why I needed do overwrite coecontrol::draw and this causes kinetic scrolling problem.

    Any does anyone know How to call listbox orginal draw from draw function? Or any other solutions
    to get kinetic scrolling work with icons on the screen


    Thanks

  5. #5
    Registered User
    Join Date
    Nov 2007
    Posts
    98

    Re: Listbox and kinetic scrolling problem

    Ok got it work there wasnt anything wrong with draw itself. In draw there was iList->setrect and ilist->setextend called when I removed those everything worked nicely. Funny that it worked ok in 3.2 devices. :)

Similar Threads

  1. How to implement kinetic scrolling?
    By svdwal in forum Symbian User Interface
    Replies: 8
    Last Post: 2010-01-28, 14:36
  2. kinetic scrolling on N97
    By xlazom00 in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-12-21, 13:06
  3. highlight frame in listbox not compatible across firmware releases
    By olivier_randria in forum Symbian User Interface
    Replies: 0
    Last Post: 2009-12-07, 16:05
  4. How to make kinetic scrolling effect on listbox?
    By Mozart2007 in forum Symbian
    Replies: 1
    Last Post: 2009-07-16, 05:08

Posting Permissions

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