Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Make editbox scrollbar disappear if not needed?
Message
De
15/04/2012 18:44:33
 
 
À
15/04/2012 17:52:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01541549
Message ID:
01541584
Vues:
41
J-

Yes, you're right. Alternatively pretty much leaves having to do your own
measure-and-parse thing on the text. And that can only get you close, but
not ironclad, so would need a fudge factor. (I have found GdipMeasureString,
in practice, to be less than 100% precise.)

(Don't need an overlaid shape -- can use the Scrollbars setting to hide
it.)

-m.

>
>Unfortunately, that will not suffice. In general, the contents of the editbox will contain lines that
>are automatically wrapped, as entire paragraphs are come in as a single line.
>
>>>I do not see how your suggestion helps. How would I know when to use this opaque shape
>>>over the scroll bar?
>>>
>>>What I am looking for is a way to only show the scroll bar if the text takes up more lines
>>>than will show.
>>
>>How about basing the visibility of the shape on the value of ALINES()?
>>
>>-m.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform