Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tooltip on a selected line in a grid
Message
De
14/07/2004 08:54:07
Geert Van Snik
Zorgned Automatisering Bv
Wageningen, Pays-Bas
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Tooltip on a selected line in a grid
Divers
Thread ID:
00924148
Message ID:
00924148
Vues:
63
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 && Current active row

lcLine1 = Str(nOldSelected_Row,2,0) && Just to have a string for multiline tooltip
If This.Parent.GridHitTest(nXCoord, nYCoord, @nWhere_Out, @nRelRow_Out, @nRelCol_Out,;
    @nView_Out)
  If nWhere_Out = 3
    If nRelRow_Out = nOldSelected_Row && is the mouse over the selected 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) && Something to show ?
  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)?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform