Kbase P89305: How to determine the name of a WIDGET in a FRAME that had input focus prior to a LEAVE event?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  26/07/2004 |
|
Status: Unverified
GOAL:
How to determine the name of a WIDGET in a FRAME that had input focus prior to a LEAVE event?
FACT(s) (Environment):
Progress 9.x
FACT(s) (Environment):
OpenEdge 10.x
FIX:
Use the WIDGET-LEAVE Attribute of the LAST-EVENT System Handle. The following code messages the name of the WIDGET in the FRAME that had input focus prior to the last LEAVE event?
ON LEAVE OF FRAME DEFAULT-FRAME
ANYWHERE DO:
DEFINE VARIABLE hLeave AS HANDLE NO-UNDO.
ASSIGN
hLeave = LAST-EVENT:WIDGET-LEAVE NO-ERROR.
IF VALID-HANDLE(hLeave) THEN
MESSAGE hLeave:NAME
VIEW-AS ALERT-BOX INFO BUTTONS OK.
END.