bdeSetBlockParameterDialogOpenButtonFunction

Adds an open button to a dialog box. When the button is pressed the function, functionName is ran.

Syntax

bdeSetBlockParameterDialogOpenButtonFunction(dialog, functionName)

Inputs

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

Examples

Set an open button in a dialog box:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          widget = bdeGetTopLevelWidget();
          dialog = bdeCreateBlockParametersDiaglogFromBlock(block, widget, false);
          bdeSetBlockParameterDialogOpenButtonFunction(dialog, 'functionToRunOnOpenClick');