AFC Bean Sample

This sample is located in \Samples\ActiveX\AFCBean.

Description
Using the Sample
Key Project Files
Technologies Demonstrated

Description

This sample Bean shows how to write a pure AFC object and host it inside a Microsoft® ActiveX® container. The sample shows how AFC objects can source events that are caught by the HTML page, expose methods and properties, and use the PropertyViewer class to dynamically change the attributes of an object at runtime.

You must have Microsoft® Internet Explorer 4.0 or later installed to use this sample.

Using the Sample

To use the sample

The applet initially displays a blank panel followed by a set of buttons and fields. You can perform the following actions with this sample:

Key Project Files

AFCBean.java

This class extends AwtUIApplet, creates an implementation class containing the UI components, implements the property viewer, registers event listeners, and fires events to a script.

AFCBeanListener.java

This class defines an interface for listening to the AFCBean events.

Technologies Demonstrated

ActiveX/Beans

AFC/AWT

Event Handling

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