Scroll bar generation method and device

A scroll bar and display position technology, applied in the computer field, can solve the problem of high scroll bar complexity, and achieve the effects of solving high complexity, reducing complexity and increasing flexibility

Active Publication Date: 2015-01-07
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a method and device for generating a scroll bar, so as to at least solve the technical problem of high complexity in the operation of generating a scroll bar in the prior art

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
  • Scroll bar generation method and device
  • Scroll bar generation method and device
  • Scroll bar generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] According to an embodiment of the present invention, a method for generating a scroll bar is provided, such as figure 2 As shown, the method includes:

[0027] S202. Obtain the display height of the display information in the control display area of ​​the tree control and the display height of the control display area, wherein the tree control is used to display the display information with a tree structure in the control display area;

[0028] S204. When the display height of the displayed information is greater than the display height of the control display area, adjust the width of the control display area to reserve a blank area whose width is the width value of the first scroll bar;

[0029] S206. Generate a first scroll bar according to a preset scroll bar parameter, where the scroll bar parameter includes: a first scroll bar width value;

[0030] S208. Display the generated first scroll bar on the blank area, where the width of the first scroll bar is the width...

Embodiment 2

[0087] According to an embodiment of the present invention, a device for generating a scroll bar is also provided, such as Figure 12 As shown, the device includes:

[0088] 1) The acquisition unit 1202 is configured to acquire the display height of the display information in the control display area of ​​the tree control and the display height of the control display area, wherein the tree control is used to display display information with a tree structure in the control display area;

[0089] 2) The adjustment unit 1204 is configured to adjust the width of the control display area to leave a blank area whose width is the width of the first scroll bar when the display height of the displayed information is greater than the display height of the control display area;

[0090] 3) The generating unit 1206 is configured to generate a first scroll bar according to preset scroll bar parameters, wherein the scroll bar parameters include: a first scroll bar width value;

[0091] 4) ...

Embodiment 3

[0149] According to an embodiment of the present invention, there is also provided a terminal for implementing the above method for generating a scroll bar, the terminal comprising:

[0150] 1) A memory, configured to store the display height of the control display area of ​​the tree control, the display height of the displayed information, and preset scroll bar parameters, wherein the preset scroll bar parameters include the first scroll bar width value.

[0151] 2) The processor is configured to adjust the width of the control display area to leave a blank area whose width is the width of the first scroll bar when the display height of the displayed information is greater than the display height of the control display area; and The generated first scroll bar is displayed on the blank area, where the width of the first scroll bar is the width value of the first scroll bar.

[0152] Optionally, in this embodiment, the above memory may also be used to store other data stored in...

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 scroll bar generation method and device. The scroll bar generation method includes: obtaining the display height of display information in a control display area of a tree control and the display height of the control display area, wherein the tree control is used for displaying the display information with a tree structure in the control display area; adjusting the width of the control display area when the display height of the display information is larger than that of the control display area to reserve a blank area with the width equal to a first roll bar width value; generating a first roll bar according to a preset roll bar parameter, wherein the roll bar parameter includes the width of the first roll bar; displaying the generated first roll bar in the blank area, wherein the width of the first roll bar is equal to the first roll bar width value. The scroll bar generation method and device solve the technical problem in the prior art of high complexity of roll bar generation operations.

Description

technical field [0001] The present invention relates to the field of computers, in particular to a method and device for generating a scroll bar. Background technique [0002] At present, in the existing operating system on the terminal, when the display area cannot display all the display information, the way of sliding the scroll bar at the edge of the display area is usually used to realize the browsing of all the display information in the display area. Among them, the above-mentioned scroll bar is a bar-shaped control composed of a scroll slider and a scroll arrow, such as figure 1 As shown, it can be used to adjust the work area up and down or left and right. For example, when the left mouse button is used to press and hold the target position to be moved to, the scroll bar in the scroll bar will move to the above target position, and the display area will also be linked. Slide to display the display information corresponding to the target position of the scroll slide...

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): G06F9/44
Inventor 尚子峰
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products