×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    60

    ListBox, How to get Unselected Indexes??

    Hi,

    I know i can get selected items with this:

    selectionIndexes = myListBox->SelectionIndexes();



    but how can i get the unselected indexes???

    selectionIndexes = myListBox-> ???



    Thanks in advance!

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,752

    Re: ListBox, How to get Unselected Indexes??

    It is not stored, so there is no getter for it.
    A simple approach could be filling an array with all indexes, and removing the selected ones from it. Like an RArray<TInt>. Since the indexes are ordered, FindInOrder can be used for efficient lookup, then Remove for removal.
    Checking if SelectionIndexes is an ordered array may enable some tricks with nested loops.

  3. #3
    Registered User
    Join Date
    Mar 2012
    Posts
    60

    Re: ListBox, How to get Unselected Indexes??

    thanks! will try this.

Similar Threads

  1. CAknDoubleGraphicStyleListBox Selection Indexes Problem
    By amrok90 in forum Symbian User Interface
    Replies: 1
    Last Post: 2012-02-02, 16:21
  2. Replies: 12
    Last Post: 2009-06-25, 14:09
  3. Problem: Indexes of CDesCArray set to the Listbox.
    By digitaltejas in forum Symbian
    Replies: 2
    Last Post: 2004-08-10, 08:10
  4. Replies: 1
    Last Post: 2003-04-01, 11:34

Posting Permissions

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