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

Method for displaying long texts

A display method and long text technology, applied in the automotive field, can solve problems such as inability to fully display character strings, failure to display, and difficulty in reading, and achieve good visual effects, improved user experience, and high efficiency

Active Publication Date: 2015-06-24
HUIZHOU DESAY SV AUTOMOTIVE
View PDF4 Cites 12 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
  • Method for displaying long texts
  • Method for displaying long texts
  • Method for displaying long texts

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 in conjunction with the accompanying drawings.

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

[0017] When drawing characters, first judge whether the width of the specified display area (Ctrl.Width) can fully display the characters to be displayed (FTStr); if so, directly draw and display the characters to be displayed, and skip the following steps, otherwise continue to the subsequent steps . When drawing text on the screen, the required width of each character is not consistent, and it is related to the font type and size of the character. Therefore, the width of the character to be displayed (FTWidth) can be obta...

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 involves the automotive field, especially a long text display method. Background technique [0002] In the computer system, especially for embedded systems with smaller display areas, it is often necessary to display a string of a certain length in the display area of the specified width, and the length of this string will exceed the width of the display area;The file name of the file is very long. When the file name is displayed, this string cannot be completely displayed in the specified display area.In response to this problem, there are two commonly used schemes: (1) Tripping the characters in the specified area and adding a omission to indicate that some texts have been cut off, which cannot be displayed. Users can only read the displayed text.(2) The automatic periodic rolling display of the string. Although this method can be the user to all the text content, the text is constantly rolling, especially on the same screen. There are multi...

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 Applications(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