Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dblclick in grid not working
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01524320
Message ID:
01524342
Vues:
109
This message has been marked as the solution to the initial question of the thread.
If you have AllowCellSelection = .f. for the grid, you can use code similar to the following to determine which column has been clicked, dblclicked
local laObjects(1), loObject, lcType

Amouseobj(laObjects)

loObject			= laObjects[1]

if Type('loObject.Parent') = 'O'
	loObject			= loObject.Parent
endif

if Type([loObject.Class]) = [C] and loObject.Class = 'Column'
	do case
		case loObject.ColumnOrder = 2
		case loObject.ColumnOrder = 4
		otherwise
	endcase
endif
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform