Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Active Row or Cell MouseEnter
Message
 
 
To
11/12/2008 11:55:18
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01366646
Message ID:
01366668
Views:
9
>>>Is there a way to trigger an event when the mouse is over a particular row or cell in a grid?
>>
>>See RAISEEVENT() function.
>
>Sorry, I must be tired today, but I didn't see how that really helped me.
>
>I'm using BindEvents to tie a grid's MouseEnter to a method in a custom class - that works well finally - but now instead of just the general MyGrid.MouseEnter, I want to bind to something like MyGrid.ActiveRow.MouseEnter, but it does not exist. How can I get my custom class method to fire when the mouse is over either the active row or a cell in the active row of a grid?

In your base grid class you may have something like
for each loColumn in this.columns
	loColumn.addproperty("cOriginalControlSource", m.loColumn.controlsource)	
	loColumn.addproperty("nOriginalWidth", m.loColumn.width)
	
	for each loControl in m.loColumn.controls
		if upper(m.loControl.baseclass) = "HEADER"
			loControl.FontSize = 8
			bindevent(m.loControl,"Click",this,"HeaderClick")
			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
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform