Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I disable fields on a Pageframe
Message
De
04/06/2002 10:22:27
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00663496
Message ID:
00664459
Vues:
25
Hi Doug,
I think so. I assume your forms have VFP base classes, not subclasses. I would hack your scx/vcx files to point to subclasses of the VFP base classes--same for the forms. (Of course, back up first.)
REPLACE Class WITH "txtBase", ClassLoc WITH "..\..\Common\Classes\Base.VCX" FOR Class = "textbox"
etc.

The fun part is then to decide how you wish to determine the state of the controls. In the Refresh of each control you might have something like this:
IF This.EnableSecurity
This.ReadOnly = SomeCondition
or
This.Enabled = SomeCondition
ENDIF

There are about one hundred ways of doing this, but it starts with using subclasses so that one change effects all the controls you want to have the same behavior.

>At this point, we are looking for a way to implement 'security' into an existing system. Is there a way to do what you are talking about without having to recreate the fields on all the forms?
>
>Thanks,
>Doug
Charlie
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform