CN105468221B - Window control method and device - Google Patents

Window control method and device Download PDF

Info

Publication number
CN105468221B
CN105468221B CN201410409416.9A CN201410409416A CN105468221B CN 105468221 B CN105468221 B CN 105468221B CN 201410409416 A CN201410409416 A CN 201410409416A CN 105468221 B CN105468221 B CN 105468221B
Authority
CN
China
Prior art keywords
target window
window
expansion button
button
current position
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
Application number
CN201410409416.9A
Other languages
Chinese (zh)
Other versions
CN105468221A (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

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a window control method and a device, wherein the method can comprise the following steps: when a target window is created, creating an expansion button for hiding and displaying the target window; displaying the target window, detecting whether the current position of a control piece is located in the target window or the area of the expansion button, if so, displaying the expansion button, wherein the control piece is at least used for controlling the expansion button; when the target window is displayed and a first click instruction of clicking the expansion button by the control piece is received, hiding the target window and displaying the expansion button; when the target window is hidden and a second click instruction of the control member for clicking the expansion button is received, displaying the target window. The embodiment of the invention can quickly display the window.

Description

Window control method and device
Technical Field
The invention relates to the technical field of internet, in particular to a window control method and device.
Background
A window is a very common user interface in the field of internet technology, and when each application starts running, a device creates and displays a window for the application. In addition, the user can operate and manage the application through its window. Because the existing device can support multiple applications to run simultaneously, and the screen size of the device is fixed, it may be necessary to hide some of the application windows and display other windows that currently need to operate or manage the application. However, at present, hiding windows is mainly realized by buttons on the windows, such as: and when a click instruction for clicking a button for hiding the window is received, hiding the window. When the window is hidden, the buttons on the window are also hidden, so that the window cannot be displayed quickly.
Disclosure of Invention
The embodiment of the invention provides a window control method and device, which can quickly display a window.
In a first aspect, the present invention provides a window control method, including:
when a target window is created, creating an expansion button for hiding and displaying the target window;
displaying the target window, detecting whether the current position of a control piece is located in the target window or the area of the expansion button, if so, displaying the expansion button, wherein the control piece is at least used for controlling the expansion button;
when the target window is displayed and a first click instruction of clicking the expansion button by the control piece is received, hiding the target window and displaying the expansion button;
when the target window is hidden and a second click instruction of the control member for clicking the expansion button is received, displaying the target window.
In a second aspect, the present invention provides a window control apparatus, comprising: the device comprises a creating unit, a detecting unit, a first display unit, a first hiding unit and a second display unit, wherein:
the creation unit is used for creating an expansion button for hiding and displaying a target window when the target window is created;
the detection unit is used for displaying the target window and detecting whether the current position of a control piece is located in the target window or the area of the expansion button, and the control piece is at least used for controlling the expansion button;
the first display unit is used for displaying the expansion button when the detection unit detects that the current position of the control piece is located in the target window or the area of the expansion button;
the first hiding unit is used for hiding the target window and displaying the expansion button when the target window is displayed and a first click instruction of clicking the expansion button by the control piece is received;
the second display unit is used for displaying the target window when the target window is hidden and a second click instruction of the control element for clicking the expansion button is received.
In the technical scheme, after the target window is hidden, the expansion button for hiding and displaying the target window is displayed, so that a user can quickly click the expansion button through the control piece and then display the target window. Therefore, the embodiment of the invention can realize the rapid window display.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a window control method according to an embodiment of the present invention;
FIGS. 2 and 3 are schematic diagrams of alternative effects provided by embodiments of the present invention;
FIG. 4 is a flowchart illustrating another window control method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an alternative effect provided by an embodiment of the invention;
FIG. 6 is a flowchart illustrating another window control method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a window control apparatus according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of another window control apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another window control device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this embodiment of the present invention, the window may be a window on the user equipment, where any application program may run, for example: a browser application, a gaming application, an audio-visual playback application, an email application, and the like. In addition, the user equipment may be any equipment having functions of running an application program and displaying a window, for example: the system comprises intelligent equipment such as a tablet Computer, a mobile phone, an electronic reader, a remote controller, a Personal Computer (PC), a notebook Computer, vehicle-mounted equipment, a network television and wearable equipment.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a window control method according to an embodiment of the present invention, as shown in fig. 1, including the following steps:
s101, when the target window is created, an expansion button used for hiding and displaying the target window is created.
Step S101 may be to create a target window when an application corresponding to the target window is started; or the target window can be created when a certain application program starts a subprocess. For example: when the browser makes a webpage, the target window is created, that is, the target window is a sub-window in the main window of the browser, and specifically, the main window 201 shown in fig. 2 may be created, where the main window 201 includes the target window 202, and the expansion button 203 is created at a position in the main window 201 connected to the target window, and certainly, the main window 201 may also include some other windows 204 of the webpage. Thus, the creation of the target window and the expansion button in the main window can be realized by the aid of the method shown in the figure 2.
S102, displaying the target window, detecting whether the current position of a control piece is located in the target window or the area of the expansion button, and if so, displaying the expansion button, wherein the control piece is at least used for controlling the expansion button.
Optionally, the control element may be a cursor of a mouse, so that it is possible to detect whether the current position of the cursor is located in the target window or in the area of the expansion button by reading the position of the cursor and then according to the positions of the target window and the expansion button. In addition, the control member may be a finger, for example: in some touch screen devices, in step S102, the finger-suspended position may be read through a wireless technology (for example, the finger-suspended position is read through an infrared technology or the finger-suspended position is read through a camera-based algorithm), and then, according to the positions of the target window and the extended button, whether the finger-suspended position is located in the target window or the area of the extended button is detected. Of course, the above-mentioned control elements include, but are not limited to, a cursor and a finger of a mouse, for example: the control piece can also be a touch pen and the like.
In addition, the positions of the target window and the expansion button may be obtained in advance, for example: when the target window is created, the position of the target window can be calculated, and when the expansion button is created, the position of the expansion button can be calculated. Of course, the position in the present embodiment may refer to the position of the target window, the expansion button, and the control in the screen.
S103, when the target window is displayed and a first click instruction of clicking the expansion button by the control piece is received, hiding the target window and displaying the expansion button.
After hiding the target window, the step S103 may display an expansion button, for example: as shown in fig. 3, the target window 202 is hidden and the expansion button 203 is displayed.
And S104, when the target window is hidden and a second click instruction of the control element for clicking the expansion button is received, displaying the target window.
Step S104 can be implemented, when the user needs to display the target window, the user can directly click the displayed expansion button through the control element, so as to implement fast display of the target window.
Optionally, the expansion button may be based on an independent window, which is independent of the target window, and after the target window is hidden, the expansion button may also be displayed independently, or after the target window is displayed, the expansion button may be hidden, that is, the expansion button is not affected by the target window.
Optionally, the method may be applied to a user equipment, that is, the user equipment may implement the method.
In the technical scheme, after the target window is hidden, the expansion button for hiding and displaying the target window is displayed, so that a user can quickly click the expansion button through the control piece and then display the target window. Therefore, the embodiment of the invention can realize the rapid window display.
Referring to fig. 4, fig. 4 is a schematic flowchart of another window control method according to an embodiment of the present invention, as shown in fig. 4, including the following steps:
s401, when the target window is created, an expansion button used for hiding and displaying the target window is created.
S402, displaying the target window, detecting whether the current position of a control piece is located in the target window or the area of the expansion button, if so, executing a step S403, otherwise, executing a step S406, wherein the control piece is at least used for controlling the expansion button.
Optionally, S402 may be executed multiple times, where, from the second execution, each time step S402 is executed, it may be determined whether the target window is displayed, and when the target window is displayed, the above-mentioned detection step is executed, that is, the detection may be performed only when the target window is displayed.
Optionally, the step of detecting whether the current position of the control member is located in the target window or the area of the expansion button may include:
periodically detecting at certain time intervals whether the current position of the control member is located within the area of the target window or the extended button.
For example: the detection is performed periodically at intervals of 50 milliseconds, i.e., every 50 milliseconds. In addition, in this implementation, when step S402 is executed for the first time, the target window and the expansion button may be displayed first, and the timer may be started at the same time. Namely, the target window and the expansion button are displayed when the target window and the expansion button are created. Of course, when the step S402 is executed for the first time, the target window may be displayed first, the expansion button may be hidden, and the timer may be started. In addition, step S402 may start a timer device when the execution is started, and perform the detection when the timer device counts the time value of the specific time interval. Specifically, the extension button may be provided with a timing device, and when the timing device counts a time value of the specific time interval, the detection operation is triggered.
In this embodiment, since the detection is performed periodically at specific time intervals, the detection does not need to be performed all the time, which can reduce the power consumption of the apparatus.
Optionally, when the target window is a sub-window in a main window of a target application, for example, an application scene shown in fig. 2, detecting whether the current position of the control element is located in the target window or in the area of the extended button may include:
after the main window of the target application program moves, calculating the current position of the main window, calculating the current position of the target window according to the relative position of the target window and the main window which is acquired in advance, and calculating the current position of the expansion button according to the relative position of the expansion button and the main window which is acquired in advance;
and detecting whether the current position of the control piece is positioned in the target window or the area of the expansion button according to the current position of the target window and the current position of the expansion button.
Specifically, the coordinates of the main window on the screen are calculated, and the current position of the main window is calculated by the coordinates, and the relative position of the target window and the main window and the relative position of the extended button and the main window may be calculated when the target window and the extended button are created.
This embodiment may enable timely updating of the positions of the target window and the expansion button to accurately detect whether the current position of the control is located within the target window or the area of the expansion button.
Similarly, when the target window is a main window of an application, the position of the main window can be updated in time after the main window is moved. In addition, the expansion button may be created at the edge of the main window when the target window is the main window of an application program, or the position where the expansion button is created does not belong to the main window but is connected with the main window, or the expansion button may be created at another position on the screen.
It should be noted that the area of the target window may be a position area where the target window is located on the screen, and the area of the expansion button may be a position area where the expansion button is located on the screen.
And S403, displaying the expansion button.
Step S403 is to display the extended button when it is detected that the current position of the control is located in the target window or the area of the extended button, and step S402 is to detect when the target window is displayed, that is, step S403 may implement displaying the extended button when the target window is displayed and the current position of the control is located in the target window or the area of the extended button. In implementation, often when the current position of the control element is located in the target window or the area of the expansion button, the user may need to operate the expansion button, so that the embodiment may implement the advanced user behavior so as to facilitate the user to control the target window.
S404, when the target window is displayed and a first click instruction of clicking the expansion button by the control piece is received, hiding the target window and displaying the expansion button.
Optionally, step S404 may include:
when the target window is displayed, switching the expansion button to a state to be hidden;
when a first click instruction that the control element clicks the expansion button in a to-be-hidden state is received, hiding the target window, and displaying the expansion button.
In the embodiment, the hiding of the target window can be controlled according to the state of the expansion button. In addition, the above-mentioned expansion button to be hidden may be 202 as shown in fig. 2, i.e. a triangular expansion button to the left, which is more visualized for the user to understand.
Alternatively, step S404 may be to always display the expansion button when the target window is hidden, that is, to always display the expansion button when the target window is hidden.
S405, when the target window is hidden and a second click instruction of the control element for clicking the expansion button is received, displaying the target window.
Optionally, step S405 may include:
when the target window is hidden, switching the expansion button to a state to be displayed;
and when a second click instruction of clicking the expansion button in a state to be displayed by the control element is received, displaying the target window.
The display of the target window may be controlled according to the state of the expansion button in the embodiment. In addition, the above-mentioned expansion button to be displayed can be 202 as shown in fig. 3, i.e. a triangular expansion button to the right, which is more visualized for the user to understand.
In addition, after step S405 is executed, that is, after the target window is displayed, the detecting step in step S402 may be repeatedly executed, so that when the target window is displayed and the current position of the control is located in the target window or the area of the extended button, the extended button may be implemented, and when the target window is displayed and the current position of the control is not located in the area of the target window and is not located in the area of the extended button, the hidden button may be implemented.
S406, hiding the expansion button.
By step S406, it is possible to hide the expansion button when it is detected that the current position of the control is not located in the area of the target window and is not located in the area of the expansion button. In addition, since step S402 is detected when the target window is displayed, that is, step S406 may implement hiding the extended button when the target window is displayed and the current position of the control is not located in the area of the target window and is not located in the area of the extended button. Referring specifically to fig. 5, the main window 501 shown in fig. 5 is displayed in the target window 502 and the other web page window 504 without the expansion button. Since the user may not need to control the target window when it is achieved that the current position of the control is not located within the area of the target window, nor within the area of the extended button. The main window where the screen or the target window is located after the expansion button is hidden can have more display positions, so that more information or windows can be displayed, and the user experience is better after the expansion button is hidden.
In this embodiment, it is further possible to hide the expansion button when the current position of the control element is not located in the area of the target window and is not located in the area of the expansion button on the basis of the first embodiment. The main window where the screen or the target window is located after the expansion button is hidden can have more display positions, so that more information or windows can be displayed, and the user experience is better after the expansion button is hidden. Meanwhile, in the embodiment, various alternative embodiments are also introduced, but these alternative embodiments can also be applied to the embodiment shown in fig. 1.
Referring to fig. 6, fig. 6 is a schematic flowchart of another window control method according to an embodiment of the present invention, as shown in fig. 6, including the following steps:
s601, creating a target window.
S602, creating an extension button.
And S603, setting a timer.
And S604, triggering a timer.
Step S604 may be triggered automatically, or triggered by receiving an input instruction, or triggered when the target window is displayed. In addition, the timer is cleared every time the timer is timed once in step S604, for example, when the time set by the timer is 100 milliseconds, so that the timer is cleared every time the timer counts 100 milliseconds, step S605 is executed.
S605, determine whether the target window is hidden, if yes, execute step S606, otherwise execute step S608.
And S606, switching the expansion into a state to be displayed.
And S607, displaying an expansion button.
When the timer reaches the preset time threshold, the timer is triggered after the step S607 is executed, and when the timer does not reach the preset time threshold, the timer is waited until the timer reaches the preset time threshold, and then the timer is triggered.
And S608, switching the expansion button to a to-be-hidden state.
And S609, judging whether the cursor of the mouse is in the target window or the area of the expansion button, if so, executing a step S610, and if not, executing a step S611.
S610, displaying an expansion button.
S611, hiding the extension button.
When the timer reaches the preset time threshold, the timer is triggered after the step S610 or S611 is executed, and when the timer has not reached the preset time threshold, the timer is waited until the timer reaches the preset time threshold, and then the timer is triggered.
According to the embodiment, the window can be displayed quickly.
For convenience of description, only the relevant parts of the embodiments of the present invention are shown, and details of the specific technology are not disclosed.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a window control apparatus according to an embodiment of the present invention, as shown in fig. 7, including: a creation unit 71, a detection unit 72, a first display unit 73, a first hiding unit 74, and a second display unit 75, wherein:
a creating unit 71 for creating an expansion button for hiding and displaying the target window when the target window is created.
The creating unit 71 may create the target window when the application corresponding to the target window is started; or the target window can be created when a certain application program starts a subprocess.
A detecting unit 72, configured to display the target window, and detect whether a current position of a control element is located in the target window or in an area of the extended button, where the control element is at least used to control the extended button.
Optionally, the control element may be a cursor of a mouse, so that it is possible to detect whether the current position of the cursor is located in the target window or in the area of the expansion button by reading the position of the cursor and then according to the positions of the target window and the expansion button. In addition, the control member may be a finger, for example: in some touch screen devices, the detection unit 72 may read the finger-suspended position through a wireless technology (for example, read the finger-suspended position through an infrared technology or read the finger-suspended position through a camera-based algorithm), and then detect whether the current finger-suspended position is located in the target window or the area of the expansion button according to the positions of the target window and the expansion button. Of course, the above-mentioned control elements include, but are not limited to, a cursor and a finger of a mouse, for example: the control piece can also be a touch pen and the like.
A first display unit 73, configured to display the extended button when the detection unit detects that the current position of the control is located in the target window or the area of the extended button.
A first hiding unit 74, configured to hide the target window and display the extended button when the target window is displayed and a first click instruction of the control to click the extended button is received.
A second display unit 75, configured to display the target window when the target window is hidden and a second click instruction of the control to click the expansion button is received.
Alternatively, the above apparatus may be applied to a user equipment, that is, the user equipment may include the above apparatus.
In the technical scheme, after the target window is hidden, the expansion button for hiding and displaying the target window is displayed, so that a user can quickly click the expansion button through the control piece and then display the target window. Therefore, the embodiment of the invention can realize the rapid window display.
Referring to fig. 8, fig. 8 is a schematic structural diagram of another window control device according to an embodiment of the present invention, as shown in fig. 8, including: a creation unit 81, a detection unit 82, a first display unit 83, a first hiding unit 84, a second display unit 85, and a second hiding unit 86, wherein:
a creating unit 81 for creating an expansion button for hiding and displaying the target window when the target window is created.
A detecting unit 82, configured to display the target window, and detect whether a current position of a control element is located in the target window or in an area of the extended button, where the control element is at least used to control the extended button.
A first display unit 83, configured to display the extended button when the detection unit detects that the current position of the control element is located in the target window or the area of the extended button.
A first hiding unit 84, configured to hide the target window and display the extended button when the target window is displayed and a first click instruction that the control clicks the extended button is received.
And a second display unit 85, configured to display the target window when the target window is hidden and a second click instruction that the control clicks the expansion button is received.
A second hiding unit 86, configured to hide the extended button when the detecting unit 82 detects that the current position of the control element is not located in the area of the target window and is not located in the area of the extended button.
This makes it possible to hide the expansion button when the current position of the control is not located in the area of the target window, nor in the area of said expansion button. The main window where the screen or the target window is located after the expansion button is hidden can have more display positions, so that more information or windows can be displayed, and the user experience is better after the expansion button is hidden.
Optionally, the first hiding unit 84 may be configured to switch the expansion button to a state to be hidden when the target window is displayed; and when a first click instruction that the control element clicks the expansion button in a to-be-hidden state is received, hiding the target window and displaying the expansion button.
In the embodiment, the hiding of the target window can be controlled according to the state of the expansion button.
Optionally, the second display unit 85 may be configured to switch the expansion button to a state to be displayed when the target window is hidden; and when a second click instruction of clicking the expansion button in the state to be displayed by the control element is received, displaying the target window.
The display of the target window may be controlled according to the state of the expansion button in the embodiment.
Alternatively, the detection unit 82 may be configured to display the target window and periodically detect whether the current position of the control member is located in the target window or in the area of the expansion button at specific time intervals.
In this embodiment, since the detection is performed periodically at specific time intervals, the detection does not need to be performed all the time, which can reduce the power consumption of the apparatus.
Optionally, when the target window is a child window in the main window of the target application, as shown in fig. 9, the detecting unit 82 may include:
a calculating unit 821, configured to calculate a current position of the main window after the main window of the target application program moves, calculate a current position of the target window according to a relative position between the pre-obtained target window and the main window, and calculate a current position of the extended button according to a relative position between the pre-obtained extended button and the main window;
a detecting subunit 822, configured to display the target window, and detect whether the current position of the control element is located in the target window or in the area of the extended button according to the current position of the target window and the current position of the extended button.
In this embodiment, since the detection is performed periodically at specific time intervals, the detection does not need to be performed all the time, which can reduce the power consumption of the apparatus.
In this embodiment, it is further possible to hide the expansion button when the current position of the control element is not located in the area of the target window and is not located in the area of the expansion button on the basis of the first apparatus embodiment. The main window where the screen or the target window is located after the expansion button is hidden can have more display positions, so that more information or windows can be displayed, and the user experience is better after the expansion button is hidden. Meanwhile, in this embodiment, various alternative embodiments are also described, but these alternative embodiments can also be applied to the embodiment shown in fig. 7.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (11)

1. A window control method, comprising:
when any webpage in a browser is opened, creating a target window of the webpage;
creating an expansion button for hiding and displaying the target window when the target window is created;
judging whether the target window is displayed or not;
when the target window is displayed, judging whether a main window of the browser moves or not, calculating the current position of the main window after the main window moves, calculating the current position of the target window according to the relative position of the target window and the main window acquired in advance, and calculating the current position of the expansion button according to the relative position of the expansion button and the main window acquired in advance;
detecting whether the current position of a control element is located in the target window or the area of the expansion button or not according to the current position of the target window and the current position of the expansion button, if so, displaying the expansion button, wherein the control element is at least used for controlling the expansion button, and comprises a cursor, a finger or a touch pen;
when the target window is displayed and a first click instruction of clicking the expansion button by the control element is received, hiding the target window and displaying the expansion button;
when the target window is hidden and a second click instruction of the control member for clicking the expansion button is received, displaying the target window.
2. The method of claim 1, wherein hiding the target window and displaying the expanded button when the target window is displayed and a first click command is received for the control to click the expanded button comprises:
when the target window is displayed, switching the expansion button to a state to be hidden;
when a first click instruction that the control element clicks the expansion button in a to-be-hidden state is received, hiding the target window, and displaying the expansion button.
3. The method of claim 2, wherein displaying the target window when the target window is hidden and a second click command is received for the control to click the expansion button comprises:
when the target window is hidden, switching the expansion button to a state to be displayed;
and when a second click instruction of clicking the expansion button in a state to be displayed by the control element is received, displaying the target window.
4. The method of any one of claims 1-3, further comprising:
hiding the expansion button when it is detected that the current position of the control is not within the area of the target window and is not within the area of the expansion button.
5. The method of any one of claims 1-3, wherein the detecting whether the current position of the control is within the region of the target window or the extended button comprises:
periodically detecting at certain time intervals whether the current position of the control member is located within the area of the target window or the extended button.
6. A window control apparatus, comprising: the device comprises a creating unit, a detecting unit, a first display unit, a first hiding unit and a second display unit, wherein:
the creating unit is used for creating a target window of the webpage when any webpage in the browser is opened; creating an expansion button for hiding and displaying the target window when the target window is created;
the detection unit is used for judging whether the target window is displayed or not, judging whether a main window of the browser moves or not when the target window is displayed, calculating the current position of the main window after the main window moves, calculating the current position of the target window according to the relative position of the target window and the main window acquired in advance, calculating the current position of the expansion button according to the relative position of the expansion button and the main window acquired in advance, and detecting whether the current position of a control element is located in the target window or the area of the expansion button or not according to the current position of the target window and the current position of the expansion button, wherein the control element is at least used for controlling the expansion button and comprises a cursor, a finger or a touch pen;
the first display unit is used for displaying the expansion button when the detection unit detects that the current position of the control piece is located in the target window or the area of the expansion button;
the first hiding unit is used for hiding the target window and displaying the expansion button when the target window is displayed and a first click instruction of clicking the expansion button by the control piece is received;
the second display unit is used for displaying the target window when the target window is hidden and a second click instruction of the control element for clicking the expansion button is received.
7. The apparatus of claim 6, wherein the first hiding unit is configured to switch the extended button to a state to be hidden when the target window is displayed; and when a first click instruction that the control element clicks the expansion button in a to-be-hidden state is received, hiding the target window and displaying the expansion button.
8. The apparatus of claim 7, wherein the second display unit is configured to switch the expansion button to a state to be displayed when the target window is hidden; and when a second click instruction of clicking the expansion button in the state to be displayed by the control element is received, displaying the target window.
9. The apparatus of any one of claims 6-8, wherein the apparatus further comprises:
a second hiding unit configured to hide the extended button when the detection unit detects that the current position of the control is not located in the area of the target window and is not located in the area of the extended button.
10. The device according to any one of claims 6 to 8, wherein the detection unit is configured to display the target window and periodically detect whether the current position of the control member is located within the target window or the area of the expansion button at specific time intervals.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a window control apparatus, cause the window control apparatus to execute the window control method according to any one of claims 1 to 5.
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 CN105468221A (en) 2016-04-06
CN105468221B true 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 (3)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103389850B (en) * 2012-05-08 2015-11-04 腾讯科技(深圳)有限公司 A kind of method and device realizing prompt operation on a web browser

Patent Citations (3)

* 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
CN102799380A (en) * 2012-07-13 2012-11-28 杭州边锋网络技术有限公司 Desktop shortcut control system and method

Also Published As

Publication number Publication date
CN105468221A (en) 2016-04-06

Similar Documents

Publication Publication Date Title
US11966558B2 (en) Application association processing method and apparatus
EP2825950B1 (en) Touch screen hover input handling
CN107613117A (en) A kind of interface display method and mobile terminal based on multitask
US20150033165A1 (en) Device and method for controlling object on screen
CN105068730B (en) A kind of content switching method and mobile terminal
CN106415471A (en) Processing method for user interface of terminal, user interface and terminal
CN106681616B (en) Method, device and equipment for displaying function bar of browser
CN105302458A (en) Message display method and apparatus
CN105159582A (en) Video region adjusting method and terminal
CN107132982B (en) Single-hand control method and system for terminal equipment
US10019148B2 (en) Method and apparatus for controlling virtual screen
CN103809852A (en) Method and device for displaying multiple application programs on same screen at same time
CN103809853A (en) Information processing method and electronic device
CN104182166A (en) Control method and device of intelligent terminal application program
CN103616994A (en) Method and device for controlling electronic device
CN103513871A (en) Method and device for having control over mobile terminal
CN114779977A (en) Interface display method and device, electronic equipment and storage medium
KR20150039552A (en) Display manipulating method of electronic apparatus and electronic apparatus thereof
CN103809856A (en) Information processing method and first electronic device
CN107992262A (en) Split screen display available interface control method, mobile terminal and computer-readable recording medium
JP2016038910A (en) Display control device, display control method, and computer program for executing the same in computer
CN107728898B (en) Information processing method and mobile terminal
KR20150095523A (en) Electronic apparatus and method for extracting color in electronic apparatus
US20160170596A1 (en) Image display apparatus, image display method, and image-display program product
CN107817927B (en) Application icon management method and device

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