How to Add Properties/Methods to a Button in Button GroupID: Q131145 3.00 WINDOWS kbtool The information in this article applies to:
SUMMARYThis article describes how to add properties or methods to buttons in a command-button group
MORE INFORMATIONNeither properties nor methods can be added directly to buttons in a command-button group. This is by design. Properties or methods added to a button in a command-button group appear as part of the command-button group object, not part of the button itself. To add properties or methods to a button in a command-button group, you must: 1. Subclass the command button in the Class Designer. 2. Add the property or method there. 3. Create a container class. 4. Add the new button class to the new container.
Steps to Add a Property or Method to a Command Button1. From the file menu, choose New. Select Class as the file type, and click 2. Type in a class name for this new class, select CommandButton from the
3. When the Visual Class Designer window appears, choose New Property from
4. Close and save the changes to this new class.
5. Create another new class (see step 1) based on a container. 6. Click the View Classes button of the Form Controls toolbar. Select Add, 7. Click the commandbutton button on this new toolbar. Then click the
Additional reference words: 3.00 VFoxWin
KBCategory: kbtool
KBSubcategory: FxtoolFormdes
|
Last Reviewed: April 5, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |