Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to automatically disable new objects
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00046491
Message ID:
00046686
Vues:
30
>>My problem is about how to enable a previously-disabled object.
>> I created a form by the form wizard. There was a default buttonset which would navigate all records,e.g. go next, add, delete. To add a new record, I had to click the "Add" button to make all objects enabled and click "Save" or "Cancel" to complete the process (objects would be disabled after that). The problem happened after I added a new object into the form. It would be always enabled independently. How to correct this?
>
>I never used the form wizard so I can't help you on this.
>
>Please, do not redirect a message to me when it is for the general audience.

The code that controls everything on your form when you use the form wizard is contained in the button bar class "txtbtns" or perhaps one of the similar classes, depending on which button style you used. These classes are in VFP\WIZARDS\WIZSTYLE.VCX. The .SetAllProp method contains the code which enables and disables all the controls, depending on the parent class of each control and whether you are in edit mode. You will notice that this code does not account for comboboxes or spinners. It also does not account for pageframes, which are not true containers. If you make many changes to forms built from the form wizard, you will end up modifying a lot of the wizard code. Typical things it doesn't account for are filters set on the tables and default values for fields.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform