Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A long text display method

A display method and long text technology, applied in the direction of instruments, computing, electrical digital data processing, etc., can solve the problems of incomplete display of strings, inability to display, difficulty in reading, etc., achieve good visual effects, improve user experience, and high efficiency Effect

Active Publication Date: 2018-11-30
HUIZHOU DESAY SV AUTOMOTIVE
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In computer systems, especially for embedded systems with a small display area, it is often necessary to display a character string of a certain length in a display area of ​​a specified width, and the length of this string often exceeds the width of the display area; for example: a The file name of the file is very long. When displaying the file name, the string cannot be completely displayed in the specified display area.
To solve this problem, there are currently two commonly used solutions: (1) Truncate the characters beyond the specified area and add an ellipsis to indicate that some text is truncated and cannot be displayed, and the user can only read the displayed text
(2) The character string is automatically and periodically scrolled. Although this method allows the user to see all the text content, the text scrolls continuously, especially the text in multiple text display areas on the same screen scrolls together at the same time, making The user is dazzled, making reading more difficult

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
  • A long text display method
  • A long text display method
  • A long text display method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0015] In order to allow those skilled in the art to better understand the technical solutions of the present invention, the present invention will be further described below with reference to the accompanying drawings.

[0016] Such as figure 1 As shown, the present invention discloses a long text display method, including: a mouse message response step, a calculation step of the number of characters that can be drawn in a width, and a text drawing step.

[0017] When drawing characters, first determine whether the width of the designated display area (Ctrl.Width) can completely display the characters to be displayed (FTStr); if so, draw and display the characters to be displayed directly, and skip the following steps, otherwise continue to the following steps . When drawing text on the screen, the width of each character is not consistent, which is related to the font type and size of the character, so the width of the character to be displayed (FTWidth) can be obtained through D...

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 method for displaying long texts. The method includes a mouse message response step: judging whether re-scanning messages need to be transmitted or not, calling redrawing functions by the aid of systems and describing controls again; a width-describable character number computing step: computing front n complete characters describable in the widths fwidth; a word describing step: displaying to-be-displayed characters by the aid of functions DrawText according to data fed by to-be-displayed character information, mouse message response units and width-describable character number computing units. The n is a post-computation feedback value. The method has the advantages that the method is high in efficiency, low in complexity and convenient to apply, excellent word scroll-display visual effects can be realized along with sliding of a mouse, and accordingly each character can be assuredly completely displayed; words of different portions can be displayed according to dragging actions of users and can be statically displayed when the users do not carry out operation, accordingly, large quantities of options can be provided for the users, and the experience can be improved for the users.

Description

Technical field [0001] The invention relates to the field of automobiles, in particular to a long text display method. Background technique [0002] In computer systems, especially for embedded systems with a small display area, it is often necessary to display a string of a certain length in a display area with a specified width, and the length of this string will often exceed the width of the display area; The file name of the file is very long. When the file name is displayed, the character string cannot be displayed completely in the designated display area. In response to this problem, there are currently two commonly used solutions: (1) Truncate characters beyond the specified area and add ellipsis to indicate that some of the text is truncated and cannot be displayed, and users can only read the displayed text. (2) The character string is automatically and periodically scrolled. Although this method can allow the user to view all the text content, the text is continuously...

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/0481G06F3/0484G06F3/0487
Inventor 陈秋龙程时宋黄东豹怀保胜
Owner HUIZHOU DESAY SV AUTOMOTIVE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products