User Dialog Box in DIAdem VIEW
- Updated2024-09-12
- 3 minute(s) read
(User Dialog Boxes | Version 2010 | Viewing and Editing Data) > User Dialog Box in DIAdem VIEW
|
User Dialog Box in DIAdem VIEW |
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:
-
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.
-
Move new curve: Specify the curve with 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.
-
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
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 | Creating a Dynamic User Dialog Box | Creating a Dynamic 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 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 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 | 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