The information in this article applies to:
SUMMARYYou may sometimes need to add a control to a form generated by the Form Wizard. No additional coding is necessary if you're adding a text box. However, if you're adding another type of control, such as a combo box or a list box, additional coding is required. MORE INFORMATION
The Form Wizard uses the Wizstyle visual class library. Code for the
navigation buttons is stored in this library. When a text box is added to
the form, it functions exactly like the text boxes added by the wizard. It
is enabled and disabled by the edit/revert and add/save buttons. However,
if another control, such as a combo or list box, is added, it's not enabled
or disabled by these buttons, so it remains enabled all the time.
Method 1 - List and Combo BoxThe list and combo box can be enabled and disabled in sync with the text boxes by setting the enabled property of list or combo box to false and adding the following code to the edit/revert and add/save buttons, assuming combo1 is the name of the added combo box and text1 is the name of an existing text box on the form:
NOTE: This code causes the combo box to become enabled and disabled in sync
with the text box. The first line of code with the scope resolution
operator ensures that the click method of the Edit button stored in the
WIZSTYLE.VCX is executed.
Method 2 - Combo BoxNOTE: Modifications to WIZSTYLE.VCX are not supported by Microsoft FoxPro Technical Support. This information is provided for informational reasons only.Modify the SetAllProp method of the TxtBtns class in WIZSTYLE.VCX as follows:
Additional query words: combobox listbox Form Wizard
Keywords : kbwizard kbDesigner |
Last Reviewed: August 19, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |