Kbase P97137: How to make a user defined button behave like a SmartDialog CANCEL button?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  03/11/2004 |
|
Status: Unverified
GOAL:
How to make a user defined button behave like a SmartDialog CANCEL button?
GOAL:
How to assign the CANCEL-BUTTON attribute?
FACT(s) (Environment):
Windows
FIX:
Set the 'Auto-End-Key' and 'Cancel-Button' attributes to TRUE in the button's Property Sheet.
Alternatively, define a local InitalizeObject override procedure and insert the following statements after the RUN super statement:
BUTTON-1:AUTO-END-KEY IN FRAME {&FRAME-NAME} = TRUE.
FRAME {&FRAME-NAME}:CANCEL-BUTTON = BUTTON-1:HANDLE IN FRAME {&FRAME-NAME}.