×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    5

    RE: stop a loop by a key event

    I'm guessing that you're using a "while" or a "for" loop to continuously do the preview? If so, this will stop all interaction because the app will just sit there in that loop.

    You need to do the preview as an active object. Have a look at the timer classes in the SDK (CPeriodic should do the job).
    It will give you a callback at regular intervals and you can update the preview - and the application interactions will still work.

    When you get the key press (via OfferKeyEventL as you describe), then stop the CPeriodic timer and take the picture.

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    1

    stop a loop by a key event

    Hello!

    I just a beginer, so I think this will be an easy question!

    I am developing a very easy mms client. My problem is that I make a camera continous preview, but I dont know how to stop the loop, an take the photo.

    I tried to handle key presses by:

    KeyResponse CFormView::OfferKeyEventL()

    and

    KeyResponse CTmbCamAppUi::HandleKeyEventL()

    but it does not work...


    Any idea?

Posting Permissions

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