Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dropping controls on form by dragging fields from a tabl
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00126409
Message ID:
00126535
Views:
19
Meredith,

To add to the others. You can use Tools/Options/Field Mapping to create a set of defaults so that for example anytime a date field is dragged onto a form a txtDate class from your classlib is used. Go through and set these up for all the field types you use. If you have a field of a table that you'd like to use a specific class for always, set that in the table designer.

John Petersen has a utility that helps manage field mapping for different projects to different classlibs/classes. Myself I just use Regedit and save the key HKEY_CURRENT_USER\Software\Microsoft\VisualFoxPro\5.0\Options\IntelliDrop to a file in each project folder. To switch project mappings all you have to do is double click the file in explorer.

>Is there a way to set the default class library to a user defined class library for the controls you drop on a form by clicking on a table field and dragging to the form? Whenever I drag controls to a form it uses the Microsoft base class for the controls and I have to hack the scx file to change the class and classloc fields to redefine the class library for the controls. This usually turns out to be more trouble than using the toolbar to place controls on the form with the proper class library selected.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform