|
|
|
|
|
Use the General tab in the Class Editor notebook to modify the following:
The Base class - access level field shows the name of the base class for your part. This is the class name that you specified as the parent base class when you created the part.
You can change the base classes for your part by changing the classes named in this field. Use the standard C syntax for base classes (where accessorType is public, private, or protected):
accessorType baseclassname, ...
However, if you change the first base class, you must drop a part of this class on the free-form surface (if you have one) so that it can become your primary part.
Use the Description field to enter information about your part. This description appears in the information area when you select the part from the parts palette.
When you enter information in this field, it is hard-coded into your part.
If you wish to include other descriptions for your part, such as in different languages, create a DLL file with the translated descriptions. Select Edit, then the Use resource id and dll button, and enter the DLL file name and the resource ID for the desired description.
Use the Help information group to specify the
following:
| Use this field... | To specify... |
|---|---|
| File | The name of the HTML help file you created for your part. |
| Topic | The Topic area for your help file. |
Use the Constructor field to specify the constructor for the part's class. VisualAge initially inserts a default constructor prototype in this field. If the prototype is not of the form you want, modify it by editing the text in this field.
Although you can define more than one constructor prototype in user-written code, you can define only one in the Class Editor.
To add code to the constructor without changing the prototype, switch to the User Code tab, select Constructor, and enter your code in the code box at the bottom of the page.
Use this group to associate an icon with an instance of this part on the free-form surface. You may wish to specify an icon to represent:
Specify the DLL name and graphic ID for your icon in the appropriate fields.
