User`s guide
13 Manage Application-Defined Data
Ways to Manage Data in a Programmatic GUI
In this section...
“Data Management Mechanis m Summary” on page 13-2
“Nested Functions” on page 13-4
“UserData Property” on page 13-5
“Application Data” on page 13-6
“GUI Data” on page 13-8
Data Management Mechanism Summary
Most GUIs generate or use d ata specific to the application. GUI components
often need to communicate data to one another and several basic mechanism
serve this need.
Although many G UIs are single figures, you can make several GUIs work
together if your application requires more than a single figure. For example,
your GUI could require several dialog boxes to display and obtain some o f
the parameters used by the GUI. Your GUI could include several individual
tools that work to gether, either at the same time o r in succession. To avoid
communication via files or workspace variables, you can use any of the
methods described in the following table.
Data-Sharing
Method
How it Works
Use fo
r...
Property/value
pairs
Send data into a
newly invoked or
existing GUI by
passing it along as
input arguments.
Communicating data to new GUIs
Output Return data from the
invoked GUI.
Communicating data back to the
invoking GUI, such as passing
back the handles structure of the
invoked GUI
13-2