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.
- 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.
Examples
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
widget = bdeGetTopLevelWidget();
dialog = bdeCreateBlockParametersDialogFromBlock(block, widget, false);
bdeSetBlockParametersDialogClosedOnEscapeKey(dialog, true);
bdeShowBlockParameterDialog(dialog);