User`s guide

9 Managing and Sh aring Application Data in GUIDE
Ways to Manage Data in a GUIDE GUI
In this section...
“Data Management Mechanism Summary” on page 9-2
“Nested Functions” on page 9-4
“UserData Property” on page 9-5
“Application D ata” on page 9-5
“GUI Data” on page 9-7
“Examples of Sharing Data Among a GUI’s Callbacks” on page 9-10
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 f
or...
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
9-2