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

*Description

*Sources

 

AFC Samples   PreviousAFC SamplesNext
    Previous AFC
Samples
Next

 


Scrolls Sample Applet

This SDK sample show all the AFC scroll controls and the UIProgress bar control.

Description

Four different kinds of scroll controls are shown with this sample. All the scroll controls are interdependent; changing any one scroll position changes all the other scroll positions.

The UISpinner shows a spin box control (with up and down arrows) with an associated series of 32 sunny .gif images. When you click one of the arrows, a different image is selected for display, animating the image so that the sun appears to rise or fall in the sky.

The UISpinnerEdit is comprised of a UISpinner control and a UIEdit control. It allows a number to be entered into the edit field, using the keyboard, that corresponds to one of the scroll positions used in the example (between 0 and 128). The number can also be changed by clicking one of the arrows.

You can move the thumb of the UIScrollBar by dragging it with the mouse or by clicking the arrows at either end of the trough that contains the thumb. These arrows represent line increments and decrements of the scroll position. Click in the trough of the control to obtain the page increment or decrement of the scroll position.

The center slider of the UISlider control, displayed on the right side of the applet, tracks the scroll position of all the other scroll controls in the sample. Moving the center slider changes the other scroll controls' positions. Moving the indicator on the left slider track defines the start of a selected area within the control, and moving the right indicator defines the end of a selected area.

Sources

This sample applet consists of the following sources:
SDKSample.java
SDKConsts.java
SDKCtrlPnl.java
SDKImages.java
SDKInsetPanel.java
SDKCallbacks.java
ProgressPnl.java
ScrollBarPnl.java
SliderPnl.java
SpinnerEditPnl.java
SpinnerPnl.java

Top