Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I disable fields on a Pageframe
Message
From
04/06/2002 10:22:27
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00663496
Message ID:
00664459
Views:
27
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
Previous
Reply
Map
View

Click here to load this message in the networking platform