Displaying Graphics in Selection Lists

DIAdem 2018 Help


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

DOWNLOAD (Windows Only)


DIAdem 2015 Help
DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help
DIAdem 2020 Help

Use the Picture property to display graphics in selection lists. To define a selection list in the user dialog box, use the controls ComboBox, EnumComboBox, ListBoxand EnumListBox.

Complete the following steps to display graphics in selection lists:

  1. Select the DIAdem SCRIPT panel.

  1. Select Edit»Create Dialog Box.

  2. Click the EnumComboBox control on the Controls bar. 

  3. Drag open the control in the dialog box.

  4. Click the column to the right of the Variable field on the Properties tab. EnumComboBox1 must be selected. Enter the LineTypeLst variable.

  5. Click the column to the right of the Picture field in the Properties tab. EnumComboBox1 must be selected.

  6. Click Load in the Picture Definition dialog box and open the Program folder\Resource\Icons\LineType.png file.

  7. Select the Transparency color Magenta in the Picture Definition dialog box and click OK.

  8. Click the column to the right of the PictureWidth field in the Properties tab. EnumComboBox1 must be selected. Enter the width 50.

  9. Click the ComboBox control on the Controls bar. 

  10. Drag open the control in the dialog box.

  11. Click the column to the right of the EventInitialize field on the Events tab. ComboBox1 must be selected.

  12. 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.
  1. Select View»Script View.

  2. Click the column to the right of the Picture field in the Properties tab. ComboBox1 must be selected.

  3. Click Load in the Picture Definition dialog box and open the Program folder\Resource\Icons\LineWidth.png file.

  4. Select the Transparency color Magenta in the Picture Definition dialog box and click OK.

  5. Click the column to the right of the PictureWidth field in the Properties tab. EnumComboBox1 must be selected. Enter the width 50.

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

  7. Select View»Test in DIAdem.

    When you open the selection lists you can view the selection terms specified by the variables and the graphics that illustrate the terms.

  8. Close the user dialog box in DIAdem.

  9. Close the dialog editor.

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