Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Security for non MM classes
Message
 
To
26/02/2003 16:48:16
Bill Breay
Custom Business Software
Arvada, Colorado, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00758455
Message ID:
00758457
Views:
19
>I have a form with a 9 tab pageframe on it (using MM 7.0). I have set up security for each page OK. One of the pages includes a grid from the vfp7 _base class. This grid does not appear to have any security placed on it. I assume that is because it is not from a MM class.
>
>Is there a way to add security to a non MM class control such as this grid?
>
>TIA
>
>Bill

It should be. You'll have to add a few methods and properties to do it, though. From a quick look, you'll need to add the following methods:

SetAccessFull()
SetAccessNone()
SetAccessReadOnly()
SetAccessUnknown()
SetSecurityDisplay()
SetUserAccess()

And these properties:

iControlID
lSecuritySetup
lSecuritySetup_Assign

You'll also need to add a bit of code to the Init() of the control. Take a look at any of the framework base controls (eg. CContrls.VCX) for examples on what this code looks like.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform