>>I have a checkbox control in a grid and would like to be able do the this:
>>
>>Move me mouse down the column with the checkbox control and change the value of the checkbox from (for example) .F. to .T. as I move my mouse down the column.
>>
>>Several ideas came to mind on how to do something like this, but nothing I have tried works. Does someone know how to accomplish this?
>>
>>
>>TIA
>>
>>John.
>
>In the checkbox MouseMouve method you could try something like:
>LPARAMETERS nButton, nShift, nXCoord, nYCoord
>
>if nButton = 2
> This.Value = !This.Value
>endif
>
>See VFP Help on MouseMove for more info. You will need to enhance this code, because the value of the checkbox continues to flip back-and-forth rapidly while you move the mouse over the object.
Hi Mark,
Thanks for responding to me so quickly.
That's exactly where I was when I decided to ask my question. I've used the mousemove and timer while building button classes, so I am somewhat familiar with this event, but I can't get it to work correctly in this situation. As you said, the checkbox control flickers as it switches between values while mousemove code fires. Also I can't get more than one row of the grid to even do this.
Thanks.
John