Main Content

Simulink.dialog.Panel Class

Namespace: Simulink.dialog
Superclasses: Simulink.dialog.Container, Simulink.dialog.Control

Create instance of panel dialog control

Description

The Simulink.dialog.Panel class enables you to manage dialog control elements in panels in a mask dialog box. To create a panel dialog control, get the mask object and add a panel dialog control element to it. For more information on adding dialog control elements to a mask dialog box, see addDialogControl. To manage dialog control elements in a panel, use methods of the Simulink.dialog.Panel class.

The Simulink.dialog.Panel class is a handle class.

Class Attributes

ConstructOnLoad
true
HandleCompatible
true

For information on class attributes, see Class Attributes.

Properties

expand all

Identifier of the panel dialog control, specified as a string scalar or character vector.

Example: 'Panel1'

Attributes:

GetAccess
public
SetAccess
public
GetObservable
true
SetObservable
true

Data Types: string | char

Placement of the panel dialog control, specified as one of these values:

  • 'new' — Place the panel dialog control in a new row in the mask dialog box.

  • 'current' — Place the panel dialog control in the same row as the previous dialog control in the mask dialog box.

Attributes:

GetAccess
public
SetAccess
public
GetObservable
true
SetObservable
true

Option to edit parameters in the mask dialog box, specified as one of these values:

  • 'on' — You can edit the parameters within the panel in a mask dialog box.

  • 'off' — You cannot edit the parameters within the panel in a mask dialog box.

Attributes:

GetAccess
public
SetAccess
public
GetObservable
true
SetObservable
true

Option to display the panel in the mask dialog box, specified as 'on' or 'off'.

Attributes:

GetAccess
public
SetAccess
public
GetObservable
true
SetObservable
true

Option to justify the text boxes of edit and popup parameters within the panel dialog control, specified as one of these values:

  • 'on' — Justify text boxes within the panel dialog control based on the longest parameter prompt.

  • 'off' — Do not justify text boxes.

Attributes:

GetAccess
public
SetAccess
public
GetObservable
true
SetObservable
true

Child dialog controls of the panel dialog control, specified as a character vector.

Example: '[1×4 Simulink.dialog.parameter.Control]'

Attributes:

GetAccess
public
SetAccess
private
GetObservable
true
SetObservable
true

Data Types: char

An informative message that appears when you point to an instance of the panel dialog control, specified as a string scalar or character vector.

Example: 'Input Parameters'

Attributes:

GetAccess
public
SetAccess
public
GetObservable
true
SetObservable
true

Data Types: char | string

Methods

expand all

Alternatives

You can manage panel dialog control elements using the Property editor in the Mask Editor dialog box. For more information, see Property editor.

Version History

Introduced in R2013b