Main Content

getDialogControl

Class: Simulink.Mask
Package: Simulink

Search for a specific dialog control on the mask

Syntax

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

Description

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

Input Arguments

cname

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

Output Arguments

control

Target dialog control being searched on the mask dialog.

phandle

Parent of the dialog control being searched mask dialog.

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')