Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Customized Header in Grid
Message
From
11/01/2010 10:01:21
 
 
To
11/01/2010 01:35:57
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01443157
Message ID:
01443218
Views:
38
I'm glad I have found another workaround for my problem in (indeed) the VFP7 app. It is obvious to me that you too are one of those who do not stop unless a workaround is found or the birds begin to sing their morning songs. :)

>Hoi Peter,
>
>Yes you can do this, though for VFP7 there is some trick to it. I might have forgotten the details as I only ever did this once and forgetabout this all. I created a dummy for with a dummy grid on it and set up the header with code in it I think I used the SaveAsClass method to save it in a VCX. You're not able to change the class once in a VCX as the designer will not allow you to. So you'd have to hack the VCX and recompile the classlib after any change
>
>I wrote a little prg
>
>REPLACE ALL class WITH "TaxHeader", Classloc WITH "Taxbase2.vcx" ;
>	FOR LOWER(Class) ="header"
>
>
>Walter,
>
>
>
>
>
>
>>This one is for VFP7, but answers that require VFP9 are also welcome.
>>
>>Is there any way to ' replace' the headers in a grid in a form with a custom header? I'm not talking about code generated forms and grids. I'm tallking about the form designer where a grid is added and the number of columns is still unknown.
>>
>>(Brings me on an idea: Create a grid class that has 10 columns and each header got the same custom code. Setting columncount to a lower value later is just another way than making it higher than -1. But this scenario might become a nightmare scenario because any maintenance would require 10 equal modifications in 10 places.)
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform