User Dialog Box in DIAdem VIEW

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

This example shows a user-dialog box in DIAdem VIEW. In the dialog box you can create new curves, move curve points interactively, and interpolate curve points.

You create a new curve in three steps:

  1. Create new curve: Specify the number of curve points and the position of the new curve to the existing curve.

    DIAdem creates a new curve which is 10% above or below the extreme values of the reference curve, and creates two new channels in the Data Portal.

  2. Move new curve: Specify the curve via the curve symbol. Press the shift key and move the free cursor along the new curve. DIAdem moves the curve points to the position of the cursor.

    To check whether keys are pressed the example uses a user command that has the property OnCursorChanged. In this user command the example uses the IsKeyPressed command.

  3. Interpolate new curve: DIAdem uses the interpolation points to calculate a new curve for the selected curve and saves the values in new channels.

You create User Dialog Boxes in the dialog editor of DIAdem SCRIPT. To include a user dialog box in DIAdem VIEW this user dialog box must contain the invisible ViewConnector control. Create the functions for controlling the view in DIAdem VIEW in scripts.

Use the Flex property to adapt the dialog boxes to the changing size of the DIAdem window. If you assign different flex properties to the individual controls, the relative position of the controls changes when the user dialog box is scaled. In this example, the control of the three function groups has the following flex settings: left group — Horizontal Customized, Left (%) 0, and Right (%) 33, middle group — Horizontal Customized, Left (%) 33, and  Right (%) 66, and right group — Horizontal Customized, Left (%) 66, and Right (%) 100. The Left (%) and Right (%) values in the SpinBoxes are the same so that the SpinBoxes are only shifted but are not enlarged.

Start example

Copy example files

Click a Filename to Load this File into DIAdem

VIEW_CreateCurve.vbs Script file
VIEW_CreateCurve.tdv Layout file
VIEW_CreateCurve.sud Dialog box file
VIEW_CreateCurve_libr.vbs Script file
VIEW_CreateCurve_UserCMD.vbs Script file with user commands
Note When this example starts, DIAdem loads example files and overwrites existing data and layouts.

Procedures

Checking a User Dialog Box Entry | Checking a User Dialog Box Entry | Closing a User Dialog Box with a Script | Closing a User Dialog Box with a Script | Creating a Dynamic User Dialog Box | Creating a Dynamic User Dialog Box | Creating a Non-Modal User Dialog Box | Creating a Non-Modal User Dialog Box | Creating a Procedure in the Script of a User Dialog Box | Creating a Procedure in the Script of a User Dialog Box | Creating a User Dialog Box without Linking Variables | Creating a User Dialog Box without Linking Variables | Creating a User Dialog Box | Creating a User Dialog Box | Creating an Extended Table | Creating an Extended Table | Displaying Graphics in Selection Lists | Displaying Graphics in Selection Lists | Enabling Controls | Enabling Controls | Opening the Dialog Editor | Responding to Cancellation of a User Dialog Box | Responding to Cancellation of a User Dialog Box | Responding to User Entries in User Dialog Boxes | Responding to User Entries in User Dialog Boxes | Saving and Restoring the Last Dialog Box Position | Saving and Restoring the Last Dialog Box Position | Saving Control Groups for User Dialog Boxes | Saving Control Groups for User Dialog Boxes | Specifying the Default Button | Specifying the Default Button | Tabulator Order in a User Dialog Box | Tabulator Order in a User Dialog Box | Transferring a Parameter to a User Dialog Box | Transferring a Parameter to a User Dialog Box | Transferring User Dialog Box Entries to DIAdem | Transferring User Dialog Box Entries to DIAdem | Using a Script to Fill a Selection List | Using a Script to Fill a Selection List | Using Channel Selection Lists | Using Channel Selection Lists | Using Hotkeys in a User Dialog Box | Using Hotkeys in a User Dialog Box | Using the Flex Properties | Using the Flex Properties

WAS THIS ARTICLE HELPFUL?

Not Helpful