Try OpenEdge Now
skip to main content
Programming Interfaces
External Program Interfaces : ActiveX Control Support : Managing ActiveX controls at runtime : Working with ABL key functions : RETURN and Default Buttons
 
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.