Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dbclick in grid is not working
Message
De
18/01/2000 15:26:27
 
 
À
18/01/2000 15:13:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00319588
Message ID:
00319603
Vues:
13
>I have a problem that there are no columns in that grid at disign time.
>I add them during runtime using the methode addcolumn. I do no know how change standard dbclick from the added column

In this case, I would create a textbox class that you use onlt for Grids, and in the DoubleClick put:

This.Parent.Parent.ControlDblClick(This)

Then when you add a column remove the default textbox and add yours (You should be able to find many threads about this if you need help). And in your gridclass add the method ControlDblClick() with a parameter. Now, you just move your code from DblCLick() to COntrolDblClick() in the grid.

This trick is very handy for all parts of the grid. Example: it allows you to have only one Header class in code, but every grid may have a different method for the header being clicked, because the code is in the grid instance :-)

Good Luck!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform