bdeGetBlockParameterDialogButton

Returns the button of a given dialog box.

Syntax

dialogButton = bdeGetBlockParameterDialogButton(dialog, buttonName)

Inputs

dialog
The dialog box to get the button from.
Type: dialog
buttonName
The name of the button to get. Valid inputs include: 'OK', 'Cancel', 'Apply', 'Info'.
Type: string

Outputs

dialogButton
The button that is returned from the dialog box.
Type: string

Examples

Get a button of a given dialog box:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          widget = bdeGetTopLevelWidget();
          dialog = bdeCreateBlockParametersDiaglogFromBlock(block, widget, false);
          dialogButton = bdeGetBlockParameterDialogButton(dialog, 'on');
        

          
            dialogButton = uiPushButton