×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    18

    can not input in find box

    Hi,

    I follow the lookup example from symbian cite and created a list box and find box. Everyting show up fine. But I can not input in the find box.

    The code looks like this:


    CAknSearchField* CLookupContainer::CreateFindBoxL(
    CEikListBox* aListBox,
    CTextListBoxModel* aModel,
    CAknSearchField::TSearchFieldStyle aStyle )
    {
    CAknSearchField* findbox = NULL;

    if ( aListBox && aModel )
    {
    // Gets pointer of CAknFilteredTextListBoxModel.
    CAknFilteredTextListBoxModel* model =
    STATIC_CAST( CAknFilteredTextListBoxModel*, aModel );
    // Creates FindBox.
    findbox = CAknSearchField::NewL( *this,
    aStyle,
    NULL,
    20 );
    CleanupStack::PushL(findbox);
    // Creates CAknListBoxFilterItems class.
    model->CreateFilterL( aListBox, findbox );
    //Filter can get by model->Filter();
    CleanupStack::Pop(findbox); // findbox
    }

    return findbox;
    }

    in constructL(), the call looks like this:

    iFindBox = CreateFindBoxL(iListBox, iListBox->Model(), CAknSearchField::EPopup );

    if ( iFindBox )
    {
    // Popup findbox is not shown when listbox display initial.
    iFindBox->MakeVisible( ETrue );
    }


    Any one know why?

    Thanks

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169
    have you checked the examles offer key function, you basically need to forward the keys to appropriate objects.

    yucca

Posting Permissions

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