Invention content
To solve the above problems, the embodiment of the invention discloses a kind of electrical form frozen region method of adjustment and devices.
Technical solution is as follows:
A kind of electrical form frozen region method of adjustment is applied to the terminal with touch screen, including:
Detect the touch action whether having on the touch screen for the frozen region currently shown, the frozen region
For:Frozen row and the row upper area or frozen row and the row left area;
If detecting the touch action for the frozen region, and body is touched in the feelings for not leaving the touch screen
Slide is further performed under condition, then further determines that the glide direction for touching body;
According to the glide direction for touching body, the indication range of the frozen region is adjusted.
In a kind of specific implementation mode of the present invention, the frozen region is:Frozen row and the row upper area, institute
It states according to the glide direction for touching body, adjusts the indication range of the frozen region, including:
If the glide direction for touching body matches with preset first direction, hides and freeze above frozen row
Region, the preset first direction are:With the touch screen horizontal direction is perpendicular, direction from the bottom to top;
If the glide direction for touching body and the negative direction of preset first direction match, unhides and be frozen
Knot row top frozen region.
In a kind of specific implementation mode of the present invention, the frozen region is:Frozen row and the row left area, institute
It states according to the glide direction for touching body, adjusts the indication range of the frozen region, including:
If the glide direction for touching body matches with preset second direction, hides frozen row left and freeze
Region, the preset second direction are:Direction parallel with the touch screen horizontal direction, from right to left;
If the negative direction of the glide direction and preset second direction for touching body matches, unhides and be frozen
Knot row left frozen region.
In a kind of specific implementation mode of the present invention, in the touch action detected for the frozen region
Later, further include:
Highlight the frozen region;
Alternatively, showing the adjustable direction in the frozen region.
In a kind of specific implementation mode of the present invention, further include:
Described according to the glide direction for touching body, during the indication range for adjusting the frozen region, display
Hiding or the frozen region that unhides prompt message.
A kind of electrical form frozen region adjusting apparatus is applied to the terminal with touch screen, including:
Whether touch action detection module has touching for the frozen region currently shown for detecting on the touch screen
Action is touched, the frozen region is:Frozen row and the row upper area or frozen row and the row left area;
Glide direction determining module, for being detected for the frozen region in the touch action detection module
Touch action, and touch in the case that body further performs slide in the case where not leaving the touch screen, into one
Step determines the glide direction for touching body;
Indication range adjusts module, the sliding side of the touch body for being determined according to the glide direction determining module
To adjusting the indication range of the frozen region.
In a kind of specific implementation mode of the present invention, the frozen region is:Frozen row and the row upper area, institute
Indication range adjustment module is stated to be specifically used for:
In the case where the glide direction for touching body matches with preset first direction, hide above frozen row
Frozen region, the preset first direction are:With the touch screen horizontal direction is perpendicular, direction from the bottom to top;
In the case where the glide direction for touching body and the negative direction of preset first direction match, unhide
Frozen region above frozen row.
In a kind of specific implementation mode of the present invention, the frozen region is:Frozen row and the row left area, institute
Indication range adjustment module is stated to be specifically used for:
In the case where the glide direction for touching body matches with preset second direction, frozen row left is hidden
Frozen region, the preset second direction are:Direction parallel with the touch screen horizontal direction, from right to left;
In the case where the negative direction of the glide direction for touching body and preset second direction matches, unhide
Frozen row left frozen region.
In a kind of specific implementation mode of the present invention, further include:
First display module, for detecting the touch for the frozen region in the touch action detection module
After action, the frozen region is highlighted;
Alternatively, showing the adjustable direction in the frozen region.
In a kind of specific implementation mode of the present invention, further include:
Second display module, for, according to the glide direction for touching body, being adjusted in indication range adjustment module
During the indication range of the frozen region, display is hidden or the prompt message for the frozen region that unhides.
The technical solution that the embodiment of the present invention is provided, if detecting that there is touch action in the frozen region on touch screen,
And touch body and further perform slide in the case where not leaving touch screen, then according to the identified sliding for touching body
Direction adjusts the indication range of frozen region.In electrical form, frozen region and zone of action in contrast, frozen region
Indication range reduce, the indication range of zone of action accordingly increases.The technical solution provided using the embodiment of the present invention into
The adjustment of row frozen region indication range, remains the effect for freezing pane, user is facilitated to read.
Specific implementation mode
It is provided for the embodiments of the invention a kind of electrical form frozen region method of adjustment first to illustrate, this method
It may comprise steps of:
Detect the touch action whether having on the touch screen for the frozen region currently shown, the frozen region
For:Frozen row and the row upper area or frozen row and the row left area;
If detecting the touch action for the frozen region, and body is touched in the feelings for not leaving the touch screen
Slide is further performed under condition, then further determines that the glide direction for touching body;
According to the glide direction for touching body, the indication range of the frozen region is adjusted.
The technical solution that the embodiment of the present invention is provided is applied to the terminal with touch screen, and the object of processing is to do jelly
Tie the electrical form of pane processing.In electrical form, it is one of its common function to freeze pane function.Frozen row and the row
Upper area or frozen row and the row left area are frozen region, if detecting that there is touch in the frozen region on touch screen
Action, and touch body and further perform slide in the case where not leaving touch screen, then according to identified touch body
Glide direction, adjust the indication range of frozen region.It is understood that in electrical form, frozen region and behaviour area
In contrast, the indication range of frozen region reduces, and the indication range of zone of action accordingly increases in domain.
The adjustment that frozen region indication range is carried out using the technical solution that the embodiment of the present invention is provided, remains and freezes
The effect of pane, facilitates user to read.
In order to make those skilled in the art more fully understand the technical solution in the embodiment of the present invention, below in conjunction with this hair
Attached drawing in bright embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described
Embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field
The every other embodiment that those of ordinary skill is obtained without making creative work, belongs to protection of the present invention
Range.
It is shown in Figure 1, it is a kind of implementing procedure figure of electrical form frozen region method of adjustment in the embodiment of the present invention,
This method may comprise steps of:
S110 detects the touch action whether having on the touch screen for the frozen region currently shown;
The frozen region is:Frozen row and the row upper area or frozen row and the row left area.
It can be divided into it is understood that doing and freezing the electrical form region shown in terminal of pane processing
Frozen region and zone of action, frozen region and zone of action are in contrast.When freezing the nominated bank of electrical form, if on
The lower scroll bar for pulling the electrical form, frozen row and the row upper area are remained stationary as frozen region, in contrast,
As zone of action, the table content in the zone of action can scroll up frozen row lower zone, show
Different content;When freezing the specified row of electrical form, if left and right pulls the scroll bar of the electrical form, it is frozen row and is somebody's turn to do
Row left area is remained stationary as frozen region, in contrast, is frozen row right region as zone of action, the behaviour area
Table content in domain can roll to the left or to the right, show different content.
Shown in Fig. 2 a and Fig. 2 b, for the schematic diagram for doing the electrical form for freezing pane processing shown in terminal, for mark
Note is convenient, is directed to frozen row respectively and frozen row provide two schematic diagrames of the electrical form.In fig. 2 a, the electronic watch
The upper area 210 and lower zone 220 of lattice are frozen region and zone of action in contrast.Equally, in figure 2b, the electricity
The left area 230 of sub-table and right region 240 are frozen region and zone of action in contrast, wherein in Fig. 2 a
Square region 210 includes frozen 211 top frozen region of row 211 and frozen row, comprising being frozen in left area 230 in Fig. 2 b
Tie row 231 and 231 left frozen region of frozen row.The frozen region currently shown is upper area 210 and left area
230。
Whether the touch action that touches body acupuncture to the frozen region that currently shows is had on detection terminal touch screen, and touching body can
To be user's finger or felt pen.In practical applications, by taking electrical form shown in Fig. 2 a and Fig. 2 b as an example, if touching body
Any point in upper area 210 or left area 230 is touched, can think to have in the frozen region currently shown tactile
Action is touched, and then executes the operation of next step.
S120 if detecting the touch action for the frozen region, and touches body and is not leaving the touch
Slide is further performed in the case of screen, then further determines that the glide direction for touching body;
The frozen region that currently shows is directed in step S110 to be detected, it, need to be into if having detected touch action
One step, which determines, touches whether body further performs slide in the case where not leaving touch screen, if it is, again into one
Step determines the glide direction of the touch body, otherwise may be considered user and has accidentally touched frozen region, is not processed.
In practical applications, two reference directions can be preset, judge to touch body glide direction on the touchscreen and which
One preset reference direction matches.
Preset first direction is:With touch screen horizontal direction is perpendicular, direction from the bottom to top;
Preset second direction is:Direction parallel with touch screen horizontal direction, from right to left.
It should be noted that being here from user perspective for the description of preset first direction, preset second direction
For.
If the angle for touching glide direction and the preset first direction of body is less than 45 degree, then it is assumed that the glide direction and
Preset first direction matches, the touch body upward sliding;
If the angle for touching the glide direction of body and the negative direction of preset first direction is less than 45 degree, then it is assumed that the cunning
Dynamic direction and the negative direction of preset first direction match, the touch body slide downward;
If the angle for touching glide direction and the preset second direction of body is less than 45 degree, then it is assumed that the glide direction and
Preset second direction matches, which slides to the left;
If the angle for touching the glide direction of body and the negative direction of preset second direction is less than 45 degree, then it is assumed that the cunning
Dynamic direction and the negative direction of preset second direction match, which slides to the right.
Exemplified above is a kind of matching principle, and those skilled in the art can also set other matching principles.In reality
In the application of border, the glide direction of body and above-mentioned preset first direction, the negative direction of preset first direction, preset the are touched
The angle of the negative direction of two directions or preset second direction is just that 45 degree of possibility is smaller, if it does, can basis
Preset matching principle is matched.
S130 adjusts the indication range of the frozen region according to the glide direction for touching body.
After determining the glide direction for touching body in step S120, it can adjust and freeze according to the glide direction of the touch body
The indication range of tie region.
In a kind of specific implementation mode of the present invention, it can be adjusted in accordance with the following methods:
If the glide direction for touching body matches with preset first direction, hides and freeze above frozen row
Region;
If the glide direction for touching body and the negative direction of preset first direction match, unhides and be frozen
Knot row top frozen region;
If the glide direction for touching body matches with preset second direction, hides frozen row left and freeze
Region;
If the negative direction of the glide direction and preset second direction for touching body matches, unhides and be frozen
Knot row left frozen region.
It is understood that the adjustment amplitude of frozen region indication range, that is, the frozen region for hiding or unhiding
Specific line number or columns can be determined according to the sliding distance for touching body, and when sliding distance is larger, frozen region shows model
The adjustment amplitude enclosed is larger, and when sliding distance is smaller, the adjustment amplitude of frozen region indication range is smaller.If it is covert
Reason, maximum adjusting range are:By frozen region Hide All above frozen row, retains and be frozen row in the aobvious of screen the top
Show, alternatively, by frozen row left area Hide All, retains the frozen display for being listed in screen leftmost.If it is cancellation
Processing is hidden, maximum adjusting range is:Hiding frozen region is all shown.
Still by taking electrical form shown in Fig. 2 a and Fig. 2 b as an example, when detecting that the electrical form upper area 210 has touch
Action, and touch body and further perform slide, glide direction and preset first in the case where not leaving touch screen
Direction matches, then hides frozen 211 top frozen region of row;When detecting that the electrical form left area 230 has touch
Action, and touch body and further perform slide, glide direction and preset second in the case where not leaving touch screen
Direction matches, then hides frozen 231 left frozen region of row.Electrical form after being adjusted according to maximum adjustment amplitude
Schematic diagram is shown in Figure 3, Hide All 211 top frozen region of frozen row and frozen row 231 left frozen region,
It only shows and is frozen row 211, frozen row 231 and zone of action corresponding with the two.Correspondingly, electronics shown in Fig. 3
In table, if in 211 place frozen region slide downward of frozen row, 211 top of frozen row that can unhide is frozen
Tie region;If slided to the right in 231 place frozen region of frozen row, can unhide 231 right of frozen row jelly
Tie region after being adjusted according to maximum adjustment amplitude, may finally be shown as electrical form shown in Fig. 2 a and Fig. 2 b.
The technical solution that the embodiment of the present invention is provided, if detecting that there is touch action in the frozen region on touch screen,
And touch body and further perform slide in the case where not leaving touch screen, then according to the identified sliding for touching body
Direction adjusts the indication range of frozen region.In electrical form, frozen region and zone of action in contrast, frozen region
Indication range reduce, the indication range of zone of action accordingly increases.The technical solution provided using the embodiment of the present invention into
The adjustment of row frozen region indication range, remains the effect for freezing pane, user is facilitated to read.
In another embodiment of the present invention, step S110 detects whether the touch action for frozen region, inspection
After measuring, it can also include the following steps:
Highlight the frozen region.
The mode for highlighting frozen region is more, can such as be shown to frozen region overstriking wire, or can use
Concave or convex pattern shown, or can be by dimmed display in frozen region etc..User can be prompted current in this way
The regional extent that touch action will act on.
Alternatively, after detecting for the touch action of frozen region, can also include the following steps:
Show the adjustable direction in the frozen region.
The display adjustable direction in frozen region more can intuitively prompt user, can be with to the region currently touched
Which kind of operation done.If the upper area 210 in user's electrical form shown in Fig. 2 a and Fig. 2 b has touch action, can show
Upward direction arrow indicates that user can hide frozen 211 top frozen region of row using body upward sliding is touched.When
So, if current touch action is happened at the intersection region of upper area 210 and left area 230 in electrical form,
It can show upward direction arrow and left direction arrow, it is frozen to indicate that user can hide using body upward sliding is touched
211 top frozen region of row, or slided to the left to hide frozen 231 left frozen region of row.
It is understood that above-mentioned two step can also be carried out at the same time, i.e., while highlighting frozen region, show
Show the adjustable direction in the frozen region.
In another embodiment of the present invention, can also include:
Described according to the glide direction for touching body, during the indication range for adjusting the frozen region, display
Hiding or the frozen region that unhides prompt message.
For convenience of understanding, by taking electrical form shown in Fig. 2 a as an example, when touching body upward sliding in region 210 above,
During hiding frozen 211 top frozen region of row, such prompt message can be shown:Hide upper area.Namely
It says, the prompt message of display and the adjustment done are consistent, and user is facilitated intuitively to check.
Corresponding to above method embodiment, the embodiment of the present invention additionally provides a kind of electrical form frozen region adjustment dress
It sets, as shown in figure 4, the device may include with lower module:
Touch action detection module 310, for detecting the frozen region whether having on the touch screen for currently showing
Touch action, the frozen region is:Frozen row and the row upper area or frozen row and the row left area;
Glide direction determining module 320 is freezed for having been detected in the touch action detection module 310 for described
The touch action in region, and touch the case where body further performs slide in the case where not leaving the touch screen
Under, further determine that the glide direction for touching body;
Indication range adjusts module 330, the touch body for being determined according to the glide direction determining module 320
Glide direction adjusts the indication range of the frozen region.
The device that the embodiment of the present invention is provided if detecting that there is touch action in the frozen region on touch screen, and touches
It touches body and further performs slide in the case where not leaving touch screen, then according to the identified sliding side for touching body
To adjusting the indication range of frozen region.In electrical form, frozen region and zone of action in contrast, frozen region
Indication range reduces, and the indication range of zone of action accordingly increases.It is carried out using the technical solution that the embodiment of the present invention is provided
The adjustment of frozen region indication range remains the effect for freezing pane, user is facilitated to read.
In a kind of specific implementation mode of the present invention, the frozen region is:Frozen row and the row upper area, institute
Indication range adjustment module 330 is stated to be specifically used for:
In the case where the glide direction for touching body matches with preset first direction, hide above frozen row
Frozen region, the preset first direction are:With the touch screen horizontal direction is perpendicular, direction from the bottom to top;
In the case where the glide direction for touching body and the negative direction of preset first direction match, unhide
Frozen region above frozen row.
In another specific implementation mode of the present invention, the frozen region is:Frozen row and the row left area,
The indication range adjustment module 330 is specifically used for:
In the case where the glide direction for touching body matches with preset second direction, frozen row left is hidden
Frozen region, the preset second direction are:Direction parallel with the touch screen horizontal direction, from right to left;
In the case where the negative direction of the glide direction for touching body and preset second direction matches, unhide
Frozen row left frozen region.
In another embodiment of the present invention, can also include:
First display module, for being detected for the frozen region in the touch action detection module 310
After touch action, the frozen region is highlighted;
Alternatively, showing the adjustable direction in the frozen region.
In another embodiment of the present invention, can also include:
Second display module, for, according to the glide direction for touching body, being adjusted in indication range adjustment module 330
During the indication range of the whole frozen region, display is hidden or the prompt message for the frozen region that unhides.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, identical similar portion between each embodiment
Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality
For applying example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the method
Part explanation.
One of ordinary skill in the art will appreciate that all or part of step in realization above method embodiment is can
It is completed with instructing relevant hardware by program, the program can be stored in computer read/write memory medium,
The storage medium designated herein obtained, such as:ROM/RAM, magnetic disc, CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.