×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    4

    help to tell me how do a action when type something in editor

    help to tell me how do a action when type something in editor.
    I have 2 components in a compound control.top is a editor who has input text bar,and bottom is a listbox who has item.the listbox 's items will be searched by text inputed in editor dynamicly. therefor I want to do a search action when some one typing in editor.but the problem is how can I catch this event
    is in OfferKeyEvent() and how to catch in detail?

    thanks in advance

  2. #2
    Regular Contributor
    Join Date
    Apr 2005
    Location
    Indonesia
    Posts
    73
    If U mean like phone book search. There are some example on forum.nokia.com.

    But if U using an Edwin for search the list, U can try this :
    Code:
    TKeyResponse CView::OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType)
    	{
    	if (iEdwinSearch->OfferKeyEventL(aKeyEvent, aType) == EKeyWasConsumed)
    		{
    		TBuf<100> SearchText;
           	 	iEdwinSearch->GetText(SearchText);
    		/* Put some function for search the list using given text (SearchText)*/
    		}
    	}

  3. #3
    Regular Contributor
    Join Date
    Mar 2005
    Location
    Bangalore,India
    Posts
    306
    why can't u used CAknSelectionListDialog?

Posting Permissions

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