Method and device for generating scroll bar
A scroll bar and display position technology, which is applied in the computer field, can solve the problem of high complexity of scroll bars, and achieve the effect of solving high complexity, reducing complexity, and increasing flexibility
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap