Specifications
3 Laying Out GUIs and Setting Properties
3-48
Determining Which Item Is Selected. The Value property contains the index of the
selected item. For example, if the
String contains the three items, peaks,
membrane, and sinc and the Value property has a value of 2, then the item
selected is
membrane.
When not open, a pop-up menu displays the current choice, which is
determined by the index contained in the
Value property. The first item in the
list has an index of 1.
Pop-up menus are useful when you want to provide users with a number of
mutually exclusive choices, but do not want to take up the amount of space that
a series of radio buttons requires.
Enabling or Disabling Controls
You can control whether a control responds to mouse button clicks by setting
the
Enable property. Controls have three states:
•
on — The control is operational.