Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting the same method for all fields in a grid
Message
From
29/06/2001 10:09:05
 
 
To
29/06/2001 09:53:34
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00523476
Message ID:
00525173
Views:
19
>Thats fair comment Will.
>You are quite right and I will do it that way if anyone can figure out an easy way of ensuring the textbox double click event is populated automatically in a way I can use with the gridbuilder.
>
>I don't want to write my own gridbuilder (especially since Nick's click transparent class provides such an easy way to handle all this)
>
>I dont save much labour by avoiding populating the textbox events anyway.
>I am just lazy I guess :)

Yes,

Nik's Click transparent stuff can be really handy..
but I would look into building grids on the fly (and adding custom textboxes) because you will probably need this functionality at some point (maybe clicking on a column heading for a sort, or adding a combo box, or a Check box etc..)

What you could do is remove all the default textboxes from your grid's baseclass
then add your custom one in it's place either programatically or at design time(I have seen this done for.. say 30 columns) then your code just goes into your custom textbox doubleclick method.

Sorry rambling on a bit... probably teaching my grandmother to suck eggs etc.
Will Jones
Previous
Reply
Map
View

Click here to load this message in the networking platform