Peter Cushing wrote: > Hi all, > > I like my grids to look a certain way and always use courier new, 10 for > the font. This is a pain for a new grid; having to go through the > columns and set the font. I tried creating a grid class and thought I > would create one with 7 columns, then I can subclass it for anything > different. The trouble is it won't let you delete columns on the > sublcassed version, and won't let you "save as" to create another > version with a different number of columns. >
In vfp9 I have classes that I use just for grids. These classes are defined in a program called "GridObjs.prg" DEFINE CLASS GrdCol AS Column HeaderClass = "GrdHdr" HeaderClassLibrary = "GridObjs.prg" FontName = "Tahoma" FontSize = 8 ENDDEFINE DEFINE CLASS GrdBox AS Textbox ... ENDDEFINE DEFINE CLASS GrdChk AS Checkbox ... ENDDEFINE To get my Grid to use these controls, I had to set the properties MemberClass = GrdCol MemberClassLibrary = GridObjs.prg Casey _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

