Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set everything on form as readonly
Message
From
06/12/2005 12:04:14
 
 
To
06/12/2005 11:56:49
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01075376
Message ID:
01075381
Views:
25
Mark

In my systems by default all forms have disabled controls, until the user puts them in edit mode, when I enable all the relevant controls.

As a quick-fix: If you use your own classes on your forms then you could set the actual classes as disabled. Therefore no matter what you plonk on your forms it will be disabled.

hth

Terry

>hi all. for security purpose when certain group of users log in, i want to set everything on all forms as readonly.
>i am thinking of creating a custom class and put it on the form. now in the init of this class, i will loops through each and every control on th form and mark them as readonly or enable=.f. . the code has to be recursive so that if there is a pageframe or container object on form , it goes and loops through all objects on pageframe/container too.
>
>i am wondering though if this is the correct idea and also if there is some already available such class out there.
>
>thanks all for help in advance.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform