bdeGetBlockParameterDialogButton
Returns the button of a given dialog box.
Syntax
dialogButton = bdeGetBlockParameterDialogButton(dialog, buttonName)
Inputs
- dialog
- The dialog box to get the button from.
- buttonName
- The name of the button to get. Valid inputs include: 'OK', 'Cancel', 'Apply', 'Info'.
Outputs
- dialogButton
- The button that is returned from the dialog box.
Examples
Get a button of a given dialog box:
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
widget = bdeGetTopLevelWidget();
dialog = bdeCreateBlockParametersDialogFromBlock(block, widget, false);
dialogButton = bdeGetBlockParameterDialogButton(dialog, 'on');
dialogButton = uiPushButton