![]() | DIAdem 2017 Help |
![]() | DIAdem 2018 Help |
![]() | DIAdem 2019 Help |
![]() | DIAdem 2020 Help |
![]() | DIAdem 2020 SP1 Help |
Use the Picture property to display graphics in selection lists. To define a selection list in the user dialog box, use the controls
Complete the following steps to display graphics in selection lists:
Select the DIAdem SCRIPT panel.
Select Edit»Create Dialog Box.
Click the EnumComboBox control on the Controls bar.
Drag open the control in the dialog box.
Click the column to the right of the Variable field on the Properties tab. EnumComboBox1 must be selected. Enter the LineTypeLst variable.
Click the column to the right of the Picture field in the Properties tab. EnumComboBox1 must be selected.
Click Load in the Picture Definition dialog box and open the Program folder\Resource\Icons\LineType.png file.
Select the Transparency color Magenta in the Picture Definition dialog box and click OK.
Click the column to the right of the PictureWidth field in the Properties tab. EnumComboBox1 must be selected. Enter the width 50.
Click the ComboBox control on the Controls bar.
Drag open the control in the dialog box.
Click the column to the right of the EventInitialize field on the Events tab. ComboBox1 must be selected.
Enter or copy the following text into the script editor:
Sub ComboBox1_EventInitialize(ByRef This) Call This.Items.RemoveAll Call This.FillItemsByVar("LineWidthLst",TRUE) ' variable used to fill selection list End Sub
![]() | Note Add the above text to the lines generated automatically by the script editor. |
![]() | Note You also can fill selection lists with selection terms when you create a user dialog box in the dialog editor. Select ListItems on the Properties tab. |
Select View»Script View.
Click the column to the right of the Picture field in the Properties tab. ComboBox1 must be selected.
Click Load in the Picture Definition dialog box and open the Program folder\Resource\Icons\LineWidth.png file.
Select the Transparency color Magenta in the Picture Definition dialog box and click OK.
Click the column to the right of the PictureWidth field in the Properties tab. EnumComboBox1 must be selected. Enter the width 50.
Select File»Save As and save the file as Test.sud.
When you open the selection lists you can view the selection terms specified by the variables and the graphics that illustrate the terms.
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