Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User hasiamar's Avatar
    Join Date
    Jul 2006
    Posts
    21
    Hi,
    I'm trying to provide a selection list for user to select by using CAknSelectionListDialog. The program is compiled fine, but when I run the program, the selection list do not show up the names of the items, but only blank selection lines are shown, like every list item name is blank.

    I know the array is with correct no. of items, because the blank items correspond to the actual no. of items that should be shown. This is the coding I used.

    CDesCArrayFlat* deviceArray = new (ELeave) CDesCArrayFlat(3);

    ...... ..... ....

    CAknSelectionListDialog* dlg;
    TInt index = 0;
    dlg = CAknSelectionListDialog :: NewL(index, deviceArray,R_CONTACTS_FILTER_MENU);
    dlg->PrepareLC(R_CONTACTS_FILTER_DIALOG);
    TInt selectedDevice = dlg->RunLD();

    ... ...

    Do anyone know why the CAknSelectionListDialog don't show up the item names. How can I solve this problem to show the names in the list.

  2. #2
    Registered User ronald29's Avatar
    Join Date
    May 2005
    Location
    Indonesia
    Posts
    198
    Hi hasiamar,
    have you put '\t' character in front of your every item? eg. \tItem1, \tItem2, etc.

    best regards,
    Ronald

  3. #3
    Registered User hasiamar's Avatar
    Join Date
    Jul 2006
    Posts
    21
    yes, it solved that problem.

    Thank you.

Similar Threads

  1. Displaying Information In a form from Listbox Item
    By mubx2000 in forum Symbian User Interface
    Replies: 26
    Last Post: 2007-05-26, 07:38
  2. names are not displaying from addressbook when somebody calls
    By sudir_babu in forum Series 40 & S60 Platform Feedback Archive
    Replies: 1
    Last Post: 2006-10-07, 11:34
  3. Displaying Information In a form from Listbox Item
    By mubx2000 in forum Symbian C++
    Replies: 7
    Last Post: 2006-10-07, 07:53
  4. Replies: 2
    Last Post: 2006-04-27, 07:58
  5. Replies: 1
    Last Post: 2006-03-21, 12:42

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