Main Content

Simulink.dialog.Container.getDialogControl

Search for a specific dialog control on the mask

Description

example

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

Examples

collapse all

  • Find a dial 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 (control) and handle to the parent dialog control (phandle).

    [hdlgctrl, phandle] = maskobj.getDialogControl('Parameter4')
    
    hdlgctrl = 
    
      Dial with properties:
    
                     Name: 'Parameter4'
                    Scale: 'linear'
                      Row: 'new'
        HorizontalStretch: 'on'
                  Tooltip: ''
    
    
    phandle = 
    
      Tab with properties:
    
                  Name: 'Container6'
                Prompt: 'Main Controls'
               Enabled: 'on'
               Visible: 'on'
          AlignPrompts: 'off'
        DialogControls: [1×3 Simulink.dialog.parameter.Control]

Input Arguments

collapse all

Name of the dialog control being searched on the mask dialog box specified as a character vector.

Data Types: char | string

Output Arguments

collapse all

Target dialog control being searched on the mask dialog box.

Data Types: char | string

Parent of the dialog control being searched mask dialog box.

Data Types: char | string

Version History

Introduced in R2014a