Suppose your application prompts a user to choose
whether or not they receive e-mail messages. Your frame might include
a check box labeled “Do you have an e-mail account?”
If the user clicks the check box, then a text label and text entry
field are enabled so that the user can enter an e-mail address.
You can complete this
type of component communication with multiple attribute links. The
following steps detail the process:
-
Create a new FRAME entry.
-
Place a check box control
on the frame and change its
label
attribute
to “Do you have an e-mail account?”
You can use the
Properties window to change the
label
attribute.
-
Place a text label and
a text entry control on the frame.
The text label should
be positioned on the left of the text entry and should be labeled
“e-mail address:”
-
Link the
enabled
attribute of the text entry control to the
selected
attribute of the check box.
-
Link the
enabled
attribute of the text label object to the
enabled
attribute of the text entry object.
-
Test the frame by selecting
Build Test.
Note: This example is used to describe
attribute linking only. Other tasks would be necessary to complete
this frame and make it function properly within an application.
When you select the
check box, the text label and text entry objects become available.
When you deselect the check box, the text label and text entry objects
become grayed and are therefore unavailable.