Creating a Dynamic User Dialog Box

DIAdem 2018 Help


Edition Date: June 2018
Part Number: 370858P-01
View Product Info

DOWNLOAD (Windows Only)


DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help
DIAdem 2020 Help
DIAdem 2020 SP1 Help

In self-defined user dialog boxes, use scripts to change controls from visible to invisible and vice versa. Complete the following steps to generate a dynamic user dialog box:

  1. Select the DIAdem SCRIPT panel.

  1. Select Edit»Create Dialog Box.

  2. Select View»Catalog.

  3. Click and drag the Standard Dialog from the Catalog window into the dialog box interface.

  4. Select View»Script View to open the script editor. Enlarge the editor window if necessary.

  5. Select the event EventClick under Dialog in the event tree of the script editor.

  6. Enter or copy the following text into the script editor:

    Sub Dialog_EventClick(ByRef This)
      If NILogo.Visible = 0 Then 'Logo is invisible
        NILogo.Visible = 1       'Make logo visible
      Else                       'Logo is visible
        NILogo.Visible = 0       'Make logo invisible
      End If
    End Sub
    Note  Add the above text to the lines generated automatically by the script editor.

    Select File»Save As and save the file as Test.sud.

  7. Select View»Test in DIAdem to test the functions of the user dialog box.

  8. Click the dialog box several times. Each time you click, DIAdem executes the event Dialog_EventClick, which displays and hides the logo alternately.

  9. Close the user dialog box in DIAdem.

Note  Use layers in user dialog boxes to make several controls invisible. The Layer property makes all the controls in one layer visible or invisible.
Note  Use the TabPageCtrl control to define a register that can contain several overlapping tabs. Each tab can contain any number of controls. This group of controls enables you to clearly display a number of controls in one user dialog box.

Examples

Analyzing and Displaying Channels Section by Section | Checking Dialog Box Entries | Dynamic User Dialog Box | Translating User Dialog Boxes | User Dialog Box for Entering Text and Numbers | User Dialog Box for Sequence Control | User Dialog Box in DIAdem VIEW | User Dialog Box in VIEW for the Calculation of the FFT and Harmonic Frequencies | User Dialog Box with Changing Background Color | User Dialog Box with Curve Preview | User Dialog Box with Extended Table | User Dialog Box with Internet Explorer | User Dialog Box with Scalable Table | User Dialog Box with Selection Lists | User Dialog Box with Selection Lists | User Dialog Box with Subdialog Boxes | User Dialog Box with Tables | User Dialog Box with Tree | Wizard for Tolerance Evaluation

WAS THIS ARTICLE HELPFUL?

Not Helpful