Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Edit box scroll bars
Message
From
19/06/2003 07:48:51
 
 
To
18/06/2003 20:18:32
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00801525
Message ID:
00801667
Views:
24
Hi Geoff.

I have a problem whereby my scroll bars disappear if I make the height of of the editbox less than 37.

As Hilmar already mentioned, you need to be sure that the edit boxes are tall enough.

I just wanted to jump in here and let you know that if you are going to go with his solution of the expnading edit box, we have one of those in Chapter 4 of 1001 Things You Wanted to Know About Visual FoxPro.

The expanding edit box (Example: CH04.VCX::edtBase)
One of the shortcomings of the Visual FoxPro base class edit box is that it may be too small to allow the user to see all the text in the memo field being displayed. We can solve this problem easily enough by adding a few properties to our base class edit box and a couple of methods to shrink and expand it.

At first glance one may be tempted to automatically expand the edit box when it gets focus and shrink it again when it loses focus. However, on reflection you will probably agree this would not make a good interface design and would, at the very least, be somewhat disconcerting for the end user. Therefore we have opted to allow the user to expand and shrink the edit box by creating a shortcut menu called from the edit box RightClick method. This menu also gives the user the ability to change the font of the text displayed in the edit box. (Your end users will appreciate the ability to ease the strain on their eyes by enlarging the font, especially when the memo fields to be edited are lengthy.)

So if you have the book, there is no need to roll your own < s >.
Previous
Reply
Map
View

Click here to load this message in the networking platform