Next  

Bean Works Tutorial

This tutorial illustrates the development of a set of components -- each with a few more features than the previous one. You'll see:

The tutorial is based on four simple "Hello World"-type components. You can find source code for each of these components in the directory WebRunner\BeanTools\samples, along with bat files that will let you build and run each component. You can also run these samples from the VisualAge WebRunner-->Samples program group.

Step 1: Hello1 displays a static string ("Hello World"), and provides default program features such as windowing, file manipulation (for example, New and Close), an About box, menus, and a toolbar with flyover help. The component is based on a view and a controller.

Step 2 : Hello2 displays a default string, but allows the user to change the string through a text dialog. This component adds a model and simple event handling to the view and controller created in the Hello1 program.

Step 3: Hello3 allows the user to undo and redo changes made to the "Hello World" string. This is enabled by using a command and the framework command processing mechanism to effect the data change.

Step 4: Hello4 adds a new menu to the component allowing the user to specify the display color for the string. You see how to extend the default menu, using localizable resources to build the interface.


Next  

Copyright © Taligent, Inc. 1996 - 1997.
Copyright
© IBM Corporation 1996 - 1997.
All Rights Reserved.