>>>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","")
if this.lCreateIndexes
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