Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MORE THAN A TOOL TIP TEXT PROPERTY
Message
De
24/07/1998 09:46:14
 
 
À
24/07/1998 01:42:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00120403
Message ID:
00120949
Vues:
24
>The tooltiptext property is evaluated only once when the object is created. In your case, the value is an empty string because the grid doesn't contain data at that moment.
>
>To make it work, put the following in the MouseMove event of the object inside the grid:
>This.ToolTipText = ctod(This.Value)
>
>Obviously, you have to replace the ctod with your own expression.
>
>But tooltips don't work properly for objects inside a grid. Probably you'll have to use something like my FancyToolTips class in order to have them properly displayed. Anyway, you'll see the tooltip only for the current line inside the grid.
>
>Vlad

I tried modifying my textbox class that I use inside all my grids with the following code:

LPARAMETERS nButton, nShift, nXCoord, nYCoord
IF !EMPTY(This.cMemoField) AND TYPE(This.cMemoField) = "M"
This.ToolTipText = LEFT(EVAL(This.cMemoField), This.nMemoLength)
ENDIF


I set the cMemoField to the field name of my memo field (myTable.myMemo).
I set the nMemoLength to 30.

In the debugger when I check the "LEFT(EVAL(This.cMemoField), This.nMemoLength)
" expression, it has the correct value. But, after the assignment to the ToolTipText property, the property remains empty ("").

What gives?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform