Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid class to know if any control is double clicked
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
00971672
Message ID:
00971731
Vues:
23
I am trying to capture a double-click inside a grid, right now the double click is not registered by the grid. This grid is dynamic so the columns are not in my control to program to put in the controls double-click.

The problem is that when you dblClick on a row in the grid that has data, it is the contained control's (the textbox) dblClick that fires. The only time the grid's dblClick fires is when you click on a row that does not have data.

The best thing you can do is to upgrade so that you can use BINDEVENT() as the others have suggested. The only alternative that I can think of off the top of my head without seeing any of your code, is to suggest that you create a custom text box class that has this code in its dblClick():
This.Parent.Parent.dblClick()
And when you set the ColumnCount of the grid, loop through the columns collection and programmatically add your custom text box and remove the native one.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform