Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to double-click on a grid, to get its cell value
Message
From
30/03/2006 08:36:49
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01108948
Message ID:
01109131
Views:
43
Thanks for the code, Naomi,

I have modified it to suit my program, and it works. I had to disable some code, since I was getting an error. But with the balance enabled code, the doubleclick fires.

Regards,

Steve.

*THE CODE....
local loColumn, loControl
* Delegate header's click to grid's HeaderClick custom method
* and column's textbox DblClick to grid's DblClick
for each loColumn in this.columns
	m.loColumn.addproperty("curheadscompare", m.loColumn.controlsource)
	for each loControl in m.loColumn.controls		
	if upper(m.loControl.baseclass) = "HEADER"
*		bindevent(m.loControl,"DblClick",this,"Dblclick")
*		m.loControl.addproperty("CurrentTag","") 
* Adds CurrentTag property
*		if this.lCreateIndexes && Adds indexes on the fly
*			this.CreateTag (m.loControl)	
*		endif	
	else
		if upper(m.loControl.baseclass) = "TEXTBOX"	
			bindevent(m.loControl,"DblClick",this,"DblClick")
		endif		
	endif	
	ENDFOR
endfor
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform