CN105468221A - Window control method and device - Google Patents

Window control method and device Download PDF

Info

Publication number
CN105468221A
CN105468221A CN201410409416.9A CN201410409416A CN105468221A CN 105468221 A CN105468221 A CN 105468221A CN 201410409416 A CN201410409416 A CN 201410409416A CN 105468221 A CN105468221 A CN 105468221A
Authority
CN
China
Prior art keywords
target window
expansion button
window
described target
current location
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.)
Granted
Application number
CN201410409416.9A
Other languages
Chinese (zh)
Other versions
CN105468221B (en
Inventor
尚子峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410409416.9A priority Critical patent/CN105468221B/en
Publication of CN105468221A publication Critical patent/CN105468221A/en
Application granted granted Critical
Publication of CN105468221B publication Critical patent/CN105468221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a window control method and device. The method comprises the following step: when a target window is created, creating an expansion button used for hiding and displaying the target window; displaying the target window, and detecting whether the current position of a control element is in an area of the target window or the expansion button or not, and if the current position of the control element is in the area of the target window or the expansion button, displaying the expansion button, wherein the control element is at least used for controlling the expansion button; when the target window is displayed and a first click instruction that the control element clicks the expansion button is received, hiding the target window, and displaying the expansion button; and when the target window is hidden and a second clock instruction that the control element clicks the expansion button is received, displaying the target window. The embodiment of the invention can quickly display the window.

Description

A kind of window control method and apparatus
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of window control method and apparatus.
Background technology
Window is a kind of very common user interface in Internet technical field, and when each application program brings into operation, equipment all can create and display window for this application program.In addition, user can by the window operation of application program and this application program of management.Because existing equipment can support that multiple utility program is run simultaneously, and the screen size of equipment is fixing, and the window of some of them application program so just may be needed to hide, and shows the window of other current needs operations or management application program.But current hide window is all mainly realized by the button on window, such as: when receiving the click commands clicked for the button of hide window, this window is hidden.After window is hidden, the button on window is hidden equally, so just cannot show this window fast.
Summary of the invention
Embodiments provide a kind of window control method and apparatus, can display window fast.
First aspect, the invention provides a kind of window control method, comprising:
When target window is created, create the expansion button being used for hiding and show described target window;
Show described target window, and whether the current location of detection control part is positioned at the region of described target window or described expansion button, if so, then shows described expansion button, described control piece is at least for controlling described expansion button;
When described target window is shown, and receive described control piece when clicking the first click commands of described expansion button, hide described target window, and show described expansion button;
When described target window is hidden, and receive described control piece when clicking the second click commands of described expansion button, show described target window.
Second aspect, the invention provides a kind of window control device, comprising: creating unit, detecting unit, the first display unit, the first hidden unit and the second display unit, wherein:
Described creating unit, for when target window is created, creates the expansion button being used for hiding and show described target window;
Described detecting unit, for showing described target window, and whether the current location of detection control part is positioned at the region of described target window or described expansion button, and described control piece is at least for controlling described expansion button;
Described first display unit, during for detecting that the current location of described control piece is positioned at the region of described target window or described expansion button when described detecting unit, shows described expansion button;
Described first hidden unit, for when described target window is shown, and receives described control piece when clicking the first click commands of described expansion button, hides described target window, and show described expansion button;
Described second display unit, for when described target window is hidden, and receives described control piece when clicking the second click commands of described expansion button, shows described target window.
In technique scheme, after target window is hidden, for hide and show described target window expansion button be shown, such user just can click described expansion button quickly through described control piece, then shows described target window.Thus the embodiment of the present invention can realize quick display window.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of window control method that the embodiment of the present invention provides;
Fig. 2 and Fig. 3 is the optional effect schematic diagram that the embodiment of the present invention provides;
Fig. 4 is the schematic flow sheet of the another kind of window control method that the embodiment of the present invention provides;
Fig. 5 is the optional effect schematic diagram that the embodiment of the present invention provides;
Fig. 6 is the schematic flow sheet of the another kind of window control method that the embodiment of the present invention provides;
Fig. 7 is the structural representation of a kind of window control device that the embodiment of the present invention provides;
Fig. 8 is the structural representation of the another kind of window control device that the embodiment of the present invention provides;
Fig. 9 is the structural representation of the another kind of window control device that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In the embodiment of the present invention, window can be the window that subscriber equipment can run arbitrary application program, such as: browser application, game application, audio and video playing application program, email application etc.In addition, above-mentioned subscriber equipment can be any possess run application and the equipment of display window function, such as: the smart machines such as panel computer, mobile phone, electronic reader, telepilot, personal computer (PersonalComputer, PC), notebook computer, mobile unit, Web TV, wearable device.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of window control method that the embodiment of the present invention provides, and as shown in Figure 1, comprises the following steps:
S101, when target window is created, creates and be used for hiding and show the expansion button of described target window.
Step S101, when starting application program corresponding to target window, creates above-mentioned target window; Or when can be an a certain application program launching subprocess, create above-mentioned target window.Such as: when a webpage made a call to by browser, create above-mentioned target window, namely above-mentioned target window is a subwindow in browser main window, specifically can main window 201 as shown in Figure 2, above-mentioned target window 202 is comprised in this main window 201, and the position be connected with target window in main window 201 creates above-mentioned expansion button 203, the window 204 of some other webpages in certain main window 201, can also be comprised.Just can be implemented in main window by Fig. 2 like this and create target window and expansion button.
S102, show described target window, and whether the current location of detection control part is positioned at the region of described target window or described expansion button, if so, then shows described expansion button, described control piece is at least for controlling described expansion button.
Optionally, above-mentioned control piece can be the cursor of mouse, so just by reading the position of this cursor, then according to above-mentioned target window and the position expanding button, whether can be positioned at the region of described target window or described expansion button with the current location realizing detecting this cursor.In addition, above-mentioned control piece can be finger, such as: some touch-screen equipments, so step S102 just can read the unsettled position of finger (such as: read the unsettled position of finger by infrared technique or read the unsettled position etc. of finger by camera computation system) by wireless technology, again according to above-mentioned target window and the position expanding button, to realize detecting the region whether current unsettled position of finger is positioned at described target window or described expansion button.Certain above-mentioned control piece includes but not limited to cursor and the finger of mouse, such as: all right felt pen of above-mentioned control piece etc.
In addition, the position of above-mentioned target window and expansion button can obtain in advance, such as: when creating target window, just can calculate the position of this target window, when creating expansion button, just can calculate the position of this expansion button.Certainly, the position in the present embodiment can refer to target window, expansion button and the position of control piece in screen.
S103, when described target window is shown, and receive described control piece when clicking the first click commands of described expansion button, hide described target window, and show described expansion button.
After can realizing vanishing target window by step S103, display expansion button, such as: as shown in Figure 3, target window 202 is hidden, and it is shown to expand button 203.
S104, when described target window is hidden, and receive described control piece when clicking the second click commands of described expansion button, show described target window.
Just can be realized by step S104, when user needs display-object window, user directly can be clicked by control piece and be shown expansion button, thus realizes quick display-object window.
Optionally, above-mentioned expansion button can be that it does not rely on target window based on an independently window, after target window is hidden, expansion button also can independently show, or, after target window display, expansion button can be hidden, and namely expands the impact that button can not be subject to target window.
Optionally, said method can be applied to subscriber equipment, and namely subscriber equipment can be to implement the above described method.
In technique scheme, after target window is hidden, for hide and show described target window expansion button be shown, such user just can click described expansion button quickly through described control piece, then shows described target window.Thus the embodiment of the present invention can realize quick display window.
Refer to Fig. 4, Fig. 4 is the schematic flow sheet of the another kind of window control method that the embodiment of the present invention provides, and as shown in Figure 4, comprises the following steps:
S401, when target window is created, creates and be used for hiding and show the expansion button of described target window.
S402, show described target window, and whether the current location of detection control part is positioned at the region of described target window or described expansion button, if, then perform step S403, if not, then perform step S406, wherein, described control piece is at least for controlling described expansion button.
Optionally, S402 can by multiple exercise, wherein, from second time performs, step S402 often performs and once can judge whether target window is shown, and when target window is shown, just performs above-mentioned detecting step, namely can realize, only when target window is shown, just detecting.
Optionally, whether the current location of detection control part is positioned at the step in the region of described target window or described expansion button, can comprise:
The region of described target window or described expansion button whether is positioned at according to the current location of specified time interval periodically detection control part.
Such as: periodically detect according to the time interval of 50 milliseconds, namely one-time detection is performed every 50 milliseconds.In addition, when step S402 first time performs in this implementation, can be first show above-mentioned target window and above-mentioned expansion button, start timing simultaneously.Namely, while having created above-mentioned target window and expansion button, this target window and expansion button is shown.Certainly, when step S402 first time performs, can also be first show above-mentioned target window, and hide above-mentioned expansion button, start timing simultaneously.In addition, step S402 can be when starting to perform, and starts timing device, when this timing device timing carries out above-mentioned detection to during the time value of above-mentioned specified time interval.Can be specifically that expansion button is provided with timing device, when this timing device timing is to the time value of above-mentioned specified time interval, trigger above-mentioned detection action.
In this embodiment, owing to periodically detecting according to specified time interval, thus do not need to detect always, can equipment power dissipation be reduced like this.
Optionally, when above-mentioned target window is the subwindow in the main window of destination application, during such as, application scenarios shown in Fig. 2, the region whether current location of above-mentioned detection control part is positioned at described target window or described expansion button is passable, comprising:
After the main window of described destination application moves, calculate the current location of described main window, and according to the relative position of the described target window obtained in advance and described main window, calculate the current location of described target window, and according to the relative position of the described expansion button obtained in advance and described main window, calculate the current location of described expansion button;
According to the current location of described target window and the current location of described expansion button, whether the current location of detection control part is positioned at the region of described target window or described expansion button.
Can be specifically calculate the coordinate of above-mentioned main window on screen, the current location of main window is calculated by this coordinate, and the relative position of above-mentioned target window and described main window and the relative position expanding button and described main window, can calculate when creating target window and expansion button.
This embodiment can realize upgrade in time target window and the position expanding button, accurately to detect whether the current location of control piece is positioned at the region of described target window or described expansion button.
In like manner, when above-mentioned target window is the main window of certain application program, deserve after this main window is moved, the position of this main window that also can upgrade in time.In addition, when above-mentioned target window is the main window of certain application program, above-mentioned expansion button can be the edge being created in this main window, or the position that expansion button creates does not belong in main window, but is connected with main window, or creates above-mentioned expansion button in other position of screen.
It should be noted that, the region of above-mentioned target window can be the band of position of this target window residing for screen, and the region of above-mentioned expansion button can be this expansion button band of position residing for screen.
S403, show described expansion button.
Step S403 is when detecting that the current location of control piece is positioned at the region of target window or expansion button, display expansion button, and step S402 is when display-object window, just carry out detecting, namely step S403 can realize when target window is shown, and the current location of control piece be positioned at target window or expansion button region time, display expansion button.And the current location often when control piece in realizing is positioned at target window or when expanding the region of button, user may need to operate expansion button, thus this embodiment can realize user behavior in advance, so that user's control objectives window.
S404, when described target window is shown, and receive described control piece when clicking the first click commands of described expansion button, hide described target window, and show described expansion button.
Optionally, step S404 can comprise:
When described target window is shown, described expansion button is switched to state to be concealed;
When receiving described control piece and clicking first click commands of described expansion button of state to be concealed, hide described target window, and show described expansion button.
Can hiding according to the state control objectives window of expansion button in embodiment.In addition, the described expansion button of above-mentioned state to be concealed can be as shown in Figure 2 202, and namely triangle expansion button left, more vivid like this, so that user understands.
Optionally, step S404 can be when target window is hidden, and shows expansion button always, namely can realize when target window is hidden, and shows expansion button always.
S405, when described target window is hidden, and receive described control piece when clicking the second click commands of described expansion button, show described target window.
Optionally, step S405 can comprise:
When described target window is hidden, described expansion button is switched to state to be shown;
When receiving described control piece and clicking second click commands of described expansion button of state to be shown, show described target window.
Can according to the display of the state control objectives window of expansion button in embodiment.In addition, the described expansion button of above-mentioned state to be shown can be as shown in Figure 3 202, and namely triangle expansion button to the right, more vivid like this, so that user understands.
In addition, after performing step S405, namely after display-object window, can detecting step in repeated execution of steps S402, to realize when target window is shown, and the current location of control piece be positioned at target window or expansion button region time, can realize expanding button, when target window is shown, and the current location of control piece is not positioned at the region of target window, and when not also being positioned at the region of expansion button, can hiding button be realized.
S406, hiding described expansion button.
Just can be realized when detecting that the current location of described control piece is not positioned at the region of described target window by step S406, and when not also being positioned at the region of described expansion button, hide described expansion button.In addition, because step S402 detects when target window is shown, namely step S406 can realize being shown when target window, and the current location of control piece is not positioned at the region of described target window, and when not also being positioned at the region of described expansion button, hide described expansion button.Specifically can be presented at target window 502 and other web page windows 504 in the main window 501 shown in reference diagram 5, Fig. 5, and not show expansion button.Because be not positioned at the region of target window in the current location realizing working as control piece, and when not being positioned at the region of described expansion button, user just may not need control objectives window yet.And the main window at screen or target window place can have more display position after hiding expansion button, thus more information or window can be shown, and expansion button be hidden rear Consumer's Experience can be better.
In the present embodiment, the current location that the basis of first embodiment can realize further work as control piece is not positioned at the region of target window, and when not being positioned at the region of described expansion button, hides expansion button yet.And the main window at screen or target window place can have more display position after hiding expansion button, thus more information or window can be shown, and expansion button be hidden rear Consumer's Experience can be better.Meanwhile, in this embodiment, also describe the embodiment of plurality of optional, when these optional embodiments also can be applied in the embodiment shown in Fig. 1.
Refer to Fig. 6, Fig. 6 is the schematic flow sheet of the another kind of window control method that the embodiment of the present invention provides, and as shown in Figure 6, comprises the following steps:
S601, establishment target window.
S602, establishment expansion button.
S603, timer is set.
S604, shot timers.
Step S604 triggers automatically, or the instruction triggers of reception input, or trigger when showing above-mentioned target window etc.In addition, the every timing of step S604 once just resets timer, and such as, when the time of set timer is 100 milliseconds, such timer, when timing is to 100 milliseconds, just performs step S605, and resets.
S605, judge whether target window is hidden, if so, then perform step S606, if not, then perform step S608.
S606, expansion is switched to state to be shown.
S607, display expansion button.
When timer timing is to the time threshold preset, execution of step S607 with regard to shot timers, when timer does not also have timing to the time threshold preset, waiting timer, until when timer timing is to the time threshold preset, then shot timers.
S608, expansion button is switched to state to be concealed.
S609, judge mouse cursor whether in the region of target window or expansion button, if so, then perform step S610, if not, then perform step S611.
S610, display expansion button.
S611, hiding expansion button.
When timer timing is to the time threshold preset, execution of step S610 or S611 with regard to shot timers, when timer does not also have timing to the time threshold preset, waiting timer, until when timer timing is to the time threshold preset, then shot timers.
The present embodiment, can realize quick display window.
Be apparatus of the present invention embodiment below, the method that apparatus of the present invention embodiment realizes for performing the inventive method embodiment one to two, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the embodiment of the present invention one and embodiment two.
Refer to Fig. 7, Fig. 7 is the structural representation of a kind of window control device that the embodiment of the present invention provides, and as shown in Figure 7, comprising: creating unit 71, detecting unit 72, first display unit 73, first hidden unit 74 and the second display unit 75, wherein:
Creating unit 71, for when target window is created, creates the expansion button being used for hiding and show described target window.
Creating unit 71 can be, when starting application program corresponding to target window, create above-mentioned target window; Or when can be an a certain application program launching subprocess, create above-mentioned target window.
Detecting unit 72, for showing described target window, and whether the current location of detection control part is positioned at the region of described target window or described expansion button, and described control piece is at least for controlling described expansion button.
Optionally, above-mentioned control piece can be the cursor of mouse, so just by reading the position of this cursor, then according to above-mentioned target window and the position expanding button, whether can be positioned at the region of described target window or described expansion button with the current location realizing detecting this cursor.In addition, above-mentioned control piece can be finger, such as: some touch-screen equipments, so detecting unit 72 just can read the unsettled position of finger (such as: read the unsettled position of finger by infrared technique or read the unsettled position etc. of finger by camera computation system) by wireless technology, again according to above-mentioned target window and the position expanding button, to realize detecting the region whether current unsettled position of finger is positioned at described target window or described expansion button.Certain above-mentioned control piece includes but not limited to cursor and the finger of mouse, such as: all right felt pen of above-mentioned control piece etc.
First display unit 73, during for detecting that the current location of described control piece is positioned at the region of described target window or described expansion button when described detecting unit, shows described expansion button.
First hidden unit 74, for when described target window is shown, and receives described control piece when clicking the first click commands of described expansion button, hides described target window, and show described expansion button.
Second display unit 75, for when described target window is hidden, and receives described control piece when clicking the second click commands of described expansion button, shows described target window.
Optionally, said apparatus can be applied to subscriber equipment, and namely subscriber equipment can comprise said apparatus.
In technique scheme, after target window is hidden, for hide and show described target window expansion button be shown, such user just can click described expansion button quickly through described control piece, then shows described target window.Thus the embodiment of the present invention can realize quick display window.
Refer to Fig. 8, Fig. 8 is the structural representation of the another kind of window control device that the embodiment of the present invention provides, as shown in Figure 8, comprising: creating unit 81, detecting unit 82, first display unit 83, first hidden unit 84, second display unit 85 and the second hidden unit 86, wherein:
Creating unit 81, for when target window is created, creates the expansion button being used for hiding and show described target window.
Detecting unit 82, for showing described target window, and whether the current location of detection control part is positioned at the region of described target window or described expansion button, and described control piece is at least for controlling described expansion button.
First display unit 83, during for detecting that the current location of described control piece is positioned at the region of described target window or described expansion button when described detecting unit, shows described expansion button.
First hidden unit 84, for when described target window is shown, and receives described control piece when clicking the first click commands of described expansion button, hides described target window, and show described expansion button.
Second display unit 85, for when described target window is hidden, and receives described control piece when clicking the second click commands of described expansion button, shows described target window.
Second hidden unit 86, for detecting that the current location of described control piece is not positioned at the region of described target window when described detecting unit 82, and when not also being positioned at the region of described expansion button, hides described expansion button.
The current location that can realize working as control piece so is not positioned at the region of target window, and when not being positioned at the region of described expansion button, hides expansion button yet.And the main window at screen or target window place can have more display position after hiding expansion button, thus more information or window can be shown, and expansion button be hidden rear Consumer's Experience can be better.
Optionally, the first hidden unit 84 may be used for, when described target window is shown, described expansion button being switched to state to be concealed; And when receiving described control piece and clicking first click commands of described expansion button of state to be concealed, hide described target window, and show described expansion button.
Can hiding according to the state control objectives window of expansion button in embodiment.
Optionally, the second display unit 85 may be used for, when described target window is hidden, described expansion button being switched to state to be shown; And when receiving described control piece and clicking second click commands of described expansion button of state to be shown, show described target window.
Can according to the display of the state control objectives window of expansion button in embodiment.
Optionally, detecting unit 82 may be used for showing described target window, and whether is positioned at the region of described target window or described expansion button according to the current location of specified time interval periodically detection control part.
In this embodiment, owing to periodically detecting according to specified time interval, thus do not need to detect always, can equipment power dissipation be reduced like this.
Optionally, when described target window is the subwindow in the main window of destination application, as shown in Figure 9, detecting unit 82 can comprise:
Computing unit 821, for after the main window of described destination application moves, calculate the current location of described main window, and according to the relative position of the described target window obtained in advance and described main window, calculate the current location of described target window, and according to the relative position of the described expansion button obtained in advance and described main window, calculate the current location of described expansion button;
Detection sub-unit 822, for showing described target window, and according to the current location of described target window and the current location of described expansion button, whether the current location of detection control part is positioned at the region of described target window or described expansion button.
In this embodiment, owing to periodically detecting according to specified time interval, thus do not need to detect always, can equipment power dissipation be reduced like this.
In the present embodiment, the current location that the basis of first device embodiment can realize further work as control piece is not positioned at the region of target window, and when not being positioned at the region of described expansion button, hides expansion button yet.And the main window at screen or target window place can have more display position after hiding expansion button, thus more information or window can be shown, and expansion button be hidden rear Consumer's Experience can be better.Meanwhile, in this embodiment, also describe the embodiment of plurality of optional, when these optional embodiments also can be applied in the embodiment shown in Fig. 7.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random access memory (RandomAccessMemory is called for short RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (12)

1. a window control method, is characterized in that, comprising:
When target window is created, create the expansion button being used for hiding and show described target window;
Show described target window, and whether the current location of detection control part is positioned at the region of described target window or described expansion button, if so, then shows described expansion button, described control piece is at least for controlling described expansion button;
When described target window is shown, and receive described control piece when clicking the first click commands of described expansion button, hide described target window, and show described expansion button;
When described target window is hidden, and receive described control piece when clicking the second click commands of described expansion button, show described target window.
2. the method for claim 1, is characterized in that, described when described target window is shown, and receives described control piece when clicking the first click commands of described expansion button, hides described target window, and shows described expansion button, comprising:
When described target window is shown, described expansion button is switched to state to be concealed;
When receiving described control piece and clicking first click commands of described expansion button of state to be concealed, hide described target window, and show described expansion button.
3. method as claimed in claim 2, is characterized in that, described when described target window is hidden, and receives described control piece when clicking the second click commands of described expansion button, shows described target window, comprising:
When described target window is hidden, described expansion button is switched to state to be shown;
When receiving described control piece and clicking second click commands of described expansion button of state to be shown, show described target window.
4. the method according to any one of claim 1-3, is characterized in that, described method also comprises:
When detecting that the current location of described control piece is not positioned at the region of described target window, and when not also being positioned at the region of described expansion button, hide described expansion button.
5. the method according to any one of claim 1-3, is characterized in that, whether the current location of described detection control part is positioned at the region of described target window or described expansion button, comprising:
The region of described target window or described expansion button whether is positioned at according to the current location of specified time interval periodically detection control part.
6. the method according to any one of claim 1-3, is characterized in that, described target window is the subwindow in the main window of destination application;
Whether the current location of described detection control part is positioned at the region of described target window or described expansion button, comprising:
After the main window of described destination application moves, calculate the current location of described main window, and according to the relative position of the described target window obtained in advance and described main window, calculate the current location of described target window, and according to the relative position of the described expansion button obtained in advance and described main window, calculate the current location of described expansion button;
According to the current location of described target window and the current location of described expansion button, whether the current location of detection control part is positioned at the region of described target window or described expansion button.
7. a window control device, is characterized in that, comprising: creating unit, detecting unit, the first display unit, the first hidden unit and the second display unit, wherein:
Described creating unit, for when target window is created, creates the expansion button being used for hiding and show described target window;
Described detecting unit, for showing described target window, and whether the current location of detection control part is positioned at the region of described target window or described expansion button, and described control piece is at least for controlling described expansion button;
Described first display unit, during for detecting that the current location of described control piece is positioned at the region of described target window or described expansion button when described detecting unit, shows described expansion button;
Described first hidden unit, for when described target window is shown, and receives described control piece when clicking the first click commands of described expansion button, hides described target window, and show described expansion button;
Described second display unit, for when described target window is hidden, and receives described control piece when clicking the second click commands of described expansion button, shows described target window.
8. device as claimed in claim 7, is characterized in that, described first hidden unit is used for when described target window is shown, and described expansion button is switched to state to be concealed; And when receiving described control piece and clicking first click commands of described expansion button of state to be concealed, hide described target window, and show described expansion button.
9. device as claimed in claim 8, is characterized in that, described second display unit is used for when described target window is hidden, and described expansion button is switched to state to be shown; And when receiving described control piece and clicking second click commands of described expansion button of state to be shown, show described target window.
10. device as claimed in any one of claims 7-9, it is characterized in that, described device also comprises:
Second hidden unit, for detecting that the current location of described control piece is not positioned at the region of described target window when described detecting unit, and when not also being positioned at the region of described expansion button, hides described expansion button.
11. devices as claimed in any one of claims 7-9, it is characterized in that, whether described detecting unit for showing described target window, and is positioned at the region of described target window or described expansion button according to the current location of specified time interval periodically detection control part.
12. devices as claimed in any one of claims 7-9, it is characterized in that, described target window is the subwindow in the main window of destination application;
Described detecting unit comprises:
Computing unit, for after the main window of described destination application moves, calculate the current location of described main window, and according to the relative position of the described target window obtained in advance and described main window, calculate the current location of described target window, and according to the relative position of the described expansion button obtained in advance and described main window, calculate the current location of described expansion button;
Detection sub-unit, for showing described target window, and according to the current location of described target window and the current location of described expansion button, whether the current location of detection control part is positioned at the region of described target window or described expansion button.
CN201410409416.9A 2014-08-18 2014-08-18 Window control method and device Active CN105468221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410409416.9A CN105468221B (en) 2014-08-18 2014-08-18 Window control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410409416.9A CN105468221B (en) 2014-08-18 2014-08-18 Window control method and device

Publications (2)

Publication Number Publication Date
CN105468221A true CN105468221A (en) 2016-04-06
CN105468221B CN105468221B (en) 2020-12-08

Family

ID=55605991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410409416.9A Active CN105468221B (en) 2014-08-18 2014-08-18 Window control method and device

Country Status (1)

Country Link
CN (1) CN105468221B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508609A (en) * 2011-11-17 2012-06-20 潘天华 Method for controlling displaying and hiding of computer application program window
WO2012079779A1 (en) * 2010-12-16 2012-06-21 Liviu-Emanuel Lazarescu User interface
CN102799380A (en) * 2012-07-13 2012-11-28 杭州边锋网络技术有限公司 Desktop shortcut control system and method
CN103389850A (en) * 2012-05-08 2013-11-13 腾讯科技(深圳)有限公司 Method and device for realizing shortcut operation on browser

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012079779A1 (en) * 2010-12-16 2012-06-21 Liviu-Emanuel Lazarescu User interface
CN102508609A (en) * 2011-11-17 2012-06-20 潘天华 Method for controlling displaying and hiding of computer application program window
CN103389850A (en) * 2012-05-08 2013-11-13 腾讯科技(深圳)有限公司 Method and device for realizing shortcut operation on browser
CN102799380A (en) * 2012-07-13 2012-11-28 杭州边锋网络技术有限公司 Desktop shortcut control system and method

Also Published As

Publication number Publication date
CN105468221B (en) 2020-12-08

Similar Documents

Publication Publication Date Title
EP3028123B1 (en) Electronic device and method of recognizing input in electronic device
US9851898B2 (en) Method for changing display range and electronic device thereof
CN104166458A (en) Method and device for controlling multimedia player
EP3190502A1 (en) Terminal triggering method and relevant device
US9372613B2 (en) Scrolling method and electronic device thereof
US20190034061A1 (en) Object Processing Method And Terminal
CN104423789A (en) Information processing method and electronic equipment
CN105739773A (en) Screen capture method and terminal
CN104536643A (en) Icon dragging method and terminal
EP2728456B1 (en) Method and apparatus for controlling virtual screen
CN103631482A (en) Display method and terminal of icons
CN104090701A (en) Information processing method and electronic equipment
CN103616994A (en) Method and device for controlling electronic device
JP6625312B2 (en) Touch information recognition method and electronic device
CN104123069A (en) Page sliding control method and device and terminal device
CN104407774A (en) Screen switching equipment and method as well as mobile terminal
US10779148B2 (en) Data transmission method and first electronic device
CN105589621A (en) Icon processing method and terminal
US10095401B2 (en) Method for editing display information and electronic device thereof
CN104407698A (en) Projecting method and electronic equipment
CN104754222A (en) Terminal camera shooting method and terminal
EP2592536B1 (en) Method and device for enabling keystroke acceleration
US20140129957A1 (en) Personalized user interface on mobile information device
CN104182533A (en) Browser label switching method and device and terminal
CN105468094A (en) Method for operating computer terminal and computer terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant