1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

apply last-event with any-key not working as expected

Discussão em 'StackOverflow' iniciado por fdantas, Outubro 26, 2016.

  1. fdantas

    fdantas Administrator Moderador

    I have an editor which is linked to a database field. When the user pushes certain keys the program should behave differently, for the rest of keys it should maintain the default behaviour. I am using this part of code:

    ON ANY-KEY OF editor_1 IN FRAME F-Main
    DO:
    APPLY LAST-EVENT:LABEL TO SELF.
    RETURN NO-APPLY.
    END.


    The problem is that when APPLY LAST-EVENT:LABEL is executed the editor does not behave as default.

    Some examples of the behaviour by default, i.e. when any-key is not triggered:

    • CTRL+C is used for copying selected text
    • CTRL+V is used for pasting the copyed text

    After triggering any-key in the editor, the program works like this:

    • CTRL+C aplication ABORTS
    • CTRL+V does not work
    • CURSORS DOWN/RIGHT/LEFT/UP do not work
    • BACKSPACE does not work

    Is there anyway of triggering any-key without overwritting the default behaviour?

    Note: Progress 4GL is v11.3 and is executed from windows.

    Continue reading...

Compartilhe esta Página