Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Property for text controls that is like tooltiptext???
Message
De
18/07/2022 06:53:51
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01684667
Message ID:
01684671
Vues:
44
>I'm drawing a blank on this feature where like a textbox or some other text control has too much text and by setting this magical control property it looks like a tooltiptext by extending the text display beyond the control?

There is DISPLAYPATH() function doing this, but the tricky thing is to determine the length parameter. For a static textbox one can fiddle around with FONTMETRIC(6,), but for a resizeable column one must do this for any change of column.width .
Also the WIDTH of a textbox compared with FONTMETRIC has odds, there are visible and unvisible borders on the textbox.

And only for columns the
.ControlSource = 'DISPLAYPATH(cur.field,20)'
works.
This is not possible for a normal textbox. You must prepare the shortened string in your cursor, and somehow manage to get the full text in the ToolTipText everytime the record changes.

Or you use something like Dragan suggest to bring a second textbox in foreground for edit / show.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform