Buttons Sample

This sample is located in \Samples\afc11\Buttons.

Description
Using the Sample
Key Project Files
Technologies Demonstrated

Description

This sample shows how to use AFC graphics and effects classes to create various types of button controls. The sample displays a panel that contains the following elements: 

The UIPushButton option is checked by default, and a large button is displayed with an FxTexture background and a left-centered label (UIItem). As you press the button, the small globe turns on a background, using an FxTexture to indicate that an action Event has occurred.

Using the Sample

To use the sample

You can manipulate the panel's buttons by performing the following actions:

Key Project Files

SDKCtrlPnl.java

This class extends com.ms.ui.UIPanel and implements a container for multiple components. Its methods create and initialize buttons and status information, control the button display, and generate associated events.

SDKConsts.java

This interface defines an array of graphics and holds the constants for button states and events.

SDKCallbacks.java

This interface is an event listener used to set button states.

Technologies Demonstrated

AFC

© 1999 Microsoft Corporation. All rights reserved. Terms of use.