General information
Category:
Coding, syntax & commands
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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only