Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor Alicia_S60's Avatar
    Join Date
    Nov 2004
    Posts
    73
    I can't type anything to my text box.. I have used 'OfferKeyEvent' but it is not responding to my keystrokes.. Is there any role for 'MCoeControlObserver' to listen keystrokes? Please help..

  2. #2
    Regular Contributor anttij's Avatar
    Join Date
    Mar 2003
    Posts
    61
    Your control is on some view? First, you have to enable keyboard events for your view by calling CEikAppUi::AddToStackL, putting your view to the control stack. Secondly, you have to route the keyboard events to your text editor object:

    CMyView::OfferKeyEventL(...)
    return iMyEditor->OfferKeyEventL(...)

    If you have many controls on the same view, you have to code how focus is shifted to/from controls and know which is the control that has focus. Offer the key events to that control.

  3. #3
    Regular Contributor Alicia_S60's Avatar
    Join Date
    Nov 2004
    Posts
    73
    But i have implemented those but still fails to listen key strokes.. I am working in UIQ using codewarrior..... Can u please jus send me a sample code...

  4. #4
    Super Contributor sopta007's Avatar
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    Isn't it possible the you use some flags (when creating the editor) which prevents input capabilities of the control (like some read only, no input, etc..) Could you tell us how exactly are you constructing the control?

  5. #5
    Regular Contributor Alicia_S60's Avatar
    Join Date
    Nov 2004
    Posts
    73
    I have get rid of key problem.... Now my problem is i cannot list in to combobox.. How can i add lists in to combo box..
    Please Help

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