User`s guide
Making Multiple GUIs Work Together
Making Multiple GUIs Work Together
In this section...
“Data-Sharing Techniques” on page 9-21
“Example — Manipulating a Modal Dialog Box for User Input” on page 9-22
“Example — Individual GUIDE GUIs Cooperating as Icon Manipulation
Tools” on page 9-30
Data-Sharing Techniques
Several of the techniques described in “Examples of Sharing Data Among a
GUI’s Callbacks” on page 9-10 for sharing data within a GUI can also share
data among several GUIs. You can use GUI data, application data, and
UserData property to communicate between GUIs as long as the handles
to objects in the first GUI are made available to other GUIs. This section
provides two examples that illus trate these techniques:
• “Exa mple — Manipulating a Modal Dialog Box fo r User Input” on page 9-22
This example describes how a simple GUI can open and receive data from
a modal dialog box.
• “Examp le — Individu al G UIDE GUIs Cooperating as Icon Manipulation
Tools” on page 9-30
This more extensive example illustrates how the three components of an
icon editor are made to interact.
Note Theseexamplesomitportionsofcodetosuccinctlyconveydata-sharing
techniques. The omissions are noted by ellipses:
.
.
.
You can copy, run, view, and modify the complete G U I code files and FIG -files
for the complete examples.
9-21