>Hi all,
>
>I'm trying to have a multiline tooltip over a selected line in a grid. The multiline tooltip I've found, but I'm have trouble getting it displayed over the selectedline, it'll show on none-selected lines, but not on the selected line.
>
>I use MouseEnter of the Column (is that maybe the wrong place) of the grid and do the following:
>
>nOldSelected_Row = This.Parent.ActiveRow
>
>lcLine1 = Str(nOldSelected_Row,2,0)
>If This.Parent.GridHitTest(nXCoord, nYCoord, @nWhere_Out, @nRelRow_Out, @nRelCol_Out,;
> @nView_Out)
> If nWhere_Out = 3
> If nRelRow_Out = nOldSelected_Row
> Select aantek From extdoc Where clientnr+indicnr+bestand =;
> thisform.clientnr+Thisform.indicnr+This.Parent.Column6.text1.Value;
> into Cursor curAantek
> * A memo with this particular row.
> lcLine1 = Iif(Empty(curAantek.aantek),"...",curAantek.aantek) Endif
> Endif
>EndIf
>
>lcLine2 = vwdocumenten.bestand
>If not Empty(lcLine1)
> thisform.mToolTipText(nXCoord, nYCoord, lcLine1, lcLine2)
>EndIf
>
>
>When the mouse is not one the selected line, it'll show the tooltip (with the first line showing the selected row and the second one showing a filename). When it's on the selected it disappears.
>Also when moving the mouse in the first column (for now the only column which is responding to MouseEnter), it'll start changing the selected rowline (lcLine1) to "..." which means it's selecting from the table, even when the mouse didn't leave the column.
>
>Why does the tooltip (which is only a label) only show on not selected lines?
>And why does the SQL-select work even though I'm not leaving the column (or how often does MouseEnter fire)?
Hi Geert,
Not sure, it would answer your question, but check out FAQ #8149
If it's not broken, fix it until it is.
My Blog