Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing headers
Message
De
05/12/1998 08:31:35
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00163637
Message ID:
00164433
Vues:
25
>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.

Just the way you make sure you have "cclass.vcx" in your set("class"), you also make sure you have included the .prg where the header class is defined programmatically into your classlibs, i.e.

if not "hdrclassdef" $ set("class")
set classlib to hdrclassdef.prg addi
endif

Then it works (well, the book says so).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform