Main Content

Simulink.dialog.Button class

Package: Simulink.dialog

Create a button dialog control

Description

Use an instance of Simulink.dialog.Button class to add a button dialog control.

Properties

Name

Uniquely identifies the dialog control and is a required field.

Type: character vector

Prompt

Specifies the text displayed on the button dialog control.

Type: character vector

Default: empty

FilePath

Specifies the path to the image file to be shown on the button dialog control.

Type: character vector

Default: empty

Callback

Specifies the MATLAB® command (s) to be executed when the dialog control is invoked.

Type: character vector

Default: empty

Row

Specifies whether dialog control is placed on the current row or on a new row.

Type: character vector

Value: 'current'|'new'

Default: 'current'

Enabled

Indicates whether container is active on the mask dialog box.

Type: boolean

Value: 'on'|'off'

Default: 'on'

Visible

Indicates whether container is displayed on the mask dialog box.

Type: boolean

Value: 'on'|'off'

Default: 'on'