×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    3

    Question List box navigation problem

    Hello all,
    I am a beginner with Symbian S60 (3rd), and I am not able to nagivate/surf through the items of my ListBox.
    I have contructed my ListBox dynamically and from a resource file too. In both cases the items are displayed but I cant go up and down. It just does not move.
    Is there any method I should overide? If so, could you show me the code, please?

    Thanks,
    amartini.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,168

    Re: List box navigation problem

    WElcome to the forum. Basically you need to forward key events to the controls, thus in your containers Offerkey functions, just implement forwarding that calls the listbox's offerkey function, then it should work fine.

    yucca

  3. #3
    Regular Contributor
    Join Date
    Apr 2006
    Location
    Malaysia
    Posts
    246

    Re: List box navigation problem

    Hi,

    Maybe you should insert :


    void CListboxView::DoActivateL(const TVwsViewId& /*aPrevViewId*/,
    TUid /*aCustomMessageId*/,
    const TDesC8& /*aCustomMessage*/)
    {
    iListBoxContainer = CMarkableListContainer::NewL(ClientRect());

    iListBoxContainer->SetMopParent(this);

    AppUi()->AddToStackL(*this, iListBoxContainer);
    InitializeListBoxL();
    }
    Regards,
    Nini

  4. #4
    Registered User
    Join Date
    Nov 2006
    Posts
    3

    Question Re: List box navigation problem

    Hello yucca,
    thank you for your reply.

    this is what i am doing:

    TKeyResponse CUITestGuiAppView::OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType)
    {
    return iListBox->OfferKeyEventL(aKeyEvent, aType);
    }

    The fact is that when I press a key, the function above is not called (I put a breakpoint there).

    1) Is there any other function I should override in my View?
    2) Do I have to enable something in my rss?

    regards,
    amartini

  5. #5
    Registered User
    Join Date
    Nov 2006
    Posts
    3

    Re: List box navigation problem

    Hello nini
    I just added
    AddToStackL( iAppView );

    im my UI (ConstructL function) class and it worked.

    Thank you!
    regards
    amartini

Similar Threads

  1. problem with list box
    By srkreddy999 in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-09-30, 10:44
  2. Last item in the list box
    By krnsoft in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-11-09, 03:29
  3. Set events on list Box items
    By santoshudipi in forum Symbian User Interface
    Replies: 3
    Last Post: 2003-08-18, 11:45
  4. setting list problem
    By ddhungry in forum Symbian
    Replies: 0
    Last Post: 1970-01-01, 02:00
  5. setting list problem
    By ddhungry in forum Symbian User Interface
    Replies: 0
    Last Post: 1970-01-01, 02:00

Posting Permissions

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