Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Property for text controls that is like tooltiptext???
Message
 
À
19/07/2022 10:42:31
Lutz Scheffler (En ligne)
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:
01684678
Vues:
55
>>>>>>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?
>>>>>
>>>>>This is automatic in grids, but I don't know of a property that makes that happen for other controls. In reports, there's a way to get an ellipsis (three dots) after a fields that's too long.
>>>>>
>>>>>Tamar
>>>>
>>>>The Grid. Yes, I knew that I've seen that behavior somewhere. Ok. Thanks everyone.
>>>
>>>There is no such property.
>>>
>>>I looked up the place where I do similar stuff. Depending of what you like to do, I can provide you classes. I have code for all my base classes that own CAPTION that shortens CAPTION like the settings in report and put the full caption into it's tooltiptext property. But this is not good for editing a value in a textbox etc. And you must change the caption on each record move. What is the tricky part.
>>>I mean, if it is just for display, you could put a label over a textbox or shape and make it look like a textbox.
>>>
>>>If you like to test the classes, PM me for contact.
>>>Lutz
>>
>>Lutz, thanks, but it turns out that the 'control' that I'm using actually grows the width based on the length of the text in it. I did not know that it would do that.
>
>So, it works like AUTOSIZE = .t.? Is this bound to a field or just static? Bound to a field would be of interest how it traces recordchange ...

Lutz, to be perfectly honest I don't know what kind of control it is. The code I work on is incredibly dense. It's definitely something they've brewed up in VFP and perfected. Maybe it's a listbox that grows with the length of the text. It's actually quite an amazing codebase. I've never seen anything like it before.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform