[stackoverflow] [progress Openedge Abl] Apply Last-event With Any-key Not Working As Expected

Status
Not open for further replies.
Y

Yaisa

Guest
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...
 
Status
Not open for further replies.
Top