Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GridGotFocus & GridLostFocus
Message
From
15/11/2006 05:55:27
Max Chen
Yx Software
Shunde, China
 
 
To
11/11/2006 14:41:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Miscellaneous
Thread ID:
01168965
Message ID:
01169762
Views:
14
>I haven't worked with grids very much but I'm working on a project now that has a grid embedded in a form, along with many other controls. The user will move between these multiple controls on the form, including the grid control. I have been surpised to find that there is no GOTFOCUS nor LOSTFOCUS property for the grid itself. I'd like to fire some events whenever a user enters the grid (gotfocus) and exits the grid (lostfocus).
>
>How can I accomplish this?
>
>Thanks,
>Robert

GRID.init
FOR EACH oCol IN this.Columns
	FOR EACH oObj IN oCol.objects
		IF LOWER(oObj.name)==LOWER(oCol.currentControl)
			BINDEVENT(oObj,"lostfocus",this,"vCellLostfocus",1)
		ENDIF 
	NEXT 
NEXT 
Previous
Reply
Map
View

Click here to load this message in the networking platform