Sunday, April 9, 2017

Specify the text-scrolling options for a control

Specify the text-scrolling options for a control

If paragraph breaks are enabled for a control, or if you specify that the text should wrap inside a control, you can specify the scrolling options for that control. For example, you can make scroll bars appear on a text box when the user types more text than the text box is able to display by default.

Note: Scrolling options are available for text boxes, rich text boxes, and expression boxes. By default, a text box scrolls automatically while the user types, and a rich text box and an expression box expand to show all of the text.

  1. Right-click the control for which you want to set a text-scrolling option, and then click Control Properties on the shortcut menu.

  2. Click the Display tab.

  3. In the Scrolling list, click the text-scrolling option that you want.

Tip: If the scroll bars don't work as you expect when you test your form — for example, if they appear dimmed regardless of the amount of text that is typed in the control — open the Control Properties dialog box, and then review the Height and Width settings on the Size tab. If auto appears in either box, the control will expand to accommodate the text. In this case, the scroll bars are not necessary and will always appear dimmed on the form. To fix this problem, either enter something other than auto in the Height or Width box, or select a different scrolling option on the Display tab.

No comments:

Post a Comment