Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make editbox scrollbar disappear if not needed?
Message
From
15/04/2012 18:44:33
 
 
To
15/04/2012 17:52:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01541549
Message ID:
01541584
Views:
40
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
Map
View

Click here to load this message in the networking platform