![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() | |
![]()
|
|
|||||||||||||
Lists Sample AppletThis sample demonstrates the various types and selection options provided by AFC's UIList controls.
DescriptionThe sample is comprised of three UIGroup controls. In the main UIGroup, a panel gives you a display area for the list types and status information about the list items selected. In the second and third UIGroups, List Type options and Selection Type options are provided. The first option, a multicolumn list, is selected that displays two columns of animation frames inside a UIPanel. When an item is selected, the item's status appears in the UIStatus control at the bottom of the panel. Any of the three selection types can be applied to any list. The multicolumn list is initially SINGLE (by default), allowing only single list items to be selected. Checking the MULTI option allows multiple items in the list to be selected, and the UIStatus control changes to reflect the number of items selected. The EXTEND selection type allows SHIFT or CTRL to be pressed and corresponding blocks or irregular selections of objects to be made. The keyboard can also be used to select items, just as you can with Microsoft® Win32® (for example, holding down SHIFT, and then moving the arrow keys), and again, the UIStatus control changes to reflect the number of items selected. When the UIChoice option is selected, a UIChoice control appears in the display area. When the drop-down arrow is clicked, a list of animation frames is displayed. The globe changes to reflect the frame selected, and will animate smoothly if the mouse is passed over the list of animation frames. If a list of items is too large to fit into the screen space available, it will automatically appear in a scroll viewer. This enables you to use the scroll bar to scroll through the full list of items. Selecting the UITree control displays an expanding tree with custom items that represent geological eras, periods, and epochs of the Earth. Clicking the plus signs expand the tree, and clicking the minus signs collapse the tree. The status bar now displays the item in the tree that is selected, plus the duration of the geological period. As the UITree expands and fills its available space, the scroll viewer automatically appears. The SINGLE, MULTI, and EXTEND select options can be explored as before. SourcesThis sample applet consists of the following sources:
|
![]() |