RETURN and Default Buttons
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
RETURN and Default Buttons
In Windows, the RETURN key function (normally
the ENTER key) has special significance
in that it can invoke the default button in a dialog box. You can
program this functionality in ABL by designating a button as the DEFAULT-BUTTON of
a frame. However, because it is common for an ActiveX control to
specify its own use for the ENTER key,
ABL does not trap this key in ActiveX controls. Therefore, RETURN does
not activate the default button in an ABL frame if an ActiveX control
has focus.
To override this behavior, set the HonorReturnKeys property
to TRUE, so ABL can handle the RETURN key.