Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I create a grid header class
Message
De
27/09/2000 10:19:17
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00421369
Message ID:
00421439
Vues:
21
>I need to create a class with specific methods in the header of a grid. I can't figure out how do this. I can subclass the grid ok but then I don't have access to the header methods. Any tips?

You can define the clas like this:
define class MyHeader as header
	name = 'MyHeader'
	procedure Click
		wait window 'You clicked the header!'
	endproc
enddefine
And the programatically add this class to your columns after removing the standarad header.

By the way, for a very cool way of putting method in grid controls without using lots of these DEFINE CLASSes check out Thread#377841
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform