2.1.2. Usage

This section explains the arguments used in the various dialog box macros.

2.1.2.1. cx-create-panel

(cx-create-panel title apply-cb update-cb)

ArgumentTypeDescription
titlestringName of the dialog box
apply-cbfunctionName of the function called when the OK button is clicked
update-cbfunctionName of the function called when the dialog box is opened

Note:  While the apply-cb and update-cb arguments are normally function names that are called when the dialog box is opened or the OK button is clicked, they do not need to be function names for the cx-create-panel macro to work. In many examples throughout part two of this guide, the apply-cb and update-cb arguments will be Boolean values rather than function names. The examples that use Boolean values instead of function names do not have any use when the OK button is clicked, but they do allow us to focus more on the specific elements of the interface rather than the overhead of setting up these functions. For examples where the apply-cb and update-cb arguments are set up as functions and allow functionality through RP variables, see Comprehensive Examples.


2.1.2.2. cx-show-panel

(cx-show-panel panel)

ArgumentTypeDescription
panelobjectThe variable you used to create the dialog box

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