Discussion Board

Results 1 to 5 of 5
  1. #1
    Super Contributor JackSu's Avatar
    Join Date
    Jul 2007
    Location
    Beijing, China
    Posts
    538
    hi,
    I use listbox with CAknSearchField. when input text in CAknSearchField, items in listbox are filtered. when no matched item can be found,"(no matches)" is shown in listbox.
    my question is: can i change the text content "(no matches)". can i change the vertical relative position to show the text.

    thanks.

  2. #2
    Registered User sharathn's Avatar
    Join Date
    Feb 2009
    Posts
    5
    Try setting the empty list text to the list box view by SetListEmptyTextL(const TDesC& aText). The text what you set will be shown.

  3. #3
    Super Contributor JackSu's Avatar
    Join Date
    Jul 2007
    Location
    Beijing, China
    Posts
    538
    "(no matches)" is still shown after i call function SetListEmptyTextL(KNullDesC)

  4. #4
    Super Contributor JackSu's Avatar
    Join Date
    Jul 2007
    Location
    Beijing, China
    Posts
    538
    if SetListEmptyTextL(KNullDesC) is called, when there is no item in listbox, text("no data") is removed. but when no item is matched when using CAknSearchField, the ("no matches") is still shown.
    how can i remove ("no matches") text?

  5. #5
    Registered User sharathn's Avatar
    Join Date
    Feb 2009
    Posts
    5
    hi ,

    Yes , List box checks the number of items in the array than the filtered array.
    Hence it works when there are no list items.

    I could not find any other method to change the text shown.

    -Sh

Similar Threads

  1. problem in ListBox
    By aditighosal in forum Symbian C++
    Replies: 8
    Last Post: 2008-07-16, 20:01
  2. Listbox...
    By harsh_vs in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-02-15, 20:29
  3. listbox not shown
    By sunny_singh in forum Symbian C++
    Replies: 1
    Last Post: 2005-08-13, 16:24
  4. Using a "custom" listbox in mobile s60
    By ctpthanh in forum Symbian User Interface
    Replies: 4
    Last Post: 2005-04-17, 14:46
  5. How to change the "No data" in a listbox
    By dnjpsil in forum Symbian User Interface
    Replies: 1
    Last Post: 2005-04-06, 14:20

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