>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.