×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Mar 2009
    Posts
    114

    how to use search field with this list CAknSinglePopupMenuStyleListBox

    how to use search field with this list CAknSinglePopupMenuStyleListBox

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Posts
    1,009

    Re: how to use search field with this list CAknSinglePopupMenuStyleListBox

    Check this example, it has search fiels implemented with listbox.

    http://wiki.forum.nokia.com/index.ph...earch,_example
    Regards,
    Shafali

  3. #3
    Regular Contributor
    Join Date
    Mar 2009
    Posts
    114

    Re: how to use search field with this list CAknSinglePopupMenuStyleListBox

    its not working with CAknSinglePopupMenuStyleListBox type of list box i have checked it

  4. #4
    Regular Contributor
    Join Date
    Mar 2009
    Posts
    114

    Re: search field with this list CAknSinglePopupMenuStyleListBox

    CAknSinglePopupMenuStyleListBox* list = new(ELeave)CAknSinglePopupMenuStyleListBox;
    CleanupStack::PushL(list);

    CAknPopupList* popupList = CAknPopupList::NewL(list,R_AVKON_SOFTKEYS_OK_BACK, AknPopupLayouts::EMenuWindow);
    CleanupStack::PushL(popupList);

    list->ConstructL(popupList, 0);
    list->CreateScrollBarFrameL(ETrue);
    list->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto);

    //ItemArray
    list->Model()->SetItemTextArray(aList);
    list->Model()->SetOwnershipType(ELbmOwnsItemArray);

    popupList->SetTitleL(KtxPopUpTitle);

    popupList->EnableFind(ETrue); it shows the search field with popupmenu list box
    // Show popup list and then show return value.
    TInt popupOk = popupList->ExecuteLD();
    if (popupOk)
    {
    TInt Sel = list->CurrentItemIndex();
    if (Sel >= 0 && Sel < aList->MdcaCount())
    {
    aReturn.Copy(aList->MdcaPoint(Sel));
    SelectCountryL(aReturn);
    }
    }
    else
    {
    User::Exit(0);
    }

    CleanupStack::Pop(); // popuplist
    CleanupStack::PopAndDestroy(1); // list

Similar Threads

  1. Replies: 5
    Last Post: 2008-10-04, 11:45
  2. Search Field - KERN EXEC 3
    By Kavit Patel in forum Symbian C++
    Replies: 6
    Last Post: 2008-09-17, 12:59
  3. PANIC EXEC 3 while using a popup field into selection list mode.
    By anand_zain76 in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-05-15, 09:30
  4. search in a List class
    By pvermeulen in forum Mobile Java General
    Replies: 3
    Last Post: 2004-07-13, 20:32
  5. Phone List Search & then Phone Call
    By Nokia_Archive in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2002-05-16, 01:46

Posting Permissions

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