Display window control method and device, electronic equipment and storage medium
By determining and moving the position of the display window in the display interface of the electronic device, the problem of conflict in multiple window display locations is solved, and the display effect and user experience are improved.
Patent Information
- Application Number
- CN202311015404.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-11
- Publication Date
- 2025-02-18
AI Technical Summary
In the display interface of an electronic device, when multiple display windows exist at the same time, the newly opened display window position is likely to conflict with the existing window, resulting in poor display effect of multiple windows.
By receiving the window display instruction, the window type of the first display window to be displayed is determined, and when it is a small window type, the number and type of the current second display window in the display interface are determined. If the number of second windows exceeds the threshold, based on the correspondence between the window type and the display position, the second window is moved to its corresponding display position to ensure that the first display window can maximize its display content.
It effectively avoids conflicts in the display window position, improves the display effect of multi-window display, and provides users with a better user experience.
Smart Images

Figure CN119473459A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic devices, and in particular to a method and device for controlling a display window, an electronic device, and a storage medium. Background Art
[0002] With the continuous development of electronic devices, there are more and more applications on terminal devices, and the linkage usage scenarios between different applications have become very common. Therefore, it is necessary to display multiple display windows simultaneously in the display interface of the electronic device.
[0003] In the related art, when there are multiple display windows simultaneously existing in the display interface of an electronic device, when a new display window is opened by operating the recent task or the desktop, the position of the new display window will conflict with the existing display window, resulting in poor multi-window display effect. Summary of the invention
[0004] The present disclosure proposes a control method, device, electronic device, storage medium and computer program product for a display window, aiming to solve the technical problems in the related art at least to a certain extent.
[0005] An embodiment of the first aspect of the present disclosure proposes a method for controlling a display window, comprising: when a window display instruction is received, determining the window type of a first display window to be displayed; when the window type of the first display window is the first type, determining the window type and number of second display windows currently displayed in the display interface of the electronic device; when the number of second display windows is greater than a first threshold, based on the correspondence between each window type and the display position, moving each second display window to a display position corresponding to its window type; and displaying the first display window in the display interface.
[0006] An embodiment of the second aspect of the present disclosure proposes a control device for displaying windows, comprising: a first determination module, for determining the window type of a first display window to be displayed when a window display instruction is received; a second determination module, for determining the window type and number of second display windows currently displayed in a display interface of an electronic device when the window type of the first display window is of the first type; a processing module, for moving each second display window to a display position corresponding to its window type based on the correspondence between each window type and the display position when the number of second display windows is greater than a first threshold; and a display module, for displaying the first display window in the display interface.
[0007] An embodiment of the third aspect of the present disclosure proposes an electronic device, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement a method for controlling a display window.
[0008] The fourth aspect of the present disclosure provides a computer-readable storage medium. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute a method for controlling a display window.
[0009] The fifth aspect of the present disclosure provides a computer program product, including a computer program, characterized in that the computer program is executed by a processor to control a display window.
[0010] The control method, device, electronic device, storage medium and computer program product of the display window proposed in this embodiment have at least the following beneficial effects: when receiving a window display instruction, determining the window type of the first display window to be displayed, and when the window type of the first display window is the first type, determining the window type and number of the second display windows currently displayed in the display interface of the electronic device, and then, when the number of second display windows is greater than the first threshold, based on the correspondence between each window type and the display position, moving each second display window to the display position corresponding to its window type, and displaying the first display window in the display interface, thereby effectively ensuring that multiple display windows can maximize the display content of the windows, thereby effectively improving the display effect of multi-window display, and bringing a better user experience to the user. Furthermore, the technical problem of poor display effect of multi-window display in electronic devices existing in the prior art, which leads to poor user experience, is solved.
[0011] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0013] Figure 1A is a flowchart of a method for controlling a display window according to the first embodiment of the present disclosure;
[0014] Figure 1B is a display schematic diagram of a display window proposed in an embodiment of the present disclosure;
[0015] Figure 1C is a display schematic diagram of a display window proposed in another embodiment of the present disclosure;
[0016] Figure 2A is a flow chart of a method for controlling a display window according to a second embodiment of the present disclosure;
[0017] Figure 2B is a display schematic diagram of a display window proposed in an embodiment of the present disclosure;
[0018] Figure 2C is a display schematic diagram of a display window proposed in another embodiment of the present disclosure;
[0019] Figure 2D is a display schematic diagram of a display window proposed in an embodiment of the present disclosure;
[0020] Figure 2E is a display schematic diagram of a display window proposed in another embodiment of the present disclosure;
[0021] Figure 3 is a block diagram of a control device for displaying a window according to the present disclosure;
[0022] Figure 4 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0023] Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present disclosure, and are not to be construed as limitations of the present disclosure. On the contrary, the embodiments of the present disclosure include all changes, modifications, and equivalents that fall within the spirit and connotation of the appended claims.
[0024] It should be noted that the executor of the display window control method of this embodiment may be a display window control device, which may be implemented by software and / or hardware, and which may be configured in an electronic device, which may include but is not limited to a terminal, a server, etc.
[0025] It should be noted that the process of obtaining, storing, using, and processing information in the disclosed technical solution complies with the relevant provisions of national laws and regulations and does not violate public order and good morals.
[0026] Figure 1A FIG. 1 is a flow chart of a method for controlling a display window according to a first embodiment of the present disclosure. As shown in FIG. 1 , the method includes:
[0027] S101: When a window display instruction is received, determine the window type of a first display window to be displayed.
[0028] The display window control method in the embodiment of the present disclosure can be applied to electronic devices, and the electronic devices can be, for example, mobile phones, tablet computers and other electronic devices with interface display functions, without limitation.
[0029] The window display instruction may be used to trigger the display of a corresponding display window in the display area of the electronic device.
[0030] Optionally, in some embodiments, receiving the window display instruction may be determining that the window display instruction is received when it is detected that the first function control is selected; or determining that the window display instruction is received when a start instruction for any application is received.
[0031] When the first function control is selected, the display interface of the electronic device may trigger the display of application identifiers of all historically running applications that have not been closed, and / or content display windows.
[0032] Among them, it can be that the application identifier of any historical running application that has not been closed is detected, and / or when the content display window is touched, it is determined that a startup instruction for any application has been received, or it can also be that when a new application control on the desktop of the electronic device is touched, it is determined that a window display instruction has been received, and there is no limitation on this.
[0033] Among them, after the electronic device receives the window display instruction, the display window to be displayed is the first display window. The first display window can be used to display the application content of a certain application, or the first display window can also be used to display the application icon of a certain application, without limitation.
[0034] Among them, the first display window can be divided into different window types based on the size of the display window. The window type of the first display window can be specifically, for example, a small window type and a mini window type. The window size of the display window of the mini window type is smaller than the window size of the display window of the small window type.
[0035] In the embodiments of the present disclosure, it can be determined that a window display instruction has been received, for example, when a certain control in the electronic device is detected to be touched, or it can be determined that a window display instruction has been received, for example, when a sliding operation instruction on the display interface of the electronic device is detected, without limitation.
[0036] When a window display instruction is received, the embodiment of the present disclosure can determine the relevant window display information of the first display window to be displayed, and then determine the window size of the first display window described by the window display information, and when the window size is less than a size threshold, determine that the window type of the first display window is a mini window type, and when the window size is greater than or equal to the size threshold, determine that the window type of the first display window is a small window type, and there is no restriction on this.
[0037] Alternatively, determining the window type of the first display window to be displayed may also be determining the historical window type of the first display window during the historical display process of the first display window, and using the historical window type of the first display window as the window type of the first display window to be displayed, and there is no limitation on this.
[0038] S102: When the window type of the first display window is the first type, determine the window type and number of second display windows currently displayed in the display interface of the electronic device.
[0039] Among them, the first type is the small window type.
[0040] Before the first display window is displayed, the display window currently displayed in the display interface of the electronic device is the second display window. The number of the second display windows may be one or more, and there is no limitation on this.
[0041] The window types of different second display windows may be the same or different, and the window type of the second display window may be a small window type and / or a mini window type, which is not limited.
[0042] That is to say, in the embodiment of the present disclosure, when determining that the window type of the first display window is the first type and before displaying the first display window, the second display window currently being displayed in the display interface of the electronic device can be identified, the number of second display windows can be cumulatively counted to determine the number of second display windows, and the window size of each second display window can be determined, and then when the window size is less than a size threshold, the window type of the second display window of this window size is determined to be a mini window type, and when the window size is greater than or equal to the size threshold, the window type of the second display window of this window size is determined to be a small window type, and there is no limitation on this.
[0043] S103: When the number of second display windows is greater than the first threshold, based on the correspondence between each window type and the display position, move each second display window to a display position corresponding to its window type.
[0044] The first threshold is a preset number threshold for the number of second display windows. The first threshold can be adaptively configured in combination with the control requirements of display windows in actual business scenarios, and there is no restriction on this.
[0045] Among them, in order to have sufficient display area to display the first display window, and in order to avoid display position conflicts and mutual overlapping between the first display window and the second display window, different display positions can be pre-set for display windows of different window types. For example, for a display window with a small window type, the display position can be pre-set to the top position of the electronic device display interface. For a display window with a mini window type, the display position can be pre-set to the left and right sides of the electronic device display interface. There is no restriction on this.
[0046] After determining the window type and number of second display windows currently displayed in the display interface of the electronic device, the embodiment of the present disclosure can compare the number of second windows with a first threshold and, if the number of second display windows is greater than the first threshold, move each second display window to a display position corresponding to its window type.
[0047] For example, based on the correspondence between each window type and the display position, each second display window is moved to the display position corresponding to its window type. Based on the correspondence between each window type and the display position in the aforementioned example, the second display window whose window type is a mini window type is moved to the positions on the left and right sides of the preset electronic device display interface, and the second display window whose window type is a small window type is moved to the top position of the preset electronic device display interface.
[0048] For example, see Figure 1B , Figure 1B is a display schematic diagram of a display window proposed in an embodiment of the present disclosure, that is, before displaying the first display window, a second display window of a different window type may be as follows: Figure 1B The display is shown in the display interface, see Figure 1C , Figure 1C It is a display schematic diagram of a display window proposed in another embodiment of the present disclosure, that is, when displaying the second display window, the second display window can be moved to a display position corresponding to its window type, and then the first display window can be displayed to the remaining display area of the display interface.
[0049] In the embodiment of the present disclosure, before displaying the first display window in the display interface, each second display window is moved to a display position corresponding to its window type, thereby avoiding display position conflict and mutual overlapping between the first display window and the second display window.
[0050] S104: Displaying a first display window in the display interface.
[0051] Optionally, in some embodiments, displaying the first display window in the display interface may be displaying the first display window in the first remaining display area when an area of the first remaining display area in the display interface is greater than or equal to an area of the first display window.
[0052] Among them, the other display areas of the entire display area of the electronic device except for the second display window are the first remaining display areas.
[0053] In the embodiment of the present disclosure, when the area of the first remaining display area in the display interface is greater than or equal to the area of the first display window, the first display window may be displayed in the first remaining display area.
[0054] In the disclosed embodiment, before displaying the first display window in the first remaining display area, since the first remaining area may be isolated and dispersed by the second display window, a remaining display area with the largest area may be determined from a plurality of relatively dispersed remaining display areas, and when the remaining display area supports fully displaying the first display window, the first display window may be directly displayed in the remaining display area, and when the remaining display area supports fully displaying the first display window, the first display window may be displayed at an edge position of the display area (for example, the left edge position of the display area, without limitation thereto), and then the second display window may be translated in the opposite direction to another edge position (for example, the right edge position of the display area, without limitation thereto), so that the relatively dispersed first remaining display area can be relatively concentrated, thereby providing a more complete remaining display area for the first display window, so as to enhance the window display effect of the first display window.
[0055] In some embodiments, when the remaining display area is insufficient to display the first display window, the first display window may be displayed floating on an upper layer of the second display window, and there is no limitation to this.
[0056] It can be understood that the embodiment of the present disclosure moves each second display window to a display position corresponding to its window type before displaying the first display window in the display interface, thereby effectively avoiding display position conflicts and mutual overlapping between the first display window and the second display window, and effectively ensuring that multiple display windows can maximize the display content of the display windows, thereby effectively improving the display effect of the multi-window display and bringing a better user experience to users.
[0057] In an embodiment of the present disclosure, by determining the window type of a first display window to be displayed when a window display instruction is received, and determining the window type and number of second display windows currently displayed in a display interface of the electronic device when the window type of the first display window is the first type, and then, when the number of second display windows is greater than a first threshold, based on the correspondence between each window type and the display position, each second display window is moved to a display position corresponding to its window type, and the first display window is displayed in the display interface. In this way, it is possible to effectively ensure that multiple display windows can maximize the display content of the windows, thereby effectively improving the display effect of multi-window display and bringing a better user experience to users.
[0058] Figure 2A is a flow chart of a method for controlling a display window according to a second embodiment of the present disclosure, such as Figure 2A As shown, the method includes:
[0059] S201: When a window display instruction is received, determine the window type of a first display window to be displayed.
[0060] S202: When the window type of the first display window is the first type, determine the window type and number of second display windows currently displayed in the display interface of the electronic device.
[0061] S203: When the number of second display windows is greater than the first threshold, based on the correspondence between each window type and the display position, move each second display window to a display position corresponding to its window type.
[0062] S204: Displaying a first display window in the display interface.
[0063] The specific description of S201 - S204 can be found in the above embodiment, which will not be repeated here.
[0064] S205: When the area of the first remaining display region is smaller than the area of the first display window, at least one second display window is translated based on a first preset overlappable area to obtain an updated second remaining display region.
[0065] Among them, the other display areas of the entire display area of the electronic device except for the second display window are the first remaining display areas.
[0066] The first preset overlapping area is a preset window overlapping area of two or more second display windows.
[0067] In an embodiment of the present disclosure, before displaying the first display window, the area of the first remaining display area in the electronic device can be determined, and the area of the first remaining display area can be compared with the area of the first display window. When the area of the first remaining display area is smaller than the area of the first display window, at least one second display window can be translated based on a first preset overlapping area so that two or more second display windows have the first preset overlapping area, thereby achieving expansion and adjustment of the first remaining display area to obtain an expanded and adjusted second remaining display area.
[0068] That is to say, in the embodiments of the present disclosure, when the first remaining display area is insufficient to support the display of the first display window, the historically displayed second display window may be overlapped preferentially based on the first preset overlapping area, thereby providing the first display window with sufficient second remaining display area, thereby effectively ensuring the display effect of the first display window.
[0069] Alternatively, in the embodiment of the present disclosure, the first display window may be displayed at an edge position of the display area (for example, the left edge position of the display area, without limitation) before translating at least one second display window based on the first preset overlapping area to obtain an updated second remaining display area, and then the second display window may be translated in the opposite direction to another edge position (for example, the right edge position of the display area, without limitation) so that the relatively dispersed first remaining display area can be relatively concentrated, and then at least one second display window may be translated again based on the first preset overlapping area, without limitation.
[0070] For example, see Figure 2B , Figure 2B is a display schematic diagram of a display window proposed in an embodiment of the present disclosure, such as Figure 2B As shown, before displaying the first display window, the second display window may be displayed in the display interface as shown in the figure. In this case, the remaining display area is insufficient to support the display of the first display window. Figure 2C , Figure 2C is a display schematic diagram of a display window proposed in another embodiment of the present disclosure, such as Figure 2C As shown, when the area of the first remaining display area is smaller than the area of the first display window, at least one second display window may be translated based on a first preset overlapping area to obtain an updated second remaining display area, and then, the first display window may be displayed in the updated second remaining display area.
[0071] S206: When the area of the second remaining display area is greater than or equal to the area of the first display window, or when the area of the second remaining display area is smaller than the area of the first display window and a first difference between the area of the second remaining display area and the area of the first display window is less than or equal to a second threshold, display the first display window in the second remaining display area.
[0072] In the embodiment of the present disclosure, after translating at least one second display window based on a first preset overlapping area to obtain an updated second remaining display area, the area of the second display area can be compared with the area of the first display window, and if the area of the second remaining display area is greater than or equal to the area of the first display window, the first display window can be displayed in the second remaining display area, thereby avoiding the first display window and other display windows from overlapping each other, thereby effectively ensuring the display effect of the first display window.
[0073] The second threshold refers to an area threshold at which the area covered by the first display window does not affect the normal use of the first display window.
[0074] In the embodiment of the present disclosure, after translating at least one second display window based on a first preset overlapping area to obtain an updated second remaining display area, the area of the second display area can be compared with the area of the first display window, and when the area of the second remaining display area is smaller than the area of the first display window and a first difference between the area of the second remaining display area and the area of the first display window is less than or equal to a second threshold, the first display window can be displayed based on the second display area, thereby achieving multi-window display without affecting the normal use of the first display window, thereby effectively meeting the user's multi-window display needs.
[0075] S207: When the area of the second remaining display region is smaller than the area of the first display window and the first difference is greater than a second threshold, update at least one second display window of the second type to a third display window of the third type to obtain an updated third remaining display region.
[0076] The size of the second type of display window is larger than the size of the third type of display window. For example, the second type of display window may be a small window type display window, and the third type of display window may be a mini window type display window.
[0077] When the first difference is greater than the second threshold, it means that the current second remaining display area is insufficient to support normal display of the first display window.
[0078] Among them, after the window type of at least one second display window of the second type is changed, the other display area in the display area of the electronic device except for the second display window is the third remaining display area, and the area of the third remaining display area is equal to the area of the first display window, or the second difference between the area of the third remaining display area and the area of the first display window is less than or equal to the second threshold.
[0079] For example, after determining the second remaining display area, the area of the second remaining display area is compared with the area of the first display window, and when the area of the second remaining display area is smaller than the area of the first display window, the first difference between the area of the second remaining display area and the area of the first display window is determined, and when the first difference is greater than a second threshold, any one or more second display windows of small window type can be changed to a third display window of mini window type to obtain an updated third remaining display area.
[0080] For example, see Figure 2D , Figure 2D is a display schematic diagram of a display window proposed in an embodiment of the present disclosure, such as Figure 2D As shown, before the first display window is displayed, the second display window may be displayed in the display interface as shown in the figure. In this case, although at least one second display window is translated based on the first preset overlapping area, the second remaining display area is still insufficient to support the display of the first display window. Therefore, referring to Figure 2E , Figure 2E is a display schematic diagram of a display window proposed in another embodiment of the present disclosure, such as Figure 2C As shown, when the area of the second remaining display region is smaller than the area of the first display window, a second display window of the second type may be updated to a third display window of the third type, and then the first display window may be displayed in the updated third remaining display region.
[0081] Alternatively, the start display time of each second display window may be determined, and a preset number of second display windows of small window type with earlier start display time may be changed to third display windows of mini window type to obtain an updated third remaining display area.
[0082] Therefore, by updating at least one second display window of the second type to a third display window of the third type to obtain an updated third remaining display area, a larger third remaining display area can be provided for the first display window, ensuring that the first display window has sufficient display space, thereby effectively guaranteeing the window display effect of the first display window.
[0083] Optionally, in some embodiments, before updating at least one second display window of the second type to a third display window of the third type, at least one second display window of the second type can be determined based on the type of application corresponding to each second display window and / or the update frequency of the content displayed in each second display window.
[0084] Among them, different applications can be divided into different types based on application functions, for example, social type, game type, etc., and there is no restriction on this.
[0085] Among them, the update frequency of the content displayed in different second display windows refers to the number of image frames displayed in the second display window per unit time. For the second display window corresponding to the video playback application, the update frequency of the content displayed in the second display window is relatively high; for the second display window corresponding to the document editing application, the update frequency of the content displayed in the second display window is relatively low.
[0086] For example, according to the type of application corresponding to each second display window, at least one second display window of the second type is determined. For example, in the case where there are second display windows of game-type applications and second display windows of social-type applications, since game-type applications have higher requirements for interface display and game-type applications have higher requirements for user interaction during the display process, the second display window of the social-type application can be determined, and then the window type of the second display window of the social-type application can be changed, thereby effectively ensuring the user experience while ensuring the display effect of the first display window.
[0087] For example, at least one second display window of the second type is determined based on the update frequency of the content displayed in each second display window. The second display window corresponding to the document editing application can be determined from the second display window corresponding to the video playback application and the second display window corresponding to the document editing application, and then the window type of the second display window of the social type application is changed. This can effectively ensure the user experience while ensuring the display effect of the first display window.
[0088] S208: Display the first display window in the third remaining display area.
[0089] After updating at least one second display window of the second type to a third display window of the third type to obtain an updated third remaining display area, the disclosed embodiment can display the first display window in the third remaining display area, which can effectively ensure that multiple display windows can maximize the display content of the display windows, thereby effectively improving the display effect of the multi-window display and bringing a better user experience to users.
[0090] S209: After the first display window is closed, each second display window is restored to its corresponding historical display position.
[0091] Before receiving the window display instruction, the relative position of the second window in the display interface of the electronic device is the historical display position.
[0092] In the disclosed embodiment, each second display window may be restored to its corresponding historical display position after the first display window is closed, so that the second display window can be quickly restored after the first display window is closed.
[0093] In an embodiment of the present disclosure, by determining the window type of a first display window to be displayed when a window display instruction is received, and then determining the window type and number of second display windows currently displayed in a display interface of the electronic device when the window type of the first display window is the first type, and when the number of second display windows is greater than a first threshold, based on the correspondence between each window type and the display position, each second display window is moved to a display position corresponding to its window type, and then the first display window is displayed in the display interface, and when the area of the first remaining display area is smaller than the area of the first display window, at least one second display window is translated based on a first preset overlapping area to obtain an updated second remaining display area, so as to provide the first display window with sufficient second remaining display area, so as to effectively ensure the display effect of the first display window, and when the area of the second remaining display area is greater than or equal to the area of the first display window, or when the area of the second remaining display area is smaller than the area of the first display window and the second remaining display area When a first difference between the area of the area and the area of the first display window is less than or equal to a second threshold, the first display window is displayed in the second remaining display area, so that multi-window display can be achieved without affecting the normal use of the first display window, thereby effectively meeting the user's multi-window display needs. When the area of the second remaining display area is smaller than the area of the first display window and the first difference is greater than the second threshold, at least one second display window of the second type is updated to a third display window of the third type to obtain an updated third remaining display area, so that a larger third remaining display area can be provided for the first display window, ensuring that the first display window has sufficient display space, thereby effectively guaranteeing the window display effect of the first display window, and displaying the first display window in the third remaining display area, thereby effectively improving the display effect of the multi-window display. Before receiving the window display instruction, the relative position of the second window in the display interface of the electronic device is the historical display position, so that the second display window can be quickly restored after the first display window is closed.
[0094] Figure 3 is a block diagram of a control device for displaying a window according to the present disclosure, such as Figure 3 As shown, the control device 30 of the display window includes:
[0095] A first determining module 301 is used to determine the window type of a first display window to be displayed when a window display instruction is received;
[0096] A second determining module 302, configured to determine the window type and number of second display windows currently displayed in the display interface of the electronic device when the window type of the first display window is the first type;
[0097] A processing module 303 is used to move each second display window to a display position corresponding to its window type based on the correspondence between each window type and the display position when the number of second display windows is greater than a first threshold;
[0098] The display module 304 is used to display the first display window in the display interface.
[0099] In some embodiments of the present disclosure, the first determining module 301 is further configured to:
[0100] In the case where it is detected that the first function control is selected, determining that a window display instruction is received; or,
[0101] When a start instruction for any application is received, it is determined to receive a window display instruction.
[0102] In some embodiments of the present disclosure, the display module 304 is further configured to:
[0103] When the area of the first remaining display region in the display interface is greater than or equal to the area of the first display window, the first display window is displayed in the first remaining display region.
[0104] In some embodiments of the present disclosure, the display module 304 is further configured to:
[0105] When the area of the first remaining display region is smaller than the area of the first display window, at least one second display window is translated based on a first preset overlappable area to obtain an updated second remaining display region;
[0106] When the area of the second remaining display area is greater than or equal to the area of the first display window, or when the area of the second remaining display area is smaller than the area of the first display window and a first difference between the area of the second remaining display area and the area of the first display window is less than or equal to a second threshold, the first display window is displayed in the second remaining display area.
[0107] In some embodiments of the present disclosure, the display module 304 is further configured to:
[0108] After acquiring the updated second remaining display area, when the area of the second remaining display area is smaller than the area of the first display window and the first difference is greater than the second threshold, updating at least one second display window of the second type to a third display window of the third type to acquire the updated third remaining display area, wherein the size of the display window of the second type is larger than the size of the display window of the third type, the area of the third remaining display area is equal to the area of the first display window, or the second difference between the area of the third remaining display area and the area of the first display window is less than or equal to the second threshold;
[0109] The first display window is displayed in the third remaining display area.
[0110] In some embodiments of the present disclosure, the display module 304 is further configured to:
[0111] Before updating at least one second display window of the second type to a third display window of the third type, at least one second display window of the second type is determined according to the type of application corresponding to each second display window and / or the update frequency of the content displayed in each second display window.
[0112] In some embodiments of the present disclosure, the display module 304 is further configured to:
[0113] After the first display window is displayed in the display interface, each second display window is restored to its corresponding historical display position after the first display window is closed.
[0114] In this embodiment, when a window display instruction is received, the window type of the first display window to be displayed is determined, and when the window type of the first display window is the first type, the window type and number of second display windows currently displayed in the display interface of the electronic device are determined, and then when the number of second display windows is greater than a first threshold, based on the correspondence between each window type and the display position, each second display window is moved to a display position corresponding to its window type, and the first display window is displayed in the display interface. In this way, it is possible to effectively ensure that multiple display windows can maximize the display content of the windows, thereby effectively improving the display effect of multi-window display and bringing a better user experience to users.
[0115] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a computer-readable storage medium, and a computer program product.
[0116] Figure 4 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown.
[0117] Figure 4 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0118] like Figure 4 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a memory 28, and a bus 18 that connects various system components (including the memory 28 and the processing unit 16).
[0119] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.
[0120] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.
[0121] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 Not shown, often called a "hard drive").
[0122] although Figure 4Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disc read only memory (hereinafter referred to as: CD-ROM), a digital versatile disc read only memory (hereinafter referred to as: DVD-ROM) or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present disclosure.
[0123] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described in the present disclosure.
[0124] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), may also communicate with one or more devices that enable the human body to interact with the electronic device 12, and / or communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 22. In addition, the electronic device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 through a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0125] The processing unit 16 executes various functional applications and parameter information determination by running the program stored in the memory 28, such as implementing the control method of the service display window mentioned in the above embodiment, or implementing the service data acquisition method mentioned in the above embodiment.
[0126] It should be noted that, in the description of the present disclosure, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present disclosure, unless otherwise specified, the meaning of "plurality" is two or more.
[0127] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present disclosure includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present disclosure belong.
[0128] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0129] A person of ordinary skill in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0130] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0131] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0132] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0133] Although the embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present disclosure. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present disclosure.
Claims
1. A method for controlling a display window, characterized in that: The method comprises: In case of receiving the window display instruction, determining the window type of the first display window to be displayed; In a case where the window type of the first display window is the first type, determining the window type and number of the second display windows currently displayed in the display interface of the electronic device; When the number of the second display windows is greater than the first threshold, based on the correspondence between each window type and the display position, each of the second display windows is moved to a display position corresponding to its window type; The first display window is displayed in the display interface.
2. The method according to claim 1, characterized in that The receiving of the window display instruction comprises: In the case where it is detected that the first function control is selected, determining that a window display instruction is received; or, In the case of receiving a start instruction for any application, it is determined to receive the window display instruction.
3. The method according to claim 1, characterized in that The displaying the first display window in the display interface includes: When the area of the first remaining display region in the display interface is greater than or equal to the area of the first display window, the first display window is displayed in the first remaining display region.
4. The method according to claim 1, characterized in that The displaying the first display window in the display interface includes: When the area of the first remaining display region is smaller than the area of the first display window, at least one of the second display windows is translated based on a first preset overlappable area to obtain an updated second remaining display region; When the area of the second remaining display area is greater than or equal to the area of the first display window, or when the area of the second remaining display area is smaller than the area of the first display window and a first difference between the area of the second remaining display area and the area of the first display window is less than or equal to a second threshold, the first display window is displayed in the second remaining display area.
5. The method according to claim 4, characterized in that After obtaining the updated second remaining display area, the method further includes: When the area of the second remaining display area is smaller than the area of the first display window and the first difference is greater than a second threshold, updating at least one second display window of the second type to a third display window of the third type to obtain an updated third remaining display area, wherein the size of the display window of the second type is larger than the size of the display window of the third type, the area of the third remaining display area is equal to the area of the first display window, or the second difference between the area of the third remaining display area and the area of the first display window is less than or equal to the second threshold; The first display window is displayed in the third remaining display area.
6. The method according to claim 5, characterized in that Before updating at least one second display window of the second type to a third display window of the third type, the method further includes: The at least one second display window of the second type is determined according to the type of application corresponding to each second display window and / or the update frequency of the content displayed in each second display window.
7. The method according to any one of claims 1 to 6, characterized in that: After the first display window is displayed in the display interface, the method further includes: After the first display window is closed, each of the second display windows is restored to its corresponding historical display position.
8. A control device for a display window, characterized in that: The device comprises: A first determining module, configured to determine the window type of a first display window to be displayed when receiving a window display instruction; A second determining module, configured to determine the window type and number of second display windows currently displayed in the display interface of the electronic device when the window type of the first display window is the first type; a processing module, configured to move each of the second display windows to a display position corresponding to its window type based on a correspondence between each window type and a display position when the number of the second display windows is greater than a first threshold; The display module is used to display the first display window in the display interface.
9. The device according to claim 8, characterized in that The first determination module is further used for: In the case where it is detected that the first function control is selected, determining that a window display instruction is received; or, In the case of receiving a start instruction for any application, it is determined to receive the window display instruction.
10. The device according to claim 8, characterized in that The display module is also used for: When the area of the first remaining display region in the display interface is greater than or equal to the area of the first display window, the first display window is displayed in the first remaining display region.
11. The device according to claim 8, characterized in that The display module is also used for: When the area of the first remaining display region is smaller than the area of the first display window, at least one of the second display windows is translated based on a first preset overlappable area to obtain an updated second remaining display region; When the area of the second remaining display area is greater than or equal to the area of the first display window, or when the area of the second remaining display area is smaller than the area of the first display window and a first difference between the area of the second remaining display area and the area of the first display window is less than or equal to a second threshold, the first display window is displayed in the second remaining display area.
12. The device according to claim 11, characterized in that The display module is also used for: After acquiring the updated second remaining display area, when the area of the second remaining display area is smaller than the area of the first display window and the first difference is greater than a second threshold, updating at least one second display window of the second type to a third display window of the third type to acquire an updated third remaining display area, wherein the size of the display window of the second type is larger than the size of the display window of the third type, the area of the third remaining display area is equal to the area of the first display window, or the second difference between the area of the third remaining display area and the area of the first display window is less than or equal to the second threshold; The first display window is displayed in the third remaining display area.
13. The device according to claim 12, characterized in that The display module is also used for: Before updating at least one second display window of the second type to a third display window of the third type, determining the at least one second display window of the second type according to the type of application corresponding to each second display window and / or the update frequency of the content displayed in each second display window.
14. The device according to any one of claims 8 to 13, characterized in that: The display module is also used for: After the first display window is displayed in the display interface, each of the second display windows is restored to its corresponding historical display position after the first display window is closed.
15. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 7.
16. A computer-readable storage medium, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 7.