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