Add a New Class to the Class Palette
This is invoked by selecting the “Add class to palette” option from the class palette context menu. This option allows you to add an existing class to the class palette.
The class should already be defined, and a class package file should already be created. This option does not create a new class. It adds an existing class to the class list.
The following options allow you to select the class:
Package File
Select the source file that contains the class definition you wish to add. You can search for the source file by selecting the prompt button.
Tip
Before invoking this dialog, load the file that contains the class and make it the Studio’s current file. The default package name in this form will be the Studio’s current file. If you first find the file that contains the class and make sure it is the current file, the package file will already contain the correct name.
Class Name
If the selected package file contains only one class definition, the name assigned to that class is displayed.
If the selected package file contains multiple class definitions, use the combo to select the class you want to add. You can repeat this process to add as many of the class definitions to the palette as you wish.
You are allowed to enter a package file that does not exist and a class name that is not defined in the file. This was done so you can first add the class/file before actually creating it. This is unusual, and if you do this, be careful.
Group Name
Enter the name of the group that you want the class displayed in.
You can enter a new name if you wish. If you do enter a new group name, that group will be automatically created for you in the class palette.
Icon Name
In most cases, you will want to leave this blank so that the class can inherit the icon from the appropriate superclass.
If you do not want to inherit the icon from the superclass, use the browse button to find the icon or bitmap you want to associate with the class you are adding.
OK
Click the OK button to add the new class.