>I have a grid with edtBox controls used in each column. I want to allow the user to hold the mouse button down and after 1 or 2 seconds have it display a window with more detailed info from the active grid cell. I do not want to use a tooltip control.
>
>Anyone tried this approach?
>
>Thanks,
>
>John Brooks
John,
I would create a timer class that handld this for me. Give the timer class a TurnOn method set its interval to the number of milliseconds you want. Give the timer a context property. In the TurnOn method accept a parameter that is stored in the Context property then set the timer's enabled property to .T..
In the MouseDown event of your control call the Timer's TurnOn and pass the context value you want. In the MouseUp set the Timer's enabled property to .F.
The timer could reside in the form directly, allowing a
THISFORM.TmrMoreInfo(THIS.Value)
in the MouseDown and
THISFORM.TmrMoreInfo.Enabled = .F.
in the MouseUp
The timer een of the timer could look up the info based on the timer's Context property and dislpay a form or whatever else you wanted to do. If you want to you could use a table to look up the contexts. That way you can add new ones without changing the timer class.