Supercharge Your Innovation With Domain-Expert AI Agents!

Text box display method and terminal

A display method and display terminal technology, applied in the input/output process of data processing, instruments, electrical digital data processing, etc., can solve problems affecting user experience, inconvenient user operation, etc., and achieve improved user experience and convenient operation Effect

Active Publication Date: 2021-07-20
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the current web development, the textarea tag is usually used to realize the text box object. The text box defined by the textarea tag can hold an unlimited amount of text by default. The developer can also set the maximum number of characters, the number of displayed columns and the number of rows according to the needs. However, the text box implemented by the textarea tag can only display the content on a single page. If the input data exceeds the number of displayed lines, the content will be displayed in the form of a scroll bar, which is inconvenient for the user to operate and affects the user experience.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Text box display method and terminal
  • Text box display method and terminal
  • Text box display method and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0067] Please refer to figure 1 , Embodiment 1 of the present invention is:

[0068] A method for displaying a text box, specifically comprising:

[0069] S1. Create a first text box and a hidden second text box corresponding to the first text box;

[0070] The scroll bar of the first text box is not displayed and each page has a preset number of display lines;

[0071] Among them, the preset number of display lines can be changed as required;

[0072] An input interface can be set through which the user can set the number of rows per page they want to display;

[0073] The height of the second text box changes as the content changes, and the width and line height of the second text box correspond to the width and line height of the first text box;

[0074] Preferably, the width and row height of the second text box are the same as those of the first text box;

[0075] S2. Receive an operation on the first text box, and determine the number of pages where the cursor is lo...

Embodiment 2

[0090] A method for displaying a text box, which is different from Embodiment 1 in that:

[0091] The S3 also includes:

[0092] Judging whether there is a first temporary row, if so, deleting the first temporary row;

[0093] Subtracting the remainder of dividing the number of lines where the cursor is located by the number of preset display lines per page of the first text box from the number of preset display lines per page to obtain the number of second temporary lines;

[0094] adding a second temporary row of the number of rows at the end of the first text box;

[0095] For example, the preset number of display lines in the first text box is 5, and after the user operates the text box, the current actual effective content (the content after deleting the first temporary line) is calculated to be 16 lines in total, that is, 3 pages and 1 line, then you need Add 4 temporary lines at the end of the first text box to achieve the full-page display effect of the fourth full p...

Embodiment 3

[0097] A method for displaying a text box, which differs from Embodiment 1 or 2 in that:

[0098] The operations for the first text box include:

[0099] Input operation, add page operation, delete page operation or jump page operation;

[0100] specific:

[0101] Input operation:

[0102] The input operation includes inserting content in the middle of each page and inserting content at the end of the page;

[0103] At this point, step S2 is specifically:

[0104] S2. Receive an input operation for the first text box, and determine the page number where the cursor is located in the first text box through the second text box according to the input operation;

[0105] Wherein, determining the number of pages where the cursor is located in the first text box through the second text box according to the input operation is specifically:

[0106] Determine the position of the cursor in the first text box according to the input operation, that is, the position of the cursor in t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a textbox display method and a terminal. The method comprises the steps: hiding the scroll bar of the first textbox by creating the first textbox and the hidden second textbox corresponding to the first textbox, and receiving the operation for the first textbox; determining the page number of a cursor in the first textbox through the second textbox according to the operation, performing page skipping on the first textbox according to the page number, displaying the content in the textbox in a paging mode in one textbox, replacing an original scroll bar mode with a paging mode, and simulating the scene of a real page truly; therefore, the user operation is facilitated, the user experience is improved, and the paging display effect can be kept when the operations of inputting, deleting, skipping and the like on the textbox are received.

Description

technical field [0001] The invention relates to the field of text box design, in particular to a text box display method and a terminal. Background technique [0002] In the current web development, the textarea tag is usually used to realize the text box object. The text box defined by the textarea tag can hold an unlimited amount of text by default. The developer can also set the maximum number of characters, the number of displayed columns and the number of rows according to the needs. However, the text box implemented by the textarea tag can only display the content on a single page. If the input data exceeds the number of displayed lines, the content will be displayed in the form of a scroll bar, which is inconvenient for the user to operate and affects the user experience. Contents of the invention [0003] The technical problem to be solved by the present invention is to provide a text box display method and a terminal, which can display the text box in a page-by-pa...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F3/0483G06F3/0481G06F3/0485
CPCG06F3/0483G06F3/04812G06F3/04855
Inventor 刘德建陈圆治郭玉湖陈宏
Owner FUJIAN TIANQUAN EDUCATION TECH LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More