![]() | DIAdem 2017 Help |
![]() | DIAdem 2018 Help |
![]() | DIAdem 2019 Help |
![]() | DIAdem 2020 Help |
![]() | DIAdem 2020 SP1 Help |
Use the Enable property to define whether the user can enable a control.
Complete the following steps to define whether the user can enable a control, with a checkbox.
Select the DIAdem SCRIPT panel.
Select Edit»Create Dialog Box.
Click the EditBox control on the Controls bar.
Drag open the control in the dialog box.
Click the Checkbox control on the Controls bar.
Drag open the control in the dialog box. Position CheckBox1 in front of EditBox1.
Click the column to the right of the Text field on the Properties tab. CheckBox1 must be selected. Enter the text Enter value.
Click ... in the EventChange field on the Events tab. CheckBox1 must be selected.
Enter or copy the following text into the script editor:
Sub CheckBox1_EventChange(ByRef This) EditBox1.Enable = (This.Value=1) ' Editbox can be enabled if checkbox is selected 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.
If you set a tick, you can enter a value or a text in the input field. If you delete the tick, the input field cannot be enabled and is dimmed.
Close the user dialog box in DIAdem.
Close the dialog editor.
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
Helpful
Not Helpful