How to Create Your Own Base Class for Custom Default FormID: Q124125 3.00 WINDOWS kbtool kbprg The information in this article applies to:
SUMMARYWhen you start the Form Builder in Visual FoxPro version 3.0, a generic form is created for you by default. You can then modify or change this generic default form to make a custom default form. Then this customized template can be used with the Form Builder. This article shows by example how to create a custom default form.
MORE INFORMATIONWhen you create your own Base Class, you are creating a subclass of Visual FoxPro's base class. A Form is a Base Class in Visual FoxPro. You can create a new subclass of the Base Class Form that can act as the default Form. This allows you to set a form the way you like it (background, color, logo, fonts, and so on). Then you can have Visual FoxPro call your design as the default (base) form whenever you create a new form.
Step-by-Step Example1. Create a form the way you want it. Then from the File menu, choose 2. Choose Options From the Tools Menu.
3. Select the Controls Tab, and add the Class library in which this form 4. Select the Forms Design tab. The registered library should appear in the
5. Click OK.
6. Create a new form. It should have the properties of your template. Additional reference words: VFoxWin 3.00 KBCategory: kbtool kbprg KBSubcategory: FxtoolFormdes
|
Last Reviewed: May 1, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |