Modal Dialog Box in GUIDE
In this section...
“Create the Dialog Box” on page 8-2
“Create the Program That Opens the Dialog Box” on page 8-3
“Run the Program” on page 8-5
This example shows how to create a program that opens a modal dialog box when the
user clicks a button. The dialog box contains two buttons, and the user must choose one
of them. The program responds according to the user’s selection in the dialog box.
Create the Dialog Box
(^1) On the Home tab, in the Environment section, click Preferences > GUIDE >
Show names in component palette.
(^2) In the Command Window, type guide.
(^3) In the GUIDE Quick Start dialog box, select Modal Question Dialog. Then, click
OK.
(^4) Right-click the text, “Do you want to create a question dialog?”
Then, select Property Inspector from the context menu.
(^5) In the Property Inspector, select the String property. Then, change the existing
value to: Are you sure you want to close?
Then press Enter.
8 Examples of GUIDE UIs