bdeSetBlockParameterDialogRunButtonFunctionMT

Adds and sets a run button to a dialog box for when the interpreter is in multithreaded mode. When the button is pressed the function, functionName, is ran.

Syntax

bdeSetBlockParameterDialogRunButtonFunctionMT(dialog, functionName)

Inputs

dialog
The dialog box that will have run button set.
Type: dialog
functionName
The name of the function that will be ran when the run button is pressed and the oml interpreter is in multithreaded mode.
Type: string

Examples

Set a run button in a dialog box for when the interpreter is in multithreaded mode:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          widget = bdeGetTopLevelWidget();
          dialog = bdeCreateBlockParametersDialogFromBlock(block, widget, false);
          bdeSetBlockParameterDialogRunButtonFunctionMT(dialog, 'runFunction');