bdeSetBlockParametersDialogAcceptedOnEnterKey

Sets the option to accpet the given values and exit the dialog box using the enter key. It is the same as pressing apply and ok.

Syntax

bdeSetBlockParametersDialogAcceptedOnEnterKey(dialog, flag)

Inputs

dialog
The dialog box to set the functionality of the enter key.
Type: dialog
flag
Boolean value to decide whether it is possible to accept values and exit using the enter key. true to accept and exit using the enter key, false to not accept and exit using the enter key.
Type: Boolean

Examples

Set a given dialog box to be able to accept the values and exit using the enter key:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          widget = bdeGetTopLevelWidget();
          dialog = bdeCreateBlockParametersDiaglogFromBlock(block, widget, false);
          bdeSetBlockParametersDialogClosedOnEscapeKey(dialog, true);
          bdeShowBlockParameterDialog(dialog);