×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    216

    Unhappy Symbian Bug on ListBox !!!

    hi all
    i faced strange problem on using list Box on symbian : i have ListBox With search field enable on it to search for specific item on list , and when i write any character and then sub list box created with my character filter then the index of new list box begin with zero ( 0 ) ; and that's OK , but when i call iListBox->View()->CurrentItemIndex() function it return the current index of filtered list box beginning from 0 and when I do any operation on this item index it applied on the index of non filtered list box , finally i want the appropriate way to use list box with search field enabled like contact list and their operation ( modify , delete , getValue , ...) .
    thanks & regard

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

    Re: Symbian Bug on ListBox !!!

    It is not a bug, and you can get the normal index with this piece of code:

    TInt CurrentItem = iListBox->View()->CurrentItemIndex ();
    CAknFilteredTextListBoxModel* Model = STATIC_CAST (CAknFilteredTextListBoxModel*, iListBox->Model ());
    CurrentItem = Model->Filter()->FilteredItemIndex (CurrentItem);

  3. #3
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    216

    Smile Re: Symbian Bug on ListBox !!!

    yes yucca it work fine thank you very much but when i search for number that not found on list this error occur :
    E32USER-CBase 21 , can you please help me
    thank you again

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

    Re: Symbian Bug on ListBox !!!

    you could check SDK docs for the error, it says "This panic is raised by any operation which accesses an element of an array by explicit reference to an index number, for example, the Delete(), InsertL() and At() member functions or the operator Operator[]. It is caused by specifying an index value which is either negative or is greater than or equal to the number of objects currently within the array. "

Similar Threads

  1. Replies: 35
    Last Post: 2009-04-11, 14:36
  2. Listbox...
    By harsh_vs in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-02-15, 20:29
  3. Current Symbian Development Opportunities...!!
    By mobile2004 in forum Symbian
    Replies: 0
    Last Post: 2005-01-17, 17:58
  4. Symbian socket close bug?
    By matdodgson in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2004-03-26, 13:35
  5. Replies: 1
    Last Post: 2003-12-19, 19:48

Posting Permissions

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