Sad to relate that I have no idea how to draw a textbox whose scrollbars appear only when needed. So that for example, the horizontal scrollbar appears if the text added is too long for the width of the textbox.
Announcement
Collapse
No announcement yet.
textbox scrollbars hidden until needed?
Collapse
X
-
funny, you can do it with Listboxen but when the scrollbar is hidden the space which it would have occupied is filled with white or something very like it, just as ugly.
Will have to go to plan B, using a label and wrapping the long string inside it - I know that labels have a wordwrap property but this string is a path which may or may not have spaces.
Comment
-
I agree with Bud, and I only discovered this happenstance yesterday while updating some old code to concepts I now understand.
Makes for a cleaner looking form (but most of us overlook the scrollbars because they have always been there) so when I tried RichEdit, I lost an hour trying to figure out why scrollbars were not showing until I either spaced off screen, or $CR down off screen and it hit meno more greyed out scrollbars....I like it.
Engineer's Motto: If it aint broke take it apart and fix it
"If at 1st you don't succeed... call it version 1.0"
"Half of Programming is coding"....."The other 90% is DEBUGGING"
"Document my code????" .... "WHYYY??? do you think they call it CODE? "
Comment
-
Originally posted by Chris Holbrook View Postfunny, you can do it with Listboxen but...
.. but this string is a path which may or may not have spaces.Rgds, Dave
Comment
Comment