The ProMatrix Setup menu also takes you to the New Project and ProMatrix Options dialog.
This dialog lets you change the options described below. These options will make more sense to you after you learn more about VPM Enterprise. We describe them here because they are part of ProMatrix Setup and you should know about them.
New Project Options
Controls Class Library
VPM Enterprise provides classes for the controls that you can place on a form. The VPME Controls Classes provide special properties and methods that give the VPME controls unique functionality.
The VPM Enterprise Form and Controls Builders place controls based on the VPM Enterprise controls classes on forms. By default, the VPM Enterprise Form and Controls Builders use the controls classes contained in the PROCTRLS.VCX controls class library located in a project’s home directory.
You can change this default controls class library for all new projects you create by entering the name of a different controls class library on the New Project and ProMatrix Options dialog.
Normally, if you change the default controls class library, you will change the default to be the DEVCTRLS.VCX class library in the VPME home directory.
At times, however, you may decide to create your own controls classes based on the VPM Enterprise controls classes. Perhaps, you need to subclass the VPM Enterprise controls classes to add your own functionality. You would probably choose to put your subclasses in your own class library so that when the ProMatrix Corporation updates the VPM Enterprise class libraries, your subclasses won’t be lost.
You would then want the VPM Enterprise Form and Controls Builders to use the controls classes in your new controls class library. The VPME Builders will use your controls classes (a) if you change the default controls class library to your class library on the New Project and ProMatrix Options dialog and (b) if your new controls class library meets the following requirements:
1. Your controls class library must contain a controls class for each control you plan to use on a form.
2. The name of a class in your controls class library must be the same as the name of the class for the control of the same type in PROCTRLS.VCX (or DEVCTRLS.VCX). For example, the name of your class for the textbox input control must be “Textbox_”, which is the name of the class for the textbox input control in PROCTRLS.VCX.
The items on the New Project and Project Options dialog affect all projects you create with VPM Enterprise. After you have created a project, you can change the controls class library that the VPME Builders use just for that project. See the “Project Options” section in the Application Options chapter to learn how to specify the controls class library for a specific project.
By default, when the VPME form builders add labels to forms, the labels are right-aligned. Check the "Left align labels" check box if you want to change the default to left-aligned for all the new projects you create with VPM.
When you start VPM Enterprise, VPM Enterprise runs a startup program that lets you customize the VPME environment. You can use the startup program to run utility programs and set up libraries that you want to use when working in VPM Enterprise. The name of the default startup program is SAPPUST.Prg, and it’s located in the \VPME91\PRGS directory.
You can add code to the default startup program to run your own utility programs and to set up your libraries. However, if you prefer, you can have VPM Enterprise run a different program when it starts up. To run your own startup program, enter the name of your startup program in the ProMatrix Options box on the New Project and ProMatrix Options dialog.
Object Builder Menu Font
By default the VPM Enterprise Object Builder uses the Arial font to display its menu. The Arial font does not work with some non-English versions of Visual FoxPro. If you are using a non-English version of Visual FoxPro that produces errors when displaying the Object Builder with the Arial font, you can select a different font for the Object Builder. Click the ellipsis (…) button under the Object Builder Menu Font label on the New Project and ProMatrix Options dialog to display the Font dialog. Use the Font dialog to select the font you need.