Class Browser: How to Use the ShowMenu and AddIn MethodsID: Q132440 The information in this article applies to:
SUMMARYThis article provides an example to illustrate the use of the ShowMenu and Addin methods of the Class Browser.
MORE INFORMATIONThe Class Browser allows you to browse and perform diverse tasks on classes stored in visual class libraries (.VCX files). You can customize the Class Browser by modifying the properties and methods it exposes. The example provided in this article uses the ShowMenu and the Addin methods of the Class Browser. The ShowMenu method displays a menu built from an array. The source array can have two dimensions defining a menu item and a corresponding action. When a menu option is selected, the action is executed. The example in this article creates a two-dimensional array. The Addin method provides a way to add user-defined code to the methods exposed by the Class Browser. The code can be linked to a method exposed by the Class Browser or invoked from the Add_In menu. The example in this article calls the add-in program from the Add_In menu. For an example on how to tie a program to a method of the Class Browser, please see the following articles in the Microsoft Knowledge Base:
Step-by-Step Example1. Copy and paste the following code into a program (.PRG) file. Save the 2. Start the Class Browser by using one of the following two methods.
3. When the Class Browser starts, the _oBrowser variable is created. It
4. Click the AddIn button in the Class Browser window. A menu is displayed.
5. Select Menu Example. The CBMENU program is run, and it executes the
REFERENCESFor more information about the Class Browser and the AddIn and ShowMenu methods, search for "Browsing Classes," "AddIn method," or "ShowMenu method" in the Help menu. Additional reference words: 3.00 vFoxWin KBCategory: kbtool kbprg kbref kbcode KBSubcategory: FxotherSample |
Last Reviewed: July 28, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |