Microsoft HomeProductsSearchSupportShopWrite Usspacer.gif Microsoft Home
AFC Samples
 In this topic

*Description

*Sources

 

AFC Samples   PreviousAFC SamplesNext
    Previous AFC
Samples
Next

 


Bands and Menus Sample Applet

UIBand, UIBandBox, and associated menu controls are shown in this example.

Description

The panel above is composed of a UIBandBox and a UIGroup, the UIBandBox containing three UIBands, and the UIGroup containing a UIScrollViewer that displays information about the selected planet.

Clicking the UIMenuButton that contains the image of the planet Venus gives you a small drop-down menu with a Planet Information option: this is already selected in the sample. Select the thumb on the right side of the UIBandBox by clicking it and dragging the UIBand into view, leaving it in place next to Venus. When the Earth menu button is clicked, a small menu again drops down with the Planet Information option. Clicking this gives you information on the Earth in the display area below. When the Geology menu button is clicked, a MenuList containing multiple items appears, reflecting the geological periods of the Earth. When the items in the list with static arrows next to them are passed over with a mouse, a subsidiary MenuList appears with more options.

Clicking the thumb to the left of the planet Mars allows you to drag it to the top band and back to the bottom again. Clicking the thumb to the left of the planet Earth allows you to drag it and release it beneath the planet Venus to give each band a row of its own. As the screen space available to the display area below is reduced, its ScrollViewer properties become apparent as a scrollbar automatically appears on its right.

In addition to dragging bands by the thumb, clicking a band's header ensures that the band is fully visible.

Sources

This sample applet consists of the following sources:
SDKSample.java
SDKConsts.java
SDKCtrlPnl.java
SDKImages.java
SDKInsetPanel.java
SDKCallbacks.java

Top