bdeSetBlockParametersDialogClosedOnEscapeKey

Sets the option to exit the dialog box using the escape key.

Syntax

bdeSetBlockParametersDialogClosedOnEscapeKey(dialog, flag)

Inputs

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

Examples

Set a given dialog box to be able to exit using the escape key:

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