Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor rohanwaugh's Avatar
    Join Date
    Aug 2008
    Posts
    413
    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 ltomuta's Avatar
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,335
    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.

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 C++
    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. Creating ListBox at run time In sockets example
    By mubx2000 in forum Symbian C++
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved