bdeSetBlockParameterDialogSaveAsButtonFunction

Adds a save as button to a dialog box. When the button is pressed the function, functionName is ran.

Syntax

bdeSetBlockParameterDialogSaveAsButtonFunction(dialog, functionName)

Inputs

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

Examples

Set a save as button in a dialog box:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          widget = bdeGetTopLevelWidget();
          dialog = bdeCreateBlockParametersDiaglogFromBlock(block, widget, false);
          bdeSetBlockParameterDialogSaveAsButtonFunction(dialog, 'saveAsFunction');