Hi Bill.
>How do I get the captions and other properties from SDT into the design view (properties) of your classes/forms or do I have to do this at runtime?
Captions are easy: the caption you enter into SDT is actually stored in the database container, so when you drag a field and drop it on the form, VFP will create a label for you with the desired caption. For other properties, such as ToolTipText, you can either get it at runtime using code given in the SDT manual or you can create a simple builder that reads the appropriate information from SDT's meta data and sets the properties for the controls. The latter is a more complicated approach <s>, but I can give you some pointers if you'd like to do that.
>What is the best way to integrate the security system they suggest
>(user-defined property called Security on each field) with the way you have it in the Mere Mortals class structure?>
I suggest sticking with the CBMM security system. The security described in the SDT manual is fairly simplistic and really intended when you aren't using a framework with a robust security implementation like CBMM has. However, if you want to use the mechanism described in the SDT manual, you could change the Init method of the classes you use for creating controls on a form to get the security setting of the ControlSource field and then make the control ReadOnly or not Visible as necessary.
Doug
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only