
This simple Hello World! program puts each word of the pink text into its own entry field. This program consists of two composites, HelloWorld (the main part) and MyHelloWorldWindow (shown above).
HelloWorld contains only two parts:
Code is generated for HelloWorld into hllworld.cpp and hllworld.hpp. The header defines only one class, HelloWorld, which is based on IVBMain.
The .cpp file for HelloWorld defines the main( ) function and the following classes:
Program flow within these classes is summarized below. Obvious steps, such as instantiation of a class by its constructor, are omitted.
This happens because the HelloWorld part contains a connection between the composite's ready event and the show action of the MyHelloWorldWindow instance.
MyHelloWorldWindow contains the following parts:
Code is generated for MyHelloWorldWindow into myhllwdw.cpp and myhllwdw.hpp. The header defines only one class, MyHelloWorldWindow, which is based on IFrameWindow.
Of all classes represented on the free-form surface, only IFrameWindow is instantiated in the MyHelloWorldWindow constructor. All others are instantiated in the scope of the implementation class described below.
The .cpp file for MyHelloWorldWindow defines the following classes:
In general, these classes are related to each other in a similar way to those associated with HelloWorld. Additional notes follow.
Generated Part Code
Primary Part
Generated Code
Generating Code
About Promoting Part
Features
