How to Change the Default Font of the Class BrowserID: Q130500 3.00 WINDOWS The information in this article applies to:
SUMMARYThe Class Browser is a tool included with the Professional Edition of Visual FoxPro. It is a Visual FoxPro application (.APP file) that allows developers to browse visual class libraries. Because of the many options it provides, it is a helpful debugging tool. You can customize the Class Browser by modifying the properties and methods it exposes. This article explains how to change the default font of the Class Browser by using the SetFont() and Addin() methods.
MORE INFORMATIONYou can call the Class Browser interactively by choosing Class Browser from the Tools menu, or you can call it in a program by using this syntax:
The Class Browser uses the MS Sans Serif font by default. You can, however,
modify this font by using the SetFont() method of the Class Browser.
Method One: Control the Font InteractivelyUse the SetFont() method to modify the default font. Load the Class Browser and type the following from the Command window:
Method Two: Modify the Default Font in an Add-in ProgramTo have the Class Browser use another default font, use the Addin method, which calls an add-in when a specific event occurs. This example hooks the BRWFONT.PRG to the Init event:
To install this add-in, execute the following code after the Class Browser
is loaded:
The arguments used in this example specify the following:
REFERENCESFor more information about customizing the Class Browser, search for "Class Browser" or "Browsing Classes" and then "Customizing the Class Browser" in the Visual FoxPro Help menu. Additional reference words: 3.00 VFoxWin KBCategory: KBSubcategory: FxotherSample
|
Last Reviewed: May 22, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |