bdeGetBlockParametersDialogAcceptedOnEnterKey

Returns a value that represents whether it is possible to accept the values and exit the dialog box using the enter key.

Syntax

acceptEnter = bdeGetBlockParametersDialogAcceptedOnEnterKey(dialog)

Inputs

dialog
The dialog to check if it is possible to accept values and exit using the enter key.
Type: dialog

Outputs

acceptEnter
Boolean value that decides whether it is possible to accept values and exit using the enter key. 1 to accept and exit using the enter key, 0 to not accept and exit using the enter key.
Type: Boolean

Examples

Check if it is possible to accept values and exit a dialog box using the enter key:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          widget = bdeGetTopLevelWidget();
          dialog = bdeCreateBlockParametersDialogFromBlock(block, widget, false);
          acceptEnter = bdeGetBlockParametersDialogAcceptedOnEnterKey(dialog);
        

          
            acceptEnter = 1