Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to double-click on a grid, to get its cell value
Message
De
30/03/2006 08:36:49
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01108948
Message ID:
01109131
Vues:
42
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform