Kbase P27268: A key event trigger should not be defined for a procedure bu
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  19/06/2003 |
|
Status: Unverified
FACT(s) (Environment):
Dynamics
SYMPTOM(s):
Key event trigger for window does not work when defining trigger at run time
Using following code in containrcustom.p/initializeObject:
ON CTRL-TAB OF TARGET-PROCEDURE ANYWHERE PERSISTENT
RUN MyProc IN TARGET-PROCEDURE.
CAUSE:
Problem is that the trigger is defined for the procedure object instead of the Window Widget
FIX:
Do the following after RUN SUPER in containrcustom.p/initializeObject:
RUN SUPER.
DEF VAR hWin AS HANDLE NO-UNDO.
hWin = DYNAMIC-FUNCTION('getContainerHandle':U).
ON CTRL-TAB OF hWin ANYWHERE PERSISTENT
RUN keyChangeFolderPage IN TARGET-PROCEDURE.