bdeSetBlockParameterDialogRunButtonFunction
Adds and sets a run button to a dialog box. When the button is pressed the function, functionName is ran.
Syntax
bdeSetBlockParameterDialogRunButtonFunction(dialog, functionName)
Inputs
- dialog
- The dialog box that will have run button set.
- functionName
- The name of the function that will be ran when the run button is pressed.
Examples
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
widget = bdeGetTopLevelWidget();
dialog = bdeCreateBlockParametersDialogFromBlock(block, widget, false);
bdeSetBlockParameterDialogRunButtonFunction(dialog, 'runFunction');