![]() ![]() When capturing long spans of text with a maximum character or word count, use a plain text box and provide a live-running counter to show the user how many characters or words they have left before they reach the limit. Make the height of the text control tall enough to accommodate typical entries. Use a font that's consistent with the style of your app. When you create a rich text box, provide styling buttons and implement their actions. Use a single-line, unconstrained text input control to enter or edit strings, combined with a command button that helps users select valid values. Use a set of short, fixed-sized, single-line text input controls to enter data with a specific format. The answer is expected to be short, and so a single-line text box is appropriate here. The following example shows a single-line text box to capture an answer to a security question. Use single-line text input controls to gather small pieces of text from users. If the backing data source doesn't allow a long input string, limit the input and use a validation popup to let users know when they reach the limit. Set a maximum length for characters that can be entered. For example, you could split a single address input into "Address line 1" and "Address line 2". If doing so makes the control too wide, separate it into two controls. Make the size of single-line text boxes slightly wider than the longest anticipated input. If the text boxes are related in nature, group those together. Use several single-line text boxes to capture many small pieces of text information. If replacing is the most common use case for a given text input box, you can select all the text in the field whenever the control receives focus, and typing replaces the selection. The default behavior is appropriate for editing the value rather than replacing it the insertion point is placed between words and nothing is selected.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |