bdeSetBlockParameterDialogStopButtonFunction

Adds and sets a stop button to a dialog box. When the button is pressed the function, functionName is ran.

Syntax

bdeSetBlockParameterDialogStopButtonFunction(dialog, functionName)

Inputs

dialog
The dialog box that will have stop button set.
Type: dialog
functionName
The name of the function that will be ran when the stop button is pressed.
Type: string

Examples

Set a stop button in a dialog box:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          widget = bdeGetTopLevelWidget();
          dialog = bdeCreateBlockParametersDiaglogFromBlock(block, widget, false);
          bdeSetBlockParameterDialogStopButtonFunction(dialog, 'stopFunction');