Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing headers
Message
From
03/12/1998 12:51:29
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00163637
Message ID:
00163735
Views:
27
>>>Michelle,
>>>
>>>>Getting the header into my grid, I think, can be done the same as with textboxes. I just run a program on the .SCX that replaces all of the classes.
>>>
>>>NO, NO, NO.. doing this will probably make the form impossible to open in the form designer. There was an article about playing this kind of trick on VFP in FPA a while back, but I didn't trust it enough to ever rely on it continuing to work. The header substitution needs to be done at runtime.
>>
>>
>>< snip >
>>
>>If all of your forms are classes (like ours are) and the header class is in the same library (or one that the form classes are already dependant on) this method will work just fine and you should have no problems opening up the form classes in the Class Designer.
>
>Well, I use a subclassed form, but I don't have a different class for each form. How do I put a programatically created class in the library?
>
>Thanks,
>
>-Michelle

You don't put PROGRAMMATIC classes in the library, only visual ones. Since you can't visually subclass a header, you can't do it that way. We don't actually have sub-classed headers in our grids. I should have checked into it more. (open mouth, insert foot) :)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform