Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best practice to enable/disable controls when editing
Message
De
22/01/2006 22:18:24
 
 
À
22/01/2006 14:04:22
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01089195
Message ID:
01089267
Vues:
21
Good idea, James. I have never used bindevent but I know what it does.
I will try it.

Thank you very much

>Juan,
>
>Another option would be to use Bindevent(). Add a property to your form called lEditMode. Then add a method to each of your application base class controls call editModeChange() and have the code in this method do what you need. This will give you added flexablilty in the future. For example, you might want to have some controls disable in edit mode.
>
>>Hi,
>>
>>Just a question about how to enable/disable controls on the form when .Thisform.lEditing is On/Off.
>>
>>When editing records, I set Thisform.lEditing to TRUE and I use to call Thisform.Refresh() method because every textbox and other controls checks for that form's property in order to set their own "Enabled" property to TRUE or FALSE in their own Refresh method.
>>Is this a good OOP practice? My textboxes and form belong to a class library.
>>
>>Or should I call a method like "Thisform.EnableDisable" to navigate all controls and set their "Enabled" property.?
>>
>>Thanks
>>Juan C.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform