CN104267961B - The generation method and device of scroll bar - Google Patents
The generation method and device of scroll bar Download PDFInfo
- Publication number
- CN104267961B CN104267961B CN201410526409.7A CN201410526409A CN104267961B CN 104267961 B CN104267961 B CN 104267961B CN 201410526409 A CN201410526409 A CN 201410526409A CN 104267961 B CN104267961 B CN 104267961B
- Authority
- CN
- China
- Prior art keywords
- scroll bar
- viewing area
- control viewing
- width
- width value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of generation method of scroll bar and device, wherein, this method includes:The display height of display information in the control viewing area of tree control and the display height of control viewing area are obtained, wherein, tree control is used for display information of the display with tree in control viewing area;In the case where the display height of display information is more than the display height of control viewing area, the width of control viewing area is adjusted, to reserve white space of the width as the first scroll bar width value;First scroll bar is generated according to the scroll bar parameter pre-set, wherein, scroll bar parameter includes:First scroll bar width value;The first scroll bar of generation is shown on white space, wherein, the width of the first scroll bar is the first scroll bar width value.The present invention solves the higher technical problem of complexity of the operation of generation scroll bar in the prior art.
Description
Technical field
The present invention relates to computer realm, in particular to the generation method and device of a kind of scroll bar.
Background technology
At present, in the operating system in existing terminal, when viewing area can not show whole display informations, lead to
It can often realize and whole display informations in viewing area are browsed by the way of the scroll bar at viewing area edge is slided.Its
In, the bar shaped control that above-mentioned scroll bar is made up of rolling slide block and scroll arrow, as shown in figure 1, above and below can be used for
Or left and right adjustment workspace, for example, when pinning rolling slide block in the target location to be moved to, scroll bar with left mouse button just
Above-mentioned target location can be moved to, while linkage is also slided in viewing area, so that the target location where display scrolling sliding block
Corresponding display information.
Traditional scroll bar is generally generated using tree controls (tree control), however, using the tree controls of system itself
When generating scroll bar, the pattern of the scroll bar of generation is fixed, it is impossible to meet Vision Design demand;In addition, self-defined in order to generate
Scroll bar, it is necessary to self-defined whole tree controls, generate customized scroll bar thereby using customized tree controls.So
And, the mode of this customized scroll bar of generation needs the content in self-defined whole tree controls, for example, icon, display
Form etc., so as to considerably increase the complexity of the operation of generation scroll bar.
For it is above-mentioned the problem of, effective solution is not yet proposed at present.
The content of the invention
The embodiments of the invention provide a kind of generation method of scroll bar and device, at least to solve to generate in the prior art
The higher technical problem of the complexity of the operation of scroll bar.
One side according to embodiments of the present invention there is provided a kind of generation method of scroll bar, including:Obtain tree control
Control viewing area in display information display height and above-mentioned control viewing area display height, wherein, above-mentioned tree
Control is used for above-mentioned display information of the display with tree in above-mentioned control viewing area;In the aobvious of above-mentioned display information
In the case of showing the display height that height is more than above-mentioned control viewing area, the width of above-mentioned control viewing area is adjusted
It is whole, to reserve white space of the width as the first scroll bar width value;Scroll bar parameter generation first according to pre-setting is rolled
Dynamic bar, wherein, above-mentioned scroll bar parameter includes:Above-mentioned first scroll bar width value;Generation is shown on above-mentioned white space
Above-mentioned first scroll bar, wherein, the width of above-mentioned first scroll bar is above-mentioned first scroll bar width value.
Another aspect according to embodiments of the present invention, additionally provides a kind of generating means of scroll bar, including:Obtain single
The display height of display information and the display of above-mentioned control viewing area in member, the control viewing area for obtaining tree control
Highly, wherein, above-mentioned tree control be used in above-mentioned control viewing area display with tree above-mentioned display information;Adjust
Whole unit, it is right in the case of being more than the display height of above-mentioned control viewing area in the display height of above-mentioned display information
The width of above-mentioned control viewing area is adjusted, to reserve white space of the width as the first scroll bar width value;Generation is single
Member, for generating the first scroll bar according to the scroll bar parameter pre-set, wherein, above-mentioned scroll bar parameter includes:Above-mentioned
One scroll bar width value;Display unit, above-mentioned first scroll bar for showing generation on above-mentioned white space, wherein, on
The width for stating the first scroll bar is above-mentioned first scroll bar width value.
In embodiments of the present invention, it is high by the display of the display information in the control viewing area of tree control is judged
In the case of display height of the degree more than the control viewing area of tree control, the width of adjustment control viewing area, to reserve width
Spend for the white space of the first scroll bar width value, so that will be according to the first scroll bar of the scroll bar parameter generation pre-set
The white space that the above-mentioned width reserved is the first scroll bar width value is shown in, so that the basis of the tree control in system itself
The scroll bar parameter that upper basis is pre-set generates scroll bar, without being redefined to whole tree control, reaches and subtracts
The complexity of small generation scroll bar, and then solve the higher technology of the complexity of the operation of generation scroll bar in the prior art
Problem.
Further, for the first scroll bar width value relation different from the second scroll bar width value, to control viewing area
The width in domain is adjusted, so as to increase the flexibility ratio of generation scroll bar.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of scroll bar according to prior art;
Fig. 2 is a kind of schematic flow sheet of the generation method of optional scroll bar according to embodiments of the present invention;
Fig. 3 is a kind of schematic diagram of optional scroll bar according to embodiments of the present invention;
Fig. 4 is the schematic diagram of another optional scroll bar according to embodiments of the present invention;
Fig. 5 is the schematic diagram of another optional scroll bar according to embodiments of the present invention;
Fig. 6 is the schematic diagram of the generation method of another optional scroll bar according to embodiments of the present invention;
Fig. 7 is the schematic diagram of the generation method of another optional scroll bar according to embodiments of the present invention;
Fig. 8 is the schematic diagram of the generation method of another optional scroll bar according to embodiments of the present invention;
Fig. 9 is the schematic diagram of another optional scroll bar according to embodiments of the present invention;
Figure 10 is the schematic diagram of another optional scroll bar according to embodiments of the present invention;
Figure 11 is the schematic diagram of another optional scroll bar according to embodiments of the present invention;And
Figure 12 is the schematic diagram of the generating means of another optional scroll bar according to embodiments of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model that the present invention is protected
Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so using
Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or
Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
Lid is non-exclusive to be included, for example, the process, method, system, product or the equipment that contain series of steps or unit are not necessarily limited to
Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product
Or the intrinsic other steps of equipment or unit.
Embodiment 1
According to embodiments of the present invention there is provided a kind of generation method of scroll bar, as shown in Fig. 2 this method includes:
S202, obtains the display height of display information in the control viewing area of tree control and showing for control viewing area
Show height, wherein, tree control is used for display information of the display with tree in control viewing area;
S204, it is aobvious to control in the case where the display height of display information is more than the display height of control viewing area
Show that the width in region is adjusted, to reserve white space of the width as the first scroll bar width value;
S206, the first scroll bar is generated according to the scroll bar parameter pre-set, wherein, scroll bar parameter includes:First
Scroll bar width value;
S208, shows the first scroll bar of generation on white space, wherein, the width of the first scroll bar rolls for first
Bar width value.
Alternatively, in the present embodiment, the generation method of above-mentioned scroll bar can be, but not limited to be applied to again according to pre-
The scroll bar parameter first set generates the process of scroll bar, and corresponding scroll bar is generated according to the demand of user so as to realize, and
It is not limited only to fix the scroll bar of pattern using system.For example, when the display for detecting display information in control viewing area is high
Degree then can be, but not limited to regenerate new rolling for the control viewing area more than the display height of control viewing area
Bar, the scroll bar of above-mentioned generation at least can be, but not limited to different from the width value of the original scroll bar of system.Alternatively, at this
In embodiment, the generation method of scroll bar can be, but not limited to be applied in terminal, wherein, above-mentioned terminal can include but not limit
In:Mobile phone, tablet personal computer, notebook computer, PC, DTV.The example above is a kind of example, the present embodiment to this not
Do any restriction.
Alternatively, in the present embodiment, as shown in figure 3, above-mentioned tree control can be, but not limited to be used in control viewing area
The display information of tree is shown in domain, for example, " bookmark " (root) includes " online navigation ", " hot game ", " receipts
Three branches of Tibetan folder ", again including " it is recommended that website ", " seeing that figure searches piece " Liang Ge sub-branches in " collection ".
Alternatively, in the present embodiment, the display height of above-mentioned control viewing area can include but is not limited to such as Fig. 3 institutes
The height H of the viewing area for the left side tree control shown;The height of above-mentioned display information can include but is not limited to as shown in Figure 3
The height h of display information in the viewing area of left side tree control, wherein, the height h of display information is less than the height of viewing area
Spend H.
It is specific to be described with reference to the example below, after the file corresponding to " study " is clicked on, the son under this document folder
File will deploy to include in the viewing area of control, and " video text shown in such as Fig. 4 (a)-(b), is included under " study " file
Part ", " picture " two subfiles, in this case, the display height h' of above-mentioned display information will be greater than above-mentioned control and show
The display height H in region, then can be adjusted to the width of above-mentioned control viewing area, be joined according to the scroll bar pre-set
Number the first scroll bar of generation, wherein, above-mentioned first scroll bar is shown in reserved white space.As shown in Fig. 4 (a)-(b),
First scroll bar of the right side display generation of control viewing area.
Alternatively, in the present embodiment, the width of control viewing area is adjusted, rolled using reserving width as first
The mode of the white space of bar width value can include but is not limited to:According to the first scroll bar width value and the second scroll bar width
Value is adjusted to the width of control viewing area so that do not show the of tree control generation in the control viewing area after adjustment
Two scroll bars, wherein, the width of the second scroll bar is the second scroll bar width value.Wherein, above-mentioned first scroll bar and above-mentioned the
The relation of two scroll bars can include but is not limited to following at least one situation:The width value of first scroll bar is less than second and rolled
The situation of the width of bar, the width value of the first scroll bar is more than the situation of the width value of the second scroll bar, the width of the first scroll bar
Angle value is equal to the situation of the width value of the second scroll bar.
It is specific to be illustrated with reference to the example below, it is assumed that the width value phase of the width value of the first scroll bar and the second scroll bar
Meanwhile, then when the height of display information is more than the display height of above-mentioned control viewing area, adjust above-mentioned control viewing area
Width, with reserve for show the first scroll bar width value white space, due in the present embodiment it is above-mentioned first rolling
The width value of dynamic bar is identical with the width value of the second scroll bar, then when adjusting the width of control viewing area, control is shown
Region is adjusted to not showing the second scroll bar of above-mentioned tree control generation, and then is shown in the above-mentioned white space reserved
The first scroll bar of generation is stated, so as to realize in the case where keeping system tree control viewing area constant, reaches and is adjusted flexibly
The purpose of scroll bar.
Alternatively, in the present embodiment, highly will be big in the display at least detecting a period of time display information of following event
Display height in above-mentioned control viewing area:
1) file shown in expansion control viewing area;
2) the display height of control viewing area is reduced;
3) label in file or file is increased in control viewing area.
Alternatively, in the present embodiment, generating the first scroll bar according to the scroll bar parameter pre-set includes:
1), the first scroll bar width value is set;
2), set the first scroll bar unit change amount, wherein, the mode of above-mentioned control unit change amount can include but
It is not limited at least one of:Click and move up or lower shift button, mouse roller operation, key presses.
Alternatively.In the present embodiment, above-mentioned width value can include but is not limited to use pixel logo with height value.
The embodiment provided by the application is high by the display of the display information in the control viewing area of tree control
In the case of display height of the degree more than the control viewing area of tree control, the width of adjustment control viewing area, to reserve width
Spend for the white space of the first scroll bar width value, so that will be according to the first scroll bar of the scroll bar parameter generation pre-set
It is shown in the white space that the above-mentioned width reserved is the first scroll bar width value.So as on the basis of the tree control of system itself
The scroll bar parameter that upper basis is pre-set generates scroll bar, without being redefined to whole tree control, reaches and subtracts
The complexity of small generation scroll bar.
As a kind of optional scheme, according to the first scroll bar width value and the second scroll bar width value to control viewing area
The width in domain be adjusted including:
S1, when the first scroll bar width value is less than the second scroll bar width value, by the control viewing area before adjustment
Width increases the difference between the first scroll bar width value and the second scroll bar width value, wherein, the second scroll bar is arranged to
It is shown in the rightmost side that width adds the control viewing area of difference;
S2, the width that width is added to the control viewing area of difference reduces the second scroll bar width since the rightmost side
Value, the control viewing area after being adjusted.
Specifically with reference to shown in Fig. 4-Fig. 6, it is assumed that the width value of the control viewing area before adjustment is 100 as shown in Figure 5, is adjusted
The second scroll bar width L before whole1Value be 20, and the rightmost side of control viewing area is shown in, as shown in figure 4, wanting
First scroll bar width L of generation value is 10, that is to say, that the first scroll bar width value is less than the second scroll bar width
Value, then the width adjustment mode to control viewing area includes:The width value of the width value of first scroll bar and the second scroll bar
Between difference be 20-10=10, then the width value of the control viewing area before adjustment is adjusted to by 100 as shown in Figure 6
110, then the width for the control viewing area that above-mentioned width value is 110 is reduced into the second scroll bar width value since the rightmost side
20, then the control viewing area (as shown in shade) after being adjusted, the width value of the control viewing area after above-mentioned adjustment
For 110-20=90.Further, then the first scroll bar (the first scroll bar width value be 10) of generation is added, then above-mentioned control shows
Show that the width in region remains as 100 and do not changed compared with the width value before adjustment.
The embodiment provided by the application, when the first scroll bar width value is less than the second scroll bar width value, passes through
Above-mentioned adjustment mode is with the control viewing area after being adjusted, so that the flexibility ratio of increase generation scroll bar is realized, without
Whole tree control viewing area is adjusted, so as to reach the complexity for reducing generation scroll bar.
As a kind of optional scheme, according to the first scroll bar width value and the second scroll bar width value to control viewing area
The width in domain be adjusted including:
S1, when the first scroll bar width value is more than the second scroll bar width value, by the control viewing area before adjustment
Width reduces the difference between the first scroll bar width value and the second scroll bar width value, wherein, the second scroll bar is arranged to
It is shown in the rightmost side that width reduces the control viewing area of difference;
S2, the width that width is reduced to the control viewing area of difference reduces the second scroll bar width since the rightmost side
Value, the control viewing area after being adjusted.
Specifically with reference to shown in Fig. 4-Fig. 5 and Fig. 7, it is assumed that the width value of the control viewing area before adjusting as shown in Figure 5
For 100, the second scroll bar width L before adjustment1Value be 20, and the rightmost side of control viewing area is shown in, such as Fig. 4 institutes
Show, the value for the first scroll bar width L to be generated is 30, that is to say, that the first scroll bar width value is more than second and rolled
Bar width value, then the width adjustment mode to control viewing area include:The width value of first scroll bar and the second scroll bar
Difference between width value is 30-20=10, then as shown in Figure 7 adjusts the width value of the control viewing area before adjustment by 100
Whole is 90, then the width by above-mentioned width value for 90 control viewing area reduces the second scroll bar width value since the rightmost side
20, then the control viewing area (as shown in shade) after being adjusted, the width value of the control viewing area after above-mentioned adjustment
For 90-20=70.Further, then the first scroll bar (the first scroll bar width value be 30) of generation is added, then above-mentioned control shows
Show that the width in region remains as 100 and do not changed compared with the width value before adjustment.
The embodiment provided by the application, when the first scroll bar width value is more than the second scroll bar width value, passes through
Above-mentioned adjustment mode is with the control viewing area after being adjusted, so that the flexibility ratio of increase generation scroll bar is realized, without
Whole tree control viewing area is adjusted, so as to reach the complexity for reducing generation scroll bar.
As a kind of optional scheme, according to the first scroll bar width value and the second scroll bar width value to control viewing area
The width in domain be adjusted including:
S1, when the first scroll bar width value is equal to the second scroll bar width value, by the control viewing area before adjustment
Width reduces the second scroll bar width value since the rightmost side of the control viewing area before adjustment, and the control after being adjusted shows
Show region, wherein, the second scroll bar is arranged to show the rightmost side of control viewing area before adjustment.
Specifically with reference to shown in Fig. 4-Fig. 5 and Fig. 8, it is assumed that the width value of the control viewing area before adjusting as shown in Figure 5
For 100, the second scroll bar width L before adjustment1Value be 20, and the rightmost side of control viewing area is shown in, such as Fig. 4 institutes
Show, the value for the first scroll bar width L to be generated is 20, that is to say, that the first scroll bar width value is equal to second and rolled
Bar width value, then the width adjustment mode to control viewing area include:As shown in Figure 8 by the control viewing area before adjustment from
The rightmost side starts to reduce the second scroll bar width value 20, then the control viewing area (as shown in shade) after being adjusted is above-mentioned
The width value of control viewing area after adjustment is 100-20=80.Further, then the first scroll bar (first of generation is added
20) scroll bar width value is, then to remain as 100 compared with the width value before adjustment and unchanged for the width of above-mentioned control viewing area
Change.
The embodiment provided by the application, when the first scroll bar width value is equal to the second scroll bar width value, passes through
Above-mentioned adjustment mode is with the control viewing area after being adjusted, so that the flexibility ratio of increase generation scroll bar is realized, without
Whole tree control viewing area is adjusted, so as to reach the complexity for reducing generation scroll bar.
As a kind of optional scheme, show after first scroll bar of generation, also wrap on the white space
Include:
S1, judges whether the display height of the display information is adjusted to showing less than or equal to the control viewing area
Show height;
S2, if the display height of the display information is adjusted to the display height less than or equal to the control viewing area
Degree, then hide first scroll bar, and by the width of the control viewing area after adjustment return to adjustment before described in
The width of control viewing area.
Alternatively, in the present embodiment, will be small in the display height at least detecting a period of time display information of following event
In the display height equal to above-mentioned control viewing area:
1) file shown in control viewing area is packed up;
2) the display height of increase control viewing area;
3) label in file or file is reduced in control viewing area.
It is specific to combine the example below explanation, it is assumed that " study " file as shown in Figure 4 has been carried out packing up operation, then may be used
H will be returned to by h' by judging the display height of display information, wherein, the display height h of the display information after recovery is less than upper
The display height H of control viewing area is stated, then will hide the first scroll bar of above-mentioned generation as shown in Figure 9, and by after adjustment
The width (as shown in Figure 3) for the control viewing area that width is returned to before adjustment.
The embodiment provided by the application, the display by judging display information is highly adjusted to less than or equal to control
During the display height of part viewing area, then the first scroll bar of generation is hidden, and by the width of the control viewing area after adjustment
Recover, it is achieved thereby that the scroll bar of generation is reclaimed, reached the flexibility ratio of increase generation scroll bar, and in scroll bar
Generating process in do not influence tree control viewing area.
As a kind of optional scheme, display height and the control of display information in the control viewing area of tree control are obtained
The display of part viewing area highly includes:Shown in the control viewing area that a period of time for detecting following event obtains tree control
The display height of information and the display height of control viewing area:
1) file shown in expansion control viewing area.
For example, as shown in figure 4, " study " file shown in control viewing area is deployed, to show " study " text
Subfile under part folder, the then display of display information highly will be greater than the display height of control viewing area, so as to generate
First scroll bar is with whole display informations in browse controls viewing area.
2) the display height of control viewing area is reduced.
For example, as shown in Figure 10, certain zoom operations are carried out to control viewing area, for example, by control viewing area
1/3 is reduced, then the display height of above-mentioned display information also will be greater than the display height of control viewing area, so as to generate the
One scroll bar is with whole display informations in browse controls viewing area.
3) label in file or file is increased in control viewing area.
For example, as shown in figure 11, increasing new folder in control viewing area, for example, adding a new folder
" work ", then the display height of above-mentioned display information also will be greater than the display height of control viewing area, so as to generate the
One scroll bar is with whole display informations in browse controls viewing area.
The embodiment provided by the application, realizes display information in the control viewing area of tree control through the above way
Display height be more than control viewing area display height, and then according to pre-set scroll bar parameter generation first roll
Bar, without being redefined to whole tree control.
As a kind of optional scheme, generating the first scroll bar according to the scroll bar parameter pre-set includes:
1) width of the first scroll bar is set to the first scroll bar width value in scroll bar parameter;
2) upper shift button or lower shift button coverlet in the first scroll bar are hit in the control viewing area once moved and shown
Show that the unit change amount of the display location of information is set to the first height value in scroll bar parameter;
3) mouse roller detected in the first scroll bar is operated to display information in moved control viewing area
The unit change amount of display location is set to the second height value in scroll bar parameter;
4) display information in the control viewing area for being moved the key presses detected in the first scroll bar
The unit change amount of display location is set to the third height value in scroll bar parameter.
It is specific to be described with reference to the example below, it is assumed that so that upper shift button or lower shift button coverlet in the first scroll bar to be hit
The unit change amount of the display location of display information is set in scroll bar parameter in the control viewing area once moved
Exemplified by first height value, for example, will click the unit change amount that is once moved is set to 5, then upper shift button is often clicked once
Or lower shift button, above-mentioned scroll bar will move up or move down therewith 5 units.
The embodiment provided by the application, passes through setting for the unit change amount of the above-mentioned display location to display information
Put, realize the flexibility ratio of increase generation scroll bar, and then realize the flexible control changed to scroll bar.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because
According to the present invention, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know
Know, embodiment described in this description belongs to preferred embodiment, involved action and module is not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot
In the case of the former be more preferably embodiment.Understood based on such, technical scheme is substantially in other words to existing
The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage
In medium (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal equipment (can be mobile phone, calculate
Machine, server, or network equipment etc.) perform method described in each of the invention embodiment.
Embodiment 2
According to embodiments of the present invention, a kind of generating means of scroll bar are additionally provided, as shown in figure 12, the device includes:
1) the display height of display information and control in acquiring unit 1202, the control viewing area for obtaining tree control
The display height of part viewing area, wherein, tree control is used for display of the display with tree in control viewing area and believed
Breath;
2) adjustment unit 1204, the feelings of the display height for being more than control viewing area in the display height of display information
Under condition, the width of control viewing area is adjusted, to reserve white space of the width as the first scroll bar width value;
3) generation unit 1206, for generating the first scroll bar according to the scroll bar parameter pre-set, wherein, scroll bar
Parameter includes:First scroll bar width value;
4) display unit 1208, the first scroll bar for showing generation on white space, wherein, the first scroll bar
Width is the first scroll bar width value.
Alternatively, in the present embodiment, the generation method of above-mentioned scroll bar can be, but not limited to be applied to again according to pre-
The scroll bar parameter first set generates the process of scroll bar, and corresponding scroll bar is generated according to the demand of user so as to realize, and
It is not limited only to fix the scroll bar of pattern using system.For example, when the display for detecting display information in control viewing area is high
Degree then can be, but not limited to regenerate new rolling for the control viewing area more than the display height of control viewing area
Bar, the scroll bar of above-mentioned generation at least can be, but not limited to different from the width value of the original scroll bar of system.Alternatively, at this
In embodiment, the generation method of scroll bar can be, but not limited to be applied in terminal, wherein, above-mentioned terminal can include but not limit
In:Mobile phone, tablet personal computer, notebook computer, PC, DTV.The example above is a kind of example, the present embodiment to this not
Do any restriction.
Alternatively, in the present embodiment, as shown in figure 3, above-mentioned tree control can be, but not limited to be used in control viewing area
The display information of tree is shown in domain, for example, " bookmark " (root) includes " online navigation ", " hot game ", " receipts
Three branches of Tibetan folder ", again including " it is recommended that website ", " seeing that figure searches piece " Liang Ge sub-branches in " collection ".
Alternatively, in the present embodiment, the display height of above-mentioned control viewing area can include but is not limited to such as Fig. 3 institutes
The height H of the viewing area for the left side tree control shown;The height of above-mentioned display information can include but is not limited to as shown in Figure 3
The height h of display information in the viewing area of left side tree control, wherein, the height h of display information is less than the height of viewing area
Spend H.
It is specific to be described with reference to the example below, after the file corresponding to " study " is clicked on, the son under this document folder
File will deploy to include in the viewing area of control, and " video text shown in such as Fig. 4 (a)-(b), is included under " study " file
Part ", " picture " two subfiles, in this case, the display height h' of above-mentioned display information will be greater than above-mentioned control and show
The display height H in region, then can be adjusted to the width of above-mentioned control viewing area, be joined according to the scroll bar pre-set
Number the first scroll bar of generation, wherein, above-mentioned first scroll bar is shown in reserved white space.As shown in Fig. 4 (a)-(b),
First scroll bar of the right side display generation of control viewing area.
Alternatively, in the present embodiment, the width of control viewing area is adjusted, rolled using reserving width as first
The mode of the white space of bar width value can include but is not limited to:According to the first scroll bar width value and the second scroll bar width
Value is adjusted to the width of control viewing area so that do not show the of tree control generation in the control viewing area after adjustment
Two scroll bars, wherein, the width of the second scroll bar is the second scroll bar width value.Wherein, above-mentioned first scroll bar and above-mentioned the
The relation of two scroll bars can include but is not limited to following at least one situation:The width value of first scroll bar is less than second and rolled
The situation of the width of bar, the width value of the first scroll bar is more than the situation of the width value of the second scroll bar, the width of the first scroll bar
Angle value is equal to the situation of the width value of the second scroll bar.
It is specific to be illustrated with reference to the example below, it is assumed that the width value phase of the width value of the first scroll bar and the second scroll bar
Meanwhile, then when the height of display information is more than the display height of above-mentioned control viewing area, adjust above-mentioned control viewing area
Width, with reserve for show the first scroll bar width value white space, due in the present embodiment it is above-mentioned first rolling
The width value of dynamic bar is identical with the width value of the second scroll bar, then when adjusting the width of control viewing area, control is shown
Region is adjusted to not showing the second scroll bar of above-mentioned tree control generation, and then is shown in the above-mentioned white space reserved
The first scroll bar of generation is stated, so as to realize in the case where keeping system tree control viewing area constant, reaches and is adjusted flexibly
The purpose of scroll bar.
Alternatively, in the present embodiment, highly will be big in the display at least detecting a period of time display information of following event
Display height in above-mentioned control viewing area:
1) file shown in expansion control viewing area;
2) the display height of control viewing area is reduced;
3) label in file or file is increased in control viewing area.
Alternatively, in the present embodiment, generating the first scroll bar according to the scroll bar parameter pre-set includes:
1), the first scroll bar width value is set;
2), set the first scroll bar unit change amount, wherein, the mode of above-mentioned control unit change amount can include but
It is not limited at least one of:Click and move up or lower shift button, mouse roller operation, key presses.
Alternatively.In the present embodiment, above-mentioned width value can include but is not limited to use pixel logo with height value.
The embodiment provided by the application, by the control viewing area for being more than tree control in the display height of display information
In the case of the display height in domain, the width of adjustment control viewing area, to reserve sky of the width as the first scroll bar width value
White region, so that scroll bar is generated according to the scroll bar parameter pre-set on the basis of the tree control of system itself, and
Without being redefined to whole tree control, the complexity for reducing generation scroll bar is reached.
As a kind of optional scheme, adjustment unit 1204 includes:
1) adjusting module, for according to the first scroll bar width value and the second scroll bar width value to control viewing area
Width is adjusted so that do not show the second scroll bar of tree control generation in the control viewing area after adjustment, wherein, second
The width of scroll bar is the second scroll bar width value.
Alternatively, in the present embodiment, the relation of above-mentioned first scroll bar and above-mentioned second scroll bar can be included but not
It is limited to following at least one situation:The width value L of first scroll bar is less than the situation of the width of the second scroll bar, the first scroll bar
Width value be more than the second scroll bar width value situation, the width value of the first scroll bar is equal to the width value of the second scroll bar
Situation.
As a kind of optional scheme, above-mentioned adjusting module includes:
1) the first adjustment submodule, for when the first scroll bar width value is less than the second scroll bar width value, will adjust
The width of preceding control viewing area increases the difference between the first scroll bar width value and the second scroll bar width value, wherein,
Second scroll bar is arranged to be shown in the rightmost side for the control viewing area that width adds difference;Width is added into difference
The width of control viewing area reduce the second scroll bar width value since the rightmost side, the control viewing area after being adjusted
Domain.
Specifically with reference to shown in Fig. 4-Fig. 6, it is assumed that the width value of the control viewing area before adjustment is 100 as shown in Figure 5, is adjusted
The second scroll bar width L before whole1Value be 20, and the rightmost side of control viewing area is shown in, as shown in figure 4, wanting
First scroll bar width L of generation value is 10, that is to say, that the first scroll bar width value is less than the second scroll bar width
Value, then the width adjustment mode to control viewing area includes:The width value of the width value of first scroll bar and the second scroll bar
Between difference be 20-10=10, then the width value of the control viewing area before adjustment is adjusted to by 100 as shown in Figure 6
110, then the width for the control viewing area that above-mentioned width value is 110 is reduced into the second scroll bar width value since the rightmost side
20, then the control viewing area (as shown in shade) after being adjusted, the width value of the control viewing area after above-mentioned adjustment
For 110-20=90.Further, then the first scroll bar (the first scroll bar width value be 10) of generation is added, then above-mentioned control shows
Show that the width in region remains as 100 and do not changed compared with the width value before adjustment.
The embodiment provided by the application, when the first scroll bar width value is less than the second scroll bar width value, passes through
Above-mentioned adjustment mode is with the control viewing area after being adjusted, so that the flexibility ratio of increase generation scroll bar is realized, without
Whole tree control viewing area is adjusted, so as to reach the complexity for reducing generation scroll bar.
As a kind of optional scheme, above-mentioned adjusting module includes:
1) the second adjustment submodule, for when the first scroll bar width value is more than the second scroll bar width value, will adjust
The width of preceding control viewing area reduces the difference between the first scroll bar width value and the second scroll bar width value, wherein,
Second scroll bar is arranged to be shown in the rightmost side for the control viewing area that width reduces difference;Width is reduced into difference
The width of control viewing area reduce the second scroll bar width value since the rightmost side, the control viewing area after being adjusted
Domain.
Specifically with reference to shown in Fig. 4-Fig. 5 and Fig. 7, it is assumed that the width value of the control viewing area before adjusting as shown in Figure 5
For 100, the second scroll bar width L before adjustment1Value be 20, and the rightmost side of control viewing area is shown in, such as Fig. 4 institutes
Show, the value for the first scroll bar width L to be generated is 30, that is to say, that the first scroll bar width value is more than second and rolled
Bar width value, then the width adjustment mode to control viewing area include:The width value of first scroll bar and the second scroll bar
Difference between width value is 30-20=10, then as shown in Figure 7 adjusts the width value of the control viewing area before adjustment by 100
Whole is 90, then the width by above-mentioned width value for 90 control viewing area reduces the second scroll bar width value since the rightmost side
20, then the control viewing area (as shown in shade) after being adjusted, the width value of the control viewing area after above-mentioned adjustment
For 90-20=70.Further, then the first scroll bar (the first scroll bar width value be 30) of generation is added, then above-mentioned control shows
Show that the width in region remains as 100 and do not changed compared with the width value before adjustment.
The embodiment provided by the application, when the first scroll bar width value is more than the second scroll bar width value, passes through
Above-mentioned adjustment mode is with the control viewing area after being adjusted, so that the flexibility ratio of increase generation scroll bar is realized, without
Whole tree control viewing area is adjusted, so as to reach the complexity for reducing generation scroll bar.
As a kind of optional scheme, above-mentioned adjusting module includes:
1) the 3rd adjustment submodule, for when the first scroll bar width value is equal to the second scroll bar width value, will adjust
The width of preceding control viewing area reduces the second scroll bar width value since the rightmost side of the control viewing area before adjustment,
Control viewing area after being adjusted, wherein, the second scroll bar is arranged to show control viewing area before adjustment
The rightmost side.
Specifically with reference to shown in Fig. 4-Fig. 5 and Fig. 8, it is assumed that the width value of the control viewing area before adjusting as shown in Figure 5
For 100, the second scroll bar width L before adjustment1Value be 20, and the rightmost side of control viewing area is shown in, such as Fig. 4 institutes
Show, the value for the first scroll bar width L to be generated is 20, that is to say, that the first scroll bar width value is equal to second and rolled
Bar width value, then the width adjustment mode to control viewing area include:As shown in Figure 8 by the control viewing area before adjustment from
The rightmost side starts to reduce the second scroll bar width value 20, then the control viewing area (as shown in shade) after being adjusted is above-mentioned
The width value of control viewing area after adjustment is 100-20=80.Further, then the first scroll bar (first of generation is added
20) scroll bar width value is, then to remain as 100 compared with the width value before adjustment and unchanged for the width of above-mentioned control viewing area
Change.
The embodiment provided by the application, when the first scroll bar width value is equal to the second scroll bar width value, passes through
Above-mentioned adjustment mode is with the control viewing area after being adjusted, so that the flexibility ratio of increase generation scroll bar is realized, without
Whole tree control viewing area is adjusted, so as to reach the complexity for reducing generation scroll bar.
As a kind of optional scheme, said apparatus also includes:
1) judging unit, for showing the first scroll bar of generation on white space after, judge the aobvious of display information
Show whether height is adjusted to the display height less than or equal to control viewing area;
2) recovery unit, for being adjusted to the display less than or equal to control viewing area in the display height of display information
Highly, the first scroll bar, and the control viewing area that the width of the control viewing area after adjustment is returned to before adjustment are hidden
Width.
Alternatively, in the present embodiment, will be small in the display height at least detecting a period of time display information of following event
In the display height equal to above-mentioned control viewing area:
1) file shown in control viewing area is packed up;
2) the display height of increase control viewing area;
3) label in file or file is reduced in control viewing area.
It is specific to combine the example below explanation, it is assumed that " study " file as shown in Figure 4 has been carried out packing up operation, then may be used
H will be returned to by h' by judging the display height of display information, wherein, the display height h of the display information after recovery is less than upper
The display height H of control viewing area is stated, then will hide the first scroll bar of above-mentioned generation as shown in Figure 9, and by after adjustment
The width (as shown in Figure 3) for the control viewing area that width is returned to before adjustment.
The embodiment provided by the application, the display by judging display information is highly adjusted to less than or equal to control
During the display height of part viewing area, then the first scroll bar of generation is hidden, and by the width of the control viewing area after adjustment
Recover, it is achieved thereby that the scroll bar of generation is reclaimed, reached the flexibility ratio of increase generation scroll bar, and in scroll bar
Generating process in do not influence tree control viewing area.
As a kind of optional scheme, acquiring unit 1202 includes:
1) acquisition module, letter is shown for being obtained in a period of time for detecting following event in the control viewing area of tree control
The display height of breath and the display height of control viewing area:
(1) file shown in expansion control viewing area.
For example, as shown in figure 4, " study " file shown in control viewing area is deployed, to show " study " text
Subfile under part folder, the then display of display information highly will be greater than the display height of control viewing area, so as to generate
First scroll bar is with whole display informations in browse controls viewing area.
(2) the display height of control viewing area is reduced.
For example, as shown in Figure 10, certain zoom operations are carried out to control viewing area, for example, by control viewing area
1/3 is reduced, then the display height of above-mentioned display information also will be greater than the display height of control viewing area, so as to generate the
One scroll bar is with whole display informations in browse controls viewing area.
(3) label in file or file is increased in control viewing area.
For example, as shown in figure 11, increasing new folder in control viewing area, for example, adding a new folder
" work ", then the display height of above-mentioned display information also will be greater than the display height of control viewing area, so as to generate the
One scroll bar is with whole display informations in browse controls viewing area.
The embodiment provided by the application, realizes display information in the control viewing area of tree control through the above way
Display height be more than control viewing area display height, and then according to pre-set scroll bar parameter generation first roll
Bar, without being redefined to whole tree control.
As a kind of optional scheme, generation unit 1206 includes:
1) the first setup module, the first scroll bar for the width of the first scroll bar to be set in scroll bar parameter is wide
Angle value;
2) the second setup module, for upper shift button or lower shift button coverlet in the first scroll bar to be hit into what is once moved
The unit change amount of the display location of display information is set to the first height value in scroll bar parameter in control viewing area;
3) the 3rd setup module, for operating moved control to show the mouse roller detected in the first scroll bar
The unit change amount of the display location of display information is set to the second height value in scroll bar parameter in region;
4) the 4th setup module, the control for the key presses detected in the first scroll bar to be moved is shown
The unit change amount of the display location of display information is set to the third height value in scroll bar parameter in region.
It is specific to be described with reference to the example below, it is assumed that so that upper shift button or lower shift button coverlet in the first scroll bar to be hit
The unit change amount of the display location of display information is set in scroll bar parameter in the control viewing area once moved
Exemplified by first height value, for example, will click the unit change amount that is once moved is set to 5, then upper shift button is often clicked once
Or lower shift button, above-mentioned scroll bar all will move up or move down 5 units.
The embodiment provided by the application, passes through setting for the unit change amount of the above-mentioned display location to display information
Put, realize the flexibility ratio of increase generation scroll bar, and then realize the flexible control changed to scroll bar.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Embodiment 3
According to embodiments of the present invention, a kind of terminal for being used to implement above-mentioned scroll bar generation method, the terminal are additionally provided
Including:
1) memory, is arranged to store the display height of the control viewing area of tree control, and the display of display information is high
The scroll bar parameter difficult to understand spent and pre-set, wherein, the above-mentioned scroll bar parameter pre-set includes the first scroll bar width
Value.
2) processor, the display height being arranged in display information is more than the situation of the display height of control viewing area
Under, the width of control viewing area is adjusted, to reserve white space of the width as the first scroll bar width value;And in sky
The first scroll bar of generation is shown on white region, wherein, the width of the first scroll bar is the first scroll bar width value.
Alternatively, in the present embodiment, above-mentioned memory can be also used for scroll bar generation survey in storage above-described embodiment 1
During other data for being stored.
Alternatively, the specific example in the present embodiment may be referred to showing described in above-described embodiment 1 and embodiment 2
Example, the present embodiment will not be repeated here.
Embodiment 4
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can
With but be not limited to be applied to generate the process of scroll bar according to the scroll bar parameter that pre-sets again, so as to realize according to user
Demand generate corresponding scroll bar, be not limited solely to fix the scroll bar of pattern using system.For example, showing when detecting control
Show that the display height of display information in region is more than the display height of control viewing area, then can be, but not limited to show for the control
Show that region regenerates new scroll bar, the scroll bar of above-mentioned generation at least can be, but not limited to and the original scroll bar of system
Width value is different.Alternatively, in the present embodiment, the generation method of scroll bar can be, but not limited to be applied in terminal, wherein,
Above-mentioned terminal can include but is not limited to:Mobile phone, tablet personal computer, notebook computer, PC, DTV.The example above is
A kind of example, the present embodiment does not do any restriction to this.
Alternatively, above-mentioned storage medium is arranged to the program code that storage is used to perform following steps:
S1, obtains display height and the display of control viewing area of display information in the control viewing area of tree control
Highly, wherein, tree control be used in control viewing area display with tree display information;
S2, in the case where the display height of display information is more than the display height of control viewing area, shows to control
The width in region is adjusted, to reserve white space of the width as the first scroll bar width value;
S3, the first scroll bar is generated according to the scroll bar parameter pre-set, wherein, scroll bar parameter includes:First rolling
Dynamic bar width value;
S4, shows the first scroll bar of generation on white space, wherein, the width of the first scroll bar is the first scroll bar
Width value.
Alternatively, above-mentioned storage medium is also configured to the program code that storage is used to perform following steps:
S1, when the first scroll bar width value is less than the second scroll bar width value, by the control viewing area before adjustment
Width increases the difference between the first scroll bar width value and the second scroll bar width value, wherein, the second scroll bar is arranged to
It is shown in the rightmost side that width adds the control viewing area of difference;
S2, the width that width is added to the control viewing area of difference reduces the second scroll bar width since the rightmost side
Value, the control viewing area after being adjusted.
Alternatively, above-mentioned storage medium is also configured to the program code that storage is used to perform following steps:
S1, when the first scroll bar width value is more than the second scroll bar width value, by the control viewing area before adjustment
Width reduces the difference between the first scroll bar width value and the second scroll bar width value, wherein, the second scroll bar is arranged to
It is shown in the rightmost side that width reduces the control viewing area of difference;
S2, the width that width is reduced to the control viewing area of difference reduces the second scroll bar width since the rightmost side
Value, the control viewing area after being adjusted.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
S1, when the first scroll bar width value is equal to the second scroll bar width value, by the control viewing area before adjustment
Width reduces the second scroll bar width value since the rightmost side of the control viewing area before adjustment, and the control after being adjusted shows
Show region, wherein, the second scroll bar is arranged to show the rightmost side of control viewing area before adjustment.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or
CD etc. is various can be with the medium of store program codes.
Alternatively, the specific example in the present embodiment may be referred to showing described in above-described embodiment 1 and embodiment 2
Example, the present embodiment will not be repeated here.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
If the integrated unit in above-described embodiment is realized using in the form of SFU software functional unit and is used as independent product
Sale or in use, the storage medium that above computer can be read can be stored in.Understood based on such, skill of the invention
The part or all or part of the technical scheme that art scheme substantially contributes to prior art in other words can be with soft
The form of part product is embodied, and the computer software product is stored in storage medium, including some instructions are to cause one
Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) perform each embodiment institute of the invention
State all or part of step of method.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment
The part of detailed description, may refer to the associated description of other embodiment.
, can be by others side in several embodiments provided herein, it should be understood that disclosed client
Formula is realized.Wherein, device embodiment described above is only schematical, such as division of described unit, only one
Kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or
Another system is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed it is mutual it
Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of unit or module by some interfaces
Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (14)
1. a kind of generation method of scroll bar, it is characterised in that including:
Obtain the display height of display information in the control viewing area of tree control and the display height of the control viewing area
Degree, wherein, the tree control is used for the display information of the display with tree in the control viewing area;
In the case where the display height of the display information is more than the display height of the control viewing area, to the control
The width of viewing area is adjusted, to reserve white space of the width as the first scroll bar width value;
First scroll bar is generated according to the scroll bar parameter pre-set, wherein, the scroll bar parameter includes:First rolling
Dynamic bar width value;
First scroll bar of generation is shown on the white space, wherein, the width of first scroll bar is described
First scroll bar width value;
Wherein, the width to the control viewing area be adjusted including:According to the first scroll bar width value and
Second scroll bar width value is adjusted to the width of the control viewing area so that the control viewing area after adjustment
In do not show the second scroll bar of tree control generation, wherein, the width of second scroll bar is second scroll bar
Width value.
2. according to the method described in claim 1, it is characterised in that described to be rolled according to the first scroll bar width value and second
Dynamic bar width value the width of the control viewing area is adjusted including:
When the first scroll bar width value is less than the second scroll bar width value, by the control viewing area before adjustment
The width in domain increases the difference between the first scroll bar width value and the second scroll bar width value, wherein, described the
Two scroll bars are arranged to be shown in the rightmost side for the control viewing area that width adds the difference;
The width that width is added to the control viewing area of the difference reduces described second since the rightmost side
Scroll bar width value, obtains the control viewing area after the adjustment.
3. according to the method described in claim 1, it is characterised in that described to be rolled according to the first scroll bar width value and second
Dynamic bar width value the width of the control viewing area is adjusted including:
When the first scroll bar width value is more than the second scroll bar width value, by the control viewing area before adjustment
The width in domain reduces the difference between the first scroll bar width value and the second scroll bar width value, wherein, described the
Two scroll bars are arranged to be shown in the rightmost side for the control viewing area that width reduces the difference;
The width that width is reduced to the control viewing area of the difference reduces described second since the rightmost side
Scroll bar width value, obtains the control viewing area after the adjustment.
4. according to the method described in claim 1, it is characterised in that described to be rolled according to the first scroll bar width value and second
Dynamic bar width value the width of the control viewing area is adjusted including:
When the first scroll bar width value is equal to the second scroll bar width value, by the control viewing area before adjustment
The width in domain reduces the second scroll bar width value since the rightmost side of the control viewing area before the adjustment, obtains
The control viewing area after to the adjustment, wherein, second scroll bar is arranged to be shown in before the adjustment
The rightmost side of the control viewing area.
5. according to the method described in claim 1, it is characterised in that first rolling of generation is shown on the white space
After dynamic bar, in addition to:
Judge whether the display height of the display information is adjusted to the display height less than or equal to the control viewing area;
If the display height of the display information is adjusted to the display height less than or equal to the control viewing area, hide
First scroll bar, and the control viewing area that the width of the control viewing area after adjustment is returned to before adjustment
The width in domain.
6. according to the method described in claim 1, it is characterised in that show letter in the control viewing area for obtaining tree control
The display height of breath and the display of the control viewing area highly include:
The display height of display information and institute in the control viewing area that a period of time for detecting following event obtains tree control
State the display height of control viewing area:
Deploy the file shown in the control viewing area;
Reduce the display height of the control viewing area;
Increase the label in file or file in the control viewing area.
7. according to the method described in claim 1, it is characterised in that the scroll bar parameter generation first that the basis is pre-set
Scroll bar includes:
The width of first scroll bar is set to the first scroll bar width value in the scroll bar parameter;
Upper shift button or lower shift button coverlet in first scroll bar are hit in the control viewing area once moved
The unit change amount of the display location of the display information is set to the first height value in the scroll bar parameter;
The mouse roller detected in first scroll bar is operated and shown described in the control viewing area moved
The unit change amount of the display location of information is set to the second height value in the scroll bar parameter;
Shown described in the control viewing area that the key presses detected in first scroll bar are moved
The unit change amount of the display location of information is set to the third height value in the scroll bar parameter.
8. a kind of generating means of scroll bar, it is characterised in that including:
The display height and the control of display information are shown in acquiring unit, the control viewing area for obtaining tree control
The display height in region, wherein, the tree control, which is used for the display in the control viewing area, to be had described in tree
Display information;
Adjustment unit, the situation of the display height for being more than the control viewing area in the display height of the display information
Under, the width of the control viewing area is adjusted, to reserve white space of the width as the first scroll bar width value;
Generation unit, for generating the first scroll bar according to the scroll bar parameter pre-set, wherein, the scroll bar parameter bag
Include:The first scroll bar width value;
Display unit, first scroll bar for showing generation on the white space, wherein, first scroll bar
Width be the first scroll bar width value;
The adjustment unit includes:Adjusting module, for according to the first scroll bar width value and the second scroll bar width value
The width of the control viewing area is adjusted so that do not show the tree control in the control viewing area after adjustment
Second scroll bar of part generation, wherein, the width of second scroll bar is the second scroll bar width value.
9. device according to claim 8, it is characterised in that the adjusting module includes:
First adjustment submodule, for when the first scroll bar width value is less than the second scroll bar width value, will adjust
The width of the control viewing area before whole increase the first scroll bar width value and the second scroll bar width value it
Between difference, wherein, second scroll bar is arranged to be shown in the control viewing area that width adds the difference
The rightmost side in domain;The width that width is added to the control viewing area of the difference reduces institute since the rightmost side
The second scroll bar width value is stated, the control viewing area after the adjustment is obtained.
10. device according to claim 8, it is characterised in that the adjusting module includes:
Second adjustment submodule, for when the first scroll bar width value is more than the second scroll bar width value, will adjust
The width of the control viewing area before whole reduce the first scroll bar width value and the second scroll bar width value it
Between difference, wherein, second scroll bar is arranged to be shown in the control viewing area that width reduces the difference
The rightmost side in domain;The width that width is reduced to the control viewing area of the difference reduces institute since the rightmost side
The second scroll bar width value is stated, the control viewing area after the adjustment is obtained.
11. device according to claim 8, it is characterised in that the adjusting module includes:
3rd adjustment submodule, for when the first scroll bar width value is equal to the second scroll bar width value, will adjust
The width of the control viewing area before whole reduces institute since the rightmost side of the control viewing area before the adjustment
The second scroll bar width value is stated, the control viewing area after the adjustment is obtained, wherein, second scroll bar is set
To be shown in the rightmost side of the control viewing area before the adjustment.
12. device according to claim 8, it is characterised in that also include:
Judging unit, for showing first scroll bar of generation on the white space after, judge the display letter
Whether the display height of breath is adjusted to the display height less than or equal to the control viewing area;
Recovery unit, it is aobvious less than or equal to the control viewing area for being adjusted in the display height of the display information
Show height, hide first scroll bar, and the institute that the width of the control viewing area after adjustment is returned to before adjustment
State the width of control viewing area.
13. device according to claim 8, it is characterised in that the acquiring unit includes:
Display information is aobvious in acquisition module, the control viewing area for obtaining tree control in a period of time for detecting following event
Show height and the display height of the control viewing area:
Deploy the file shown in the control viewing area;
Reduce the display height of the control viewing area;
Increase the label in file or file in the control viewing area.
14. device according to claim 8, it is characterised in that the generation unit includes:
First setup module, for first rolling being set to the width of first scroll bar in the scroll bar parameter
Dynamic bar width value;
Second setup module, for upper shift button or lower shift button coverlet in first scroll bar to be hit into the institute once moved
State the display location of display information described in control viewing area unit change amount be set in the scroll bar parameter
One height value;
3rd setup module, for operating the control moved to show the mouse roller detected in first scroll bar
Show that the unit change amount of the display location of display information described in region is set to the second height value in the scroll bar parameter;
4th setup module, the control for the key presses detected in first scroll bar to be moved shows
Show that the unit change amount of the display location of display information described in region is set to the third height value in the scroll bar parameter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410526409.7A CN104267961B (en) | 2014-09-30 | 2014-09-30 | The generation method and device of scroll bar |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410526409.7A CN104267961B (en) | 2014-09-30 | 2014-09-30 | The generation method and device of scroll bar |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104267961A CN104267961A (en) | 2015-01-07 |
CN104267961B true CN104267961B (en) | 2017-08-01 |
Family
ID=52159485
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410526409.7A Active CN104267961B (en) | 2014-09-30 | 2014-09-30 | The generation method and device of scroll bar |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104267961B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106293409B (en) * | 2016-08-12 | 2019-07-05 | 福建中金在线信息科技有限公司 | A kind of beautification method of lightweight scroll bar |
CN106293411A (en) * | 2016-08-25 | 2017-01-04 | 天脉聚源(北京)教育科技有限公司 | A kind of control exposure method and device |
CN110502176A (en) * | 2018-05-16 | 2019-11-26 | 武汉斗鱼网络科技有限公司 | The implementation method and electronic equipment of scroll bar in a kind of Flickable form |
CN109814790B (en) * | 2019-01-31 | 2021-04-13 | 成都摹客科技有限公司 | Page rolling interaction method of prototype design tool |
CN110221758B (en) * | 2019-04-29 | 2022-08-26 | 平安科技(深圳)有限公司 | Scroll bar control method and device, computer equipment and storage medium |
CN111651161B (en) * | 2020-07-16 | 2023-04-18 | 深圳市易鸿达软件开发有限公司 | Graphical interface construction method and device, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1908877A (en) * | 2005-08-05 | 2007-02-07 | 腾讯科技(深圳)有限公司 | Method for automatically locking chat record visible page |
CN102436369A (en) * | 2010-09-29 | 2012-05-02 | 腾讯科技(深圳)有限公司 | Method and device for displaying data |
CN103218197A (en) * | 2013-04-26 | 2013-07-24 | 安科智慧城市技术(中国)有限公司 | Method, device and system of displaying data dynamically |
CN103853417A (en) * | 2012-11-30 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Rolling and pagination display method and device for network dynamic picture |
-
2014
- 2014-09-30 CN CN201410526409.7A patent/CN104267961B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1908877A (en) * | 2005-08-05 | 2007-02-07 | 腾讯科技(深圳)有限公司 | Method for automatically locking chat record visible page |
CN102436369A (en) * | 2010-09-29 | 2012-05-02 | 腾讯科技(深圳)有限公司 | Method and device for displaying data |
CN103853417A (en) * | 2012-11-30 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Rolling and pagination display method and device for network dynamic picture |
CN103218197A (en) * | 2013-04-26 | 2013-07-24 | 安科智慧城市技术(中国)有限公司 | Method, device and system of displaying data dynamically |
Also Published As
Publication number | Publication date |
---|---|
CN104267961A (en) | 2015-01-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104267961B (en) | The generation method and device of scroll bar | |
US8819582B2 (en) | Mobile browser context switching | |
CN104731256B (en) | The method and its hand-held device that man-machine interface is presented | |
CN107181976A (en) | A kind of barrage display methods and electronic equipment | |
CN105898520A (en) | Video frame interception method and device | |
CN103593107B (en) | interface display method and device | |
CN106775301A (en) | The screenshot method and terminal device of a kind of terminal | |
CN106610993A (en) | Display method and device for video preview | |
CN109582430B (en) | Method for displaying comment information in electronic book, computing device and storage medium | |
CN104765528A (en) | Display method and device of virtual keyboard | |
CN104462516A (en) | Information prompt method and mobile terminal | |
CN106325755A (en) | Page content display method and device | |
CN106681616A (en) | Browser function bar display method, browser function bar display device and processing equipment | |
CN104462452B (en) | The method and device that the page is shown | |
CN114302009A (en) | Video processing method, video processing device, electronic equipment and medium | |
CN109189301A (en) | Screen capture method and device | |
CN104182141B (en) | A kind of information processing method and electronic equipment | |
CN104123070B (en) | A kind of information processing method and electronic equipment | |
CN106610925A (en) | Method and device for displaying webpage table | |
CN111638839A (en) | Screen capturing method and device and electronic equipment | |
CN105068714A (en) | Display control method and electronic equipment | |
CN109840315B (en) | Detail information viewing method and device | |
CN103886037A (en) | Data screening method and device | |
CN103345362B (en) | Batch preserves the method and system of webpage | |
CN107704598A (en) | Waterfall-type webpage loading method, device, terminal and computer-readable recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |