Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TreeView nodes...?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00182449
Message ID:
00182928
Vues:
16
Juan...

We already have a Twips/HitTest method in the form, so we're in a good position to grab existing data via the MouseMove. The problem is we're trying to provide a consistent interface by using the ToolTip associated with a specific item; it would be a problem to have to display a ToolTip somewhere else on form.

I've found that the TreeView ToolTip for a given node will display anytime the width of that node exceeds the width of the TreeView. The trick is we'd like to continue that behavior, but populate it with appropriate text. For example, we may have "Invoices per Customer 150" as the full text, but, because of real estate limitations, we may instead make the node's text read "Invoices per Cus... 150". In this case, we want a ToolTip to appear as the original, full text, rather than the shortened version.

We were hoping to do something like this in the MouseMove:

loCurrentNode = HitTest(X, Y)
lcTrueText = loCurrentNode.Tag
IF NOT EMPTY(lcTrueText)
TreeView.ToolTipText = lcTrueText
ELSE
TreeView.ToolTipText = ""
ENDIF

Sounds like you're saying we can't do this, since we can't modify the ToolTipText property. Actually, we haven't been able to *find* any such property on a TreeView. Does this give you any new ideas, or does it look like we're stuck with the sort of solution you already suggested?

Scott
Scott D. Grabo
Chief Information Officer
Occupational Health Group
First Advantage Corporation
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform