Supercharge Your Innovation With Domain-Expert AI Agents!

Display method and terminal of a text box

A display method and technology of a display terminal, which are applied in the input/output process of data processing, instruments, calculations, etc., can solve problems such as affecting user experience and inconvenient user operation, and achieve the effect of improving user experience and facilitating operation.

Active Publication Date: 2022-07-05
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF5 Cites 0 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
  • Display method and terminal of a text box
  • Display method and terminal of a text box
  • Display method and terminal of a text box

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

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

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

[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 displayed lines;

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

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

[0073] The height of the second text box changes with the change of the content, and the width and row height of the second text box have a corresponding relationship with the width and row 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, receiving an operation for the first text box, and ...

Embodiment 2

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

[0091] The S3 also includes:

[0092] Determine whether there is a first temporary row, and if so, delete the first temporary row;

[0093] Subtract the number of lines displayed by default on each page by the remainder of dividing the number of lines where the cursor is located by the number of lines displayed by default on each page of the first text box to obtain the number of lines in the second temporary line;

[0094] adding a second temporary line of said number of lines at the end of said first text box;

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

Embodiment 3

[0097] A method for displaying a text box, which is different from the first or second embodiment 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] Enter action:

[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 time, step S2 is specifically:

[0104] S2, receiving an input operation for the first text box, and 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;

[0105] Wherein, determining the number of pages where the cursor in the first text box is located 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 posit...

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 present invention discloses a display method and terminal for a text box. By creating a first text box and a hidden second text box corresponding to the first text box, the scroll bar of the first text box is hidden, and the scroll bar of the first text box is The operation of the first text box, determining the number of pages where the cursor is located in the first text box through the second text box according to the operation, and jumping pages to the first text box according to the number of pages to achieve A text box displays the contents of the text box in pagination, replacing the original scroll bar form with pagination, which truly simulates the scene of a real book page, which is convenient for users to operate, improves user experience, and can receive input to the text box. , delete, jump and other operations to maintain the effect of paging display.

Description

technical field [0001] The invention relates to the field of text box design, in particular to a text box display method and terminal. Background technique [0002] In current web development, textarea tags are usually used to implement text box objects. The text box defined by the textarea tag can hold an unlimited amount of text by default. Developers can also set the maximum number of characters, the number of displayed columns and rows according to their 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. SUMMARY OF THE INVENTION [0003] The technical problem to be solved by the present invention is to provide a display method and terminal for a text box, which can display the text box in a paging form, which is convenien...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F3/0483G06F3/04812G06F3/04855
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