>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement