Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dblclick in grid not working
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01524320
Message ID:
01524342
Views:
110
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform