×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    413

    How to store previously selected items in Listbox selected on next run?

    hi all,

    I have developed application in which i have displayed phone contacts in listbox.User will select multiple contacts and will save that contacts in file. Now user will exit the application and when he will run the application next time i wanted to show him previously selected contacts as selected. SO anybody has any idea?

    I know the following API-

    iListBox->View()->SelectItemL( 1 );
    iListBox->View()->DeselectItem( 0 );

    But the problem is user may add/delete contacts so this index will change giving wrong results.If anybody has any idea it is welcome.


    Thanks and regards.

    Rohanwaugh.

  2. #2
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: How to store previously selected items in Listbox selected on next run?

    You will have to store information about the current selected contact when the application exits and then on the next run, locate those contacts in the list and mark them as selected, regardless of their [new] position in the list.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

Similar Threads

  1. How to create Listbox with items with additional text(date) to the right
    By stargate88 in forum Symbian User Interface
    Replies: 7
    Last Post: 2009-10-30, 15:01
  2. deselect all listbox items
    By morost in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-04-21, 07:58
  3. storing listbox items to file/stream/store???
    By doesitmatter in forum Symbian
    Replies: 6
    Last Post: 2008-02-20, 21:02
  4. Adding Items to Custom ListBox at runtime
    By nickyc in forum Symbian User Interface
    Replies: 0
    Last Post: 2007-05-01, 14:15
  5. Replies: 0
    Last Post: 2006-09-05, 04:43

Posting Permissions

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