Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
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
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