Bill, I implemented this in my Organizer project and had a bit of fun finding out how to do it. What you need to do is set up an external Method say MyGridHitTest on the grid or form and then bind this method to the to the Mouseover event of the colum ns in the grid.
* Bind the Thisform.MyGridhit() to each column to display tooltips =BindEvent(.Columns[I],"MouseMove",Thisform,"MyGridHit") Now we look at the MyGridHit() User method. In it we use the GridHitTest which will give back coordinates of the relative row/column. Activate the live cell then force in the tooltip text using Eval() * Thisform.MyGridHit() With Thisform.grdData * See where we are in the grid .GridHitTest(nxCoord_In, nYCoord_In, ; @nWhere_Out,@nRelRow_Out,@nRelCol_Out, @nView_Out) * Display full tooltip if we are in column 1, 2 or 3 If InList(nRelCol_Out,1,2,3) .ActivateCell(nRelRow_Out,nRelCol_Out) cCursor=.RecordSource cTooltip=Evaluate("Alltrim("+cCursor+"<fieldname>"+")") .Columns[1].Tooltiptext=(cTooltip) ... ... I used the Evaluate() function in order to dynamically change the tooltip from row to row but you can obviously load the cTooltip variable with whatever you want. Hope this helps. Dave Crozier -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Arnold Sent: 24 February 2007 19:59 To: 'ProFox Email List' Subject: Dynamic tooltips for grid cells Customer wants to hover mouse over a grid to view tooltips containing data stored in a field of the cursor source for the grid. That is, I'll need to dynamically load tooltip for textboxes in the grid as the mouse is hovered over the cells (textboxes) of the grid. To do this, I setup a test case using bindevents to attach method code to MouseEnter for all textboxes in the grid, but what I'm seeing is that MouseEnter isn't getting control as I hover the mouse over the grid, but instead it gets control only when I click a cell in the grid or hover over a cell already selected - but when I hover over the adjacent (unselected) cells, MouseEnter stays dormant. Is this the way MouseEnter is supposed to work? Doesn't seem right, at least not for what I want to do. Any ideas? Bill [excessive quoting removed by server] _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.