|DIAdem 2015 Help|
|DIAdem 2017 Help|
|DIAdem 2018 Help|
|DIAdem 2019 Help|
|DIAdem 2020 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:
Select the DIAdem SCRIPT panel.
Select Edit»Create Dialog Box.
Click and drag the Standard Dialog from the Catalog window into the dialog box interface.
Select View»Script View to open the script editor. Enlarge the editor window if necessary.
Select the event EventClick under Dialog in the event tree of the script editor.
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.
Select View»Test in DIAdem to test the functions of the user dialog box.
Click the dialog box several times. Each time you click, DIAdem executes the event Dialog_EventClick, which displays and hides the logo alternately.
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.|
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