×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    111

    5TH OfferKeyEventL problem

    Hi,


    I write own class, this class inherit from CAknTextQueryDialog.

    I write OfferKeyEventL function to catch CBA key event. On 3rd its working ok, I can catch all key event, but in 5th (5800) I have problem with catching CBA button (touch button), another key are cached normally.

    Thank for Your help.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: 5TH OfferKeyEventL problem

    It may easily happen that they do not raise any key event you could detect. Try overriding other handler methods.

  3. #3
    Registered User
    Join Date
    Jul 2007
    Posts
    111

    Re: 5TH OfferKeyEventL problem

    I try overriding CAknTextQueryDialog::HandlePointerEventL but also nothing happens.

    Any suggestion ? I am new in 5th, maybe I miss smth.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: 5TH OfferKeyEventL problem

    HandlePointerEventL is not a good pick, because CBA operates on its own. Try the "traditional" OkToExitL for example.

  5. #5
    Registered User
    Join Date
    Jul 2007
    Posts
    111

    Re: 5TH OfferKeyEventL problem

    Ok thanks its working, but i have stil problem with get key code. OkToExitL only give me TInt aButtonId and I need to now key code.

    Another question, why OfferKeyEventL is not called when cba was pushed on 5800.

  6. #6
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: 5TH OfferKeyEventL problem

    On a non-touch device the CBA action is triggered by a key press while on a touch based device this key simply does not exist. No key = no key event.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

Similar Threads

  1. S60 5th SDK 1.0 problem with carbide.vs 2.0
    By ericcwhung in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2009-03-20, 13:58
  2. Problem in Porting Application from 3rd edition to 5th edition
    By manish.agarw in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-03-19, 04:47
  3. OfferKeyEventL problem
    By rajesh1410 in forum Symbian
    Replies: 1
    Last Post: 2007-01-09, 09:17
  4. problem with offerkeyeventl on container
    By rkckolla in forum Symbian User Interface
    Replies: 5
    Last Post: 2004-11-08, 06:06
  5. problem with offerkeyeventL in dialog
    By rkckolla in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-11-06, 01:08

Posting Permissions

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