The information in this article applies to:
SUMMARYYou can add code to command buttons created by the Form Wizard and still have the command buttons function properly. MORE INFORMATION
The command buttons created by the Form Wizard are based on classes defined
in the Vfp\Wizards\Wizstyle.vcx visual class library.
Each button is assigned an individual name, following recommended Visual
FoxPro naming conventions:
cmdPrevThe code for each button is contained in the class definition, not in each button on the form. If method code is entered in an event, such as the click event, which also has code defined in the parent class, the new code will override the parent class code. The parent class code must be explicitly called within the method. You can add code to the buttons in a generated screen, as long as the code in the parent class is called using the scope resolution operator, as in this example:
If you want the additional code to be processed prior to the default button
behavior, place it before the line that calls the parent method. If you
want the additional to be processed after the default button behavior,
place it after the line that calls the parent method.
Additional query words: VFoxMac VFoxWin
Keywords : FxtoolFormdes |
Last Reviewed: August 25, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |