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