2.1.1. Description

The process that you will create a user interface to correspond with a user-defined function is to create a dialog box. Dialog boxes are created using the cx-create-panel macro. Once a dialog box is created, you must use the cx-show-panel macro to display it. Once you are able to create a simple dialog box, it will be easier to learn how to add more complex elements to it. Example One illustrates the simplest way to create a dialog box. It should be noted that this dialog box does not have any functionality. Example Two adds additional GUI elements but still lacks functionality. Dialog boxes use tables to format interface elements. For more information on tables, see Tables (cx-create-table). For more on the individual GUI elements seen in these examples, see Interface Elements.


Release 18.2 - © ANSYS, Inc. All rights reserved.