KeyPress event behaviour

Discussion in 'Questions (Windows Mobile)' started by claudio, Jun 10, 2009.

  1. claudio

    claudio Member Licensed User

    Hi everybody!

    I have a problem with KeyPress event.

    I would like to manage the special keys cDownKey and cUpKey but the form react to it only when no one control have the focus.

    If i give the focus to a control, the form can't receive the event and the SpecialKeys event is used by the system to navigate on controls. This is ok, but when the focus falls on a TextBox the navigation stops because that events are used to move the caret, so i need to tap on screen to change focus.

    There are a way to change this behaviour? On Delphi i remember a property which gives the events to the back form if they are not recognized, there are something similar in b4p or .NET?

    I attach a sample

    Many thanks

    Attached Files:

  2. claudio

    claudio Member Licensed User


    fgControls library contain the fgGetAsyncKeyState object which intercept all keys sent to the form. :)

    Thanks Filippo!

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice