Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Text box

From Wikipedia, the free encyclopedia
GUI elements for entering or displaying text
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Text box" – news ·newspapers ·books ·scholar ·JSTOR
(February 2017) (Learn how and when to remove this message)
A text entry box
A multi-line "textarea" text box in aweb browser

Atext box, also called aninput box,text field ortext entry box, is a control element of agraphical user interface (GUI) that allows users to enter text for processing by a program.[1][2]

A typical text box is a rectangle, possibly with a border that separates the text box from the rest of the interface. Text boxes may contain horizontal and verticalscrollbars. Text boxes usually display atext cursor (commonly a blinking vertical line), indicating the current region of text being edited. It is common for themousecursor to change its shape when it hovers over a text box.[3]

Standard functionality

[edit]

Although most operating systems and GUI frameworks provide text box controls with extensive built-in functionality, some applications, such as video games, may implement simplified versions.

Enter text

[edit]

When keys are pressed on a keyboard, the text is added at the caret location. Some very simple text boxes may not show a caret, which would suggest that new characters typed in will appear at the end of the current text.

Navigate and manipulate text

[edit]

Using a mouse:

  • Change the caret position by clicking the desired point with a mouse cursor;
  • Select a portion of text by pressing the main mouse button while pointing the cursor at one end of the desired part of the text and dragging the cursor to the other end while holding the button pressed.

Using the keyboard:

  • Pressingarrow keys changes the caret position by one character or line
  • PressingHome /End keys (Microsoft's Windows OS) orCommand-left arrow / Command-right arrow (Apple'sMac OS) moves the caret to the beginning / end of the line
  • PressingPage Up /Page Down moves the caret a page (the number of lines that can be displayed in the text box at a time) backward / forward (Windows) or moves thescrollbar thumb a page backward / forward without changing the caret position (Mac OS)
  • Holding theCtrl key (Windows) while pressing arrow keys orHome /End keys makes the caret move at larger steps, e.g. words, paragraphs or beginning / end of document
  • Holding theOption (Mac OS) while pressing arrows moves the caret whole words or paragraphs
  • Holding theCommand key while pressing up or down arrows (Mac OS) or holding theCtrl key while pressingHome /End (Windows) moves the caret to the beginning or end of the document
  • Holding theShift key while changing the caret position with a mouse or keyboard selects the text between the caret position from when Shift was first pressed and its current position
  • PressingControl+A (Windows) selects all text

Edit text

[edit]

Work in insert or overwrite mode, typically switched usingInsert key. In insert mode if there is a character to the right of the caret, the new character will be inserted before it, while in overwrite mode typing a new character will replace (overwrite) the character to the right of the caret position.

Typing in text while some part of the text already entered is selected will replace the selected text.

Delete /Backspace keys remove one character right / left of current caret position, while pressing them together with theCtrl orcommand key removes one word.

Edit the text using standardclipboard operations.

Edits can beundone andredone withCtrl+Z /Ctrl+Y (Windows) or⌘ Command+Z /⌘ Command+⇧ Shift+Z (Mac OS)

Alternative meanings

[edit]

The term "text box" is also used intypography,desktop publishing andprint design to describe a visually distinct container for text. These text boxes are typically bordered or shaded regions used to highlight quotations, sidebars or supplementary information. They are common inmagazines,newspapers,textbooks andtechnical documentation. This usage predates digital interfaces and remains common in print and layout design, although it may also be used inwebsite design.

In this context, a text box may:

  • Be floated to the side of the main content, with surrounding text wrapping around it.
  • Include a border, background color or other visual styling.
  • Serve as acallout,pull quote orsidebar.

See also

[edit]

References and notes

[edit]
  1. ^"What does text box mean?".www.definitions.net. Retrieved2020-08-08.
  2. ^"Text Box Definition".techterms.com. Retrieved2020-08-08.
  3. ^"Text box - Windows apps".Microsoft Learn. Retrieved2025-06-22.
Command input
Data input-output
Informational
Containers
Navigational
Specialwindows
Related concepts
Retrieved from "https://en.wikipedia.org/w/index.php?title=Text_box&oldid=1308128514"
Category:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp