Don't put any scroll bars on single-line text boxes.įor numeric input, you may use a spin control.Use vertical scrolling and line wrapping instead. Don't put horizontal scroll bars on multi-line text boxes.In this example, the text box should be made much longer to handle its data. If you expect data to be larger than the text box and you can readily make the text box larger without harming the layout, size the box to eliminate the need for scrolling. However, don't use auto-complete for text boxes that may contain sensitive information, such as passwords, PINs, credit card numbers, or medical information.ĭon't make users scroll unnecessarily. Examples include user names, addresses, and file names. Use auto-complete to help users enter data that is likely to be used repeatedly. When disabling a text box, also disable any associated labels, instruction labels, spin controls, and command buttons. Textual output A multi-line, read-only text box used to display long strings.Ī read-only text box used to display data. A single-line, read-only text box used to display data. Unlike static text, data displayed using a text box can be scrolled (useful if the data is wider than the control), selected, and copied. Password and PIN input A single-line, unconstrained text box used to enter passwords and PINs securely.ĭata output A single-line, read-only text box, always displayed without a border, used to display short strings. The combination of a text box and its associated spin control is called a spin box. Numeric input A single-line, numeric-only text box used to enter or edit numbers, with an optional spin control to facilitate mouse-based input.Ī text box used for numeric input. ![]() Textual input A multi-line, unconstrained text box used to enter or edit long strings. In this example, the Browse command helps users select valid values. One disadvantage to this approach is that the data can't be copied or pasted as a single unit.Īssisted data input A single-line, unconstrained text box used to enter or edit strings, combined with a command button that helps users select valid values. The auto-exit feature automatically advances the input focus from one text box to the next. Labelĭata input A single-line, unconstrained text box used to enter or edit short strings.įormatted data input A set of short, fixed-sized, single-line text boxes used to enter data with a specific format.Ī text box used for formatted data input. Usage patternsĪ text box is a flexible control with several possible uses. For example, a control that is constrained to United States ZIP Codes isn't globalized, but an unconstrained text box that accepts any postal code format is. That said, when you are considering constraints, bear in mind the needs of global users. Use unconstrained controls like text boxes as a last resort. If users enter text that's not valid, you must handle the error with an error message.Īs a general rule, you should use the most constrained control that you can. This means relying on labels to convey this information to users.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |