getDialogControl

Class: Simulink.dialog.Container
Package: Simulink.dialog

Search for a specific dialog control on the mask

Syntax

[control, phandle] = handle.getDialogControl(controlIdentifier)

Description

[control, phandle] = handle.getDialogControl(controlIdentifier), search for a specific child dialog control recursively on the mask dialog box.

Input Arguments

controlIdentifier

Name of the dialog control being searched on the mask dialog box.

Output Arguments

control

Target dialog control being searched on the mask dialog box.

phandle

Parent of the dialog control being searched mask dialog box.

Examples

Find a dialog control

Find a text dialog control on the mask dialog box. maskObj is the handle to the mask object. The getDialogControl method returns the handle to the dialog control (hdlgctrl) and handle to the parent dialog control (phandle).

[hdlgctrl, phandle] = maskObj.getDialogControl('txt_var')