Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I create a grid header class
Message
From
27/09/2000 10:19:17
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00421369
Message ID:
00421439
Views:
26
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform