ActiveX and Beans Welcome
Welcome
Next
Next

AFC Bean Demo

This sample bean demonstrates 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 the object at runtime.

  1. The Populate button will use JavaScript to add 50 items to the AFCBean object.
  2. The Add Item button will get the text and add it to the end of the AFCBean object.
  3. The Select Item button will jump the selection to the index.
  4. As you select items with the mouse or keyboard, the item number will be displayed in the text box. The event is being fired from AFCBean and caught by the HTML page.
  5. The property viewer button will use the Bean PropertyViewer to allow you to change the properties at runtime.

In this beta release, the limitations of AFC prevent the ability of dropping this bean into Visual Basic; this will be fixed for the release. Also, beans are a new to the 1.1 Java specification and are not supported in the IE 3.0 scripting model; please install IE 4.0 to see the full functionality of this sample.



Populate the list with 50 items.
Add a string to the end of the list.
Select an item in the list based on index.
Sinks the event itemSelected and displays the string.
Display the Property Viewer for the bean.



Remarks:
This bean was made with AFC.

Top © 1996-1997 Microsoft Corporation. All rights reserved.