Window display control method and electronic equipment

By displaying and moving with the input focus, the operation difficulty problem caused by the overwriting of the window control button is solved, and more efficient window state control is achieved.

CN120428883APending Publication Date: 2025-08-05HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410168733.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-05
Publication Date
2025-08-05

AI Technical Summary

Technical Problem

During the multi-window display process, the window control buttons of some windows are covered by the upper window, which makes the user unable to operate directly, increasing the difficulty and time of user operations.

Method used

In response to the input focus being within the window hot zone, the electronic device displays the window control button near the focus to move with the focus position and reduces the user's operating distance.

Benefits of technology

It effectively reduces the difficulty of users operating window control buttons, simplifies the control of multi-window display status, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120428883A_ABST
    Figure CN120428883A_ABST
Patent Text Reader

Abstract

The invention provides a window display control method and electronic equipment, and relates to the technical field of terminals. The electronic equipment responds to the situation that the input focus is located in the window hot area range, the window control button is displayed near the input focus, the window control button moves along with the position of the input focus, and the difficulty of operating the window control button by a user is reduced. The method comprises the steps that a first window is displayed, a first window control button is displayed at a first preset position outside the first window, and the first window control button is used for controlling the display state of the first window. And in response to the fact that the input focus moves to a first position outside the first window to be displayed, moving the first window control button to a first preset distance near the first position to be displayed. Wherein the first position is located in a first window hot area, corresponding to the first window, outside the first window, and the first position is different from the first preset position.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a window display control method and an electronic device. Background Art

[0002] Generally, electronic devices (such as laptops and tablets) display application content in a window in response to a user's operation of launching an application. The window can be a full-screen window or a window of a preset size. A status bar at the top of the window displays window control buttons for controlling the display state of the current window. For example, the window control buttons include a close button for closing the window, a minimize button for minimizing the window, and a maximize button for maximizing the window.

[0003] Among them, during the multi-window display process, the window control buttons of some windows are covered by the windows displayed on the upper layer, resulting in that the user cannot directly operate the display status of these windows, affecting user use. Summary of the Invention

[0004] To address the aforementioned technical issues, the present application provides a window display control method and electronic device. The technical solution provided by the present application is that, in response to an input focus being within a window hotspot, the electronic device displays window control buttons near the input focus, enabling the window control buttons to move with the input focus position, thereby reducing the difficulty for users to operate the window control buttons.

[0005] In order to achieve the above technical objectives, this application provides the following technical solutions:

[0006] In a first aspect, a window display control method is provided for use in an electronic device. The method includes: displaying a first window, displaying a first window control button at a first preset position outside the first window, the first window control button being used to control the display state of the first window. In response to input focus moving to the first position outside the first window, the first window control button is moved to a position within a first preset distance near the first position. The first position is located in a first window hot zone outside the first window corresponding to the first window, and the first position is different from the first preset position.

[0007] In this way, the electronic device can display window control buttons near the input focus based on the display of the input focus in the window hot zone. Compared with displaying window control buttons in a fixed position, this can effectively reduce the distance the input focus moves when the user needs to control the window display state, reduce user operation difficulty, and shorten the time spent on window state control.

[0008] It should be understood that this application does not specify how far from the input focus the first window control button is. This application intends to explain that the position of the first window control button will change with the position of the input focus, and will be displayed in a position where the input focus can more easily reach it, rather than being fixed in one position, thereby effectively reducing the distance the input focus moves. As for the distance between the first window control button and the input focus, whether it is a fixed distance or a variable distance, those skilled in the art can set it according to actual needs, and this application does not impose any restrictions.

[0009] According to the first aspect, the first window is a focus window, and the electronic device also displays a second window, which is an out-of-focus window. The method also includes: in response to the input focus moving to a second position outside the second window, displaying a second window control button within a second preset distance near the second position, the second position being located outside the second window in a second window hot zone corresponding to the second window, and the second window control button being used to control the display status of the second window.

[0010] In this way, during the multi-window display process, the electronic device can also respond to the input focus position and display the window control buttons of the out-of-focus window near the input focus. The display window control buttons are not restricted by the window hierarchy, which simplifies the user's operation of operating the window display status of the out-of-focus window and improves the user experience.

[0011] According to the first aspect, or any implementation of the first aspect above, the first window partially or completely covers the second window, or the first window and the second window do not intersect.

[0012] For example, the first window is smaller than the second window, and the entire first window covers the second window, but the user can still see the second window outside the first window. Then, there is a need for the user to directly operate the display state of the second window. For another example, part of the first window covers the second window. For another example, the display area of the electronic device display is large, and the first window and the second window do not intersect with each other. Optionally, in response to the user indicating a click operation of inputting the focus within the display range of the first window, the electronic device determines that the first window is the focused window and the second window is the out-of-focus window.

[0013] According to the first aspect, or any implementation of the first aspect above, the electronic device further displays a third window, the third window being an out-of-focus window, and the method further includes: in response to the input focus moving to a third position displayed outside the second window and the third window, determining that the third position is located in an overlapping area of the second window hot zone and a third window hot zone outside the third window corresponding to the third window. Obtaining a hierarchical relationship between the second window and the third window. Based on the hierarchical relationship, displaying a second window control button within a second preset distance near the third position outside the second window located in the upper layer.

[0014] In this way, when the input focus is displayed in multiple window hot zones, the electronic device can also flexibly display the window control buttons according to the hierarchical relationship of the multiple windows to avoid the problem of window control button display conflict.

[0015] According to the first aspect, or any implementation of the first aspect above, there are multiple second window control buttons, and the second window control buttons are displayed within a second preset distance near the second position, including: when the display space within the second preset distance near the second position does not meet the display conditions of the multiple second window control buttons, the multiple second window control buttons are displayed in a preset manner, and the preset conditions include any one of the following: changing the display direction of the multiple second window control buttons, displaying the multiple second window control buttons on the upper layer of the window, and determining the portion of the multiple second window control buttons for display according to the display space.

[0016] In this way, by flexibly displaying the window control buttons, the problem of the window control buttons not being able to be displayed due to insufficient display space is avoided, and the display requirements of the window control buttons in various window display scenarios are met.

[0017] According to the first aspect, or any implementation of the first aspect above, the electronic device displays a fourth window in full screen. In response to the input focus moving to a fourth position in the status bar, the electronic device displays a third window control button within a third preset distance near the fourth position in the status bar. The third window control button is used to control the display state of the fourth window.

[0018] In this way, when an electronic device displays a window full screen, it can also display window control buttons near the input focus in the window status bar. This allows the user to control the window display state by moving the input focus a short distance when the full screen window display area is large. Furthermore, the window control buttons displayed in the window status bar do not affect the display of other content in the window and are not limited to the display layout within the window.

[0019] According to the first aspect, or any implementation of the first aspect above, the display state of the first window includes one or more of maximized display, minimized display, closed display, picture-in-picture display, and split-screen display.

[0020] According to the first aspect, or any implementation of the first aspect above, the first window hot zone is a display area within a preset range around the first window.

[0021] According to the first aspect, or any implementation of the first aspect above, a fifth window is displayed at a fixed position on the desktop of the electronic device, and the method also includes: in response to the input focus moving to a fifth position outside the fifth window, a fourth window control button is displayed within a fourth preset distance near the fifth position, the fifth position is located in a fourth window hot zone corresponding to the fifth window outside the fifth window, and the fourth window control button is used to control the display status of the fifth window and execute the shortcut function corresponding to the fifth window.

[0022] In this way, as the input focus position moves, the electronic device can control the display or non-display of the window control button corresponding to the taskbar, and control the display position of the window control button, thereby meeting the user's more flexible taskbar control needs.

[0023] In a second aspect, a window display control method is provided, which is applied to an electronic device, the method comprising: displaying a first window; displaying a first position outside the first window in response to input focus moving to the first window, displaying a first window control button near the first position, the first window control button being used to control the display state of the first window, the display state including window size or closing the window; displaying a second position outside the first window in response to input focus moving to the first window, stopping displaying the first window control button near the first position, and displaying the first window control button near the second position; the first position is located in a first window hot zone outside the first window corresponding to the first window, and the second position is located in a second window hot zone outside the first window corresponding to the first window.

[0024] It should be understood that there can be one window thermal zone or it can be divided into multiple zones. The first window thermal zone and the second window thermal zone can be the same thermal zone or they can belong to different thermal zones.

[0025] In some embodiments, the window hot zone is generally an area outside the window but close to the window edge; in some embodiments, the window hot zone may also be an area of regular or irregular shape outside the window including the window edge.

[0026] It should be understood that other implementations and beneficial effects of the second aspect may refer to the aforementioned first aspect.

[0027] In a third aspect, an electronic device is provided. The electronic device includes: a processor, a memory, and a display screen. The memory and the display screen are coupled to the processor. The memory is used to store computer program code. The computer program code includes computer instructions. When the processor reads the computer instructions from the memory, the electronic device executes: displaying a first window, displaying a first window control button at a first preset position outside the first window, and the first window control button is used to control the display state of the first window. In response to the input focus moving to the first position outside the first window, the first window control button is moved to a first preset distance near the first position for display. The first position is located in a first window hot zone corresponding to the first window outside the first window, and the first position is different from the first preset position.

[0028] According to a third aspect, a first window is a focused window, and the electronic device further displays a second window, wherein the second window is an out-of-focus window. When the processor reads computer instructions from the memory, the electronic device further causes the electronic device to execute: in response to the input focus moving to a second position outside the second window, displaying a second window control button within a second preset distance around the second position, the second position being located outside the second window in a second window hot zone corresponding to the second window, and the second window control button being used to control the display state of the second window.

[0029] According to the third aspect, or any implementation of the third aspect, the first window covers part or all of the second window, or the first window and the second window do not intersect.

[0030] According to the third aspect, or any implementation of the third aspect above, the electronic device further displays a third window, which is an out-of-focus window. When the processor reads computer instructions from the memory, the electronic device further executes: in response to the input focus moving to a third position display outside the second window and the third window, determining that the third position is located in an overlapping area of the second window hot zone and a third window hot zone outside the third window corresponding to the third window. Obtaining a hierarchical relationship between the second window and the third window. Based on the hierarchical relationship, displaying a second window control button within a second preset distance near the third position outside the second window located in the upper layer.

[0031] According to the third aspect, or any implementation of the third aspect above, there are multiple second window control buttons, and the second window control buttons are displayed within a second preset distance near the second position, including: when the display space within the second preset distance near the second position does not meet the display conditions of the multiple second window control buttons, the multiple second window control buttons are displayed in a preset manner, and the preset conditions include any one of the following: changing the display direction of the multiple second window control buttons, displaying the multiple second window control buttons on the upper layer of the window, and determining some of the window control buttons for display among the multiple second window control buttons based on the display space.

[0032] According to the third aspect, or any implementation of the third aspect above, the electronic device displays a fourth window in full screen. In response to the input focus moving to a fourth position in the status bar, the electronic device displays a third window control button within a third preset distance near the fourth position in the status bar. The third window control button is used to control the display state of the fourth window.

[0033] According to the third aspect, or any implementation of the third aspect above, the display state of the first window includes one or more of maximized display, minimized display, closed display, picture-in-picture display, and split-screen display.

[0034] According to the third aspect, or any implementation of the third aspect above, the first window hot zone is a display area within a preset range around the first window.

[0035] According to the third aspect, or any implementation method of the third aspect above, a fifth window is displayed at a fixed position on the desktop of the electronic device. When the processor reads computer instructions from the memory, the electronic device also executes: in response to the input focus moving to the fifth position outside the fifth window, a fourth window control button is displayed within a fourth preset distance near the fifth position, the fifth position is located in the fourth window hot zone corresponding to the fifth window outside the fifth window, and the fourth window control button is used to control the display status of the fifth window and execute the shortcut function corresponding to the fifth window.

[0036] In a fourth aspect, an electronic device is provided, the electronic device having the function of implementing the window display control method described in each of the above aspects and any possible implementation thereof. The function can be implemented by hardware, or by hardware executing corresponding software implementation. The hardware or software includes one or more modules corresponding to the above functions.

[0037] In a fifth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (also referred to as instructions or codes), which, when executed by an electronic device, causes the electronic device to perform the method of the first aspect or any one of the embodiments of the first aspect.

[0038] In a sixth aspect, a computer program product is provided. When the computer program product is run on an electronic device, the electronic device executes the methods of the aforementioned various aspects or any one of the embodiments.

[0039] In a seventh aspect, a circuit system is provided, the circuit system including a processing circuit, and the processing circuit is configured to execute the method of the aforementioned various aspects or any one of the embodiments.

[0040] In an eighth aspect, a chip system is provided, comprising at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor. When the at least one processor executes the instructions, the at least one processor executes the methods of the aforementioned aspects or any one of the embodiments.

[0041] The technical effects of the aforementioned aspects can be referenced with each other and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 Schematic diagram of the window display interface provided in the embodiment of this application Figure 1 ;

[0043] Figure 2 Schematic diagram of the window display interface provided in the embodiment of this application Figure 2 ;

[0044] Figure 3 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0045] Figure 4 Schematic diagram of the window control button display scene provided in the embodiment of the present application Figure 1 ;

[0046] Figure 5 Schematic diagram of the window control button display scene provided in the embodiment of the present application Figure 2 ;

[0047] Figure 6 Schematic diagram of the window control button display scene provided in the embodiment of the present application Figure 3 ;

[0048] Figure 7A Schematic diagram of the window control button display scene provided in the embodiment of the present application Figure 4 ;

[0049] Figure 7B Schematic diagram of the window control button display scene provided in the embodiment of the present application Figure 5 ;

[0050] Figure 8 Schematic diagram of the window control button display scene provided in the embodiment of the present application Figure 6 ;

[0051] Figure 9 Schematic diagram seven of the window control button display scene provided in an embodiment of the present application;

[0052] Figure 10 Schematic diagram of the window control button display scene provided in the embodiment of the present application Figure 8 ;

[0053] Figure 11 Schematic diagram of the window control button display scene provided in the embodiment of the present application Figure 9 ;

[0054] Figure 12 Schematic diagram of the window control button display scene provided in the embodiment of the present application Figure 10 ;

[0055] Figure 13 Schematic diagram of the window control button display scene provided in the embodiment of the present application Figure 10 one;

[0056] Figure 14 A flowchart of a window display control method provided in an embodiment of the present application;

[0057] Figure 15 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0058] The technical solutions in the embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to include expressions such as "one or more", unless there is a clear indication to the contrary in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two).

[0059] References to "one embodiment" or "some embodiments" etc. described in this specification mean that the specific features, structures or characteristics described in conjunction with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in another way. The term "connected" includes direct and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.

[0060] In the embodiments of this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.

[0061] In some embodiments, the electronic device displays application content through a window, and a window control button for controlling the window display status is displayed in the window status bar.

[0062] For example, Figure 1 As shown, the laptop displays a window 11. As indicated by reference numeral 12, a fixed number of window control buttons are displayed at a fixed position on the right side of the status bar of window 11. For example, the window control buttons include a close button for closing the window, a minimize button for minimizing the window, and a maximize button for maximizing the window. In response to user operations on the window control buttons, the electronic device can adjust the display state of window 11.

[0063] For example, Figure 2 As shown, the laptop displays a window 21, as indicated by reference numeral 22, and a fixed number of window control buttons are displayed at a fixed position on the left side of the status bar of window 21. Although these window control buttons are distinguished by a three-color light design, they can only control the minimization, maximization, and closing of the window.

[0064] It can be seen that in the display scenarios of the two window control buttons in the above examples, due to the fixed layout of the display content in the window, the number of window control buttons is limited, and the three display states of the fixed control window cannot achieve more flexible window display state control.

[0065] Furthermore, if the display screen of the electronic device is large and the window is displayed in full screen, it is difficult for the user to operate the window control button fixedly displayed in the upper left corner or the upper right corner of the window.

[0066] Furthermore, when an electronic device displays multiple windows, the window control buttons of some windows may be covered by the windows displayed above them, making it impossible for the user to directly operate the display status of these windows. For example, the user must first click on the covered window whose display status needs to be adjusted to make it the focused window and display it on top. Only then can the user operate the control buttons of the displayed window, which is quite cumbersome.

[0067] Therefore, in the window display control method provided in the embodiment of the present application, the electronic device displays a window control button near the cursor in response to the cursor being within the window hot zone, so that the window control button moves with the cursor position, reducing the difficulty for the user to operate the window control button.

[0068] Optionally, the window display control method provided in the embodiment of the present application is applied to an electronic device 100, which may be, for example, a computer, a tablet computer, a laptop computer, a mobile phone, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a wearable device, an artificial intelligence (AI) device, or other terminal device. The operating system installed on the electronic device 100 includes but is not limited to: This application does not limit the specific type of the electronic device 100 or the installed operating system.

[0069] Figure 3 Schematic diagram of the hardware structure of the electronic device 100 provided in an embodiment of the present application.

[0070] like Figure 3 As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0071] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0072] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0073] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0074] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0075] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0076] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to a touch sensor, a charger, a flash, a camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to a touch sensor via an I2C interface, enabling communication between the processor 110 and the touch sensor via the I2C bus interface, thereby enabling touch functionality of the electronic device 100.

[0077] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the electronic device 100. The processor 110 and the display 194 communicate via the DSI interface to implement the display function of the electronic device 100.

[0078] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.

[0079] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0080] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.

[0081] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0082] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0083] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0084] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0085] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs the sound signal through the audio device or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.

[0086] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0087] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0088] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0089] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be manufactured using a liquid crystal display (LCD), for example, an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Mini-LED, Micro-LED, Micro-OLED, quantum dot light-emitting diodes (QLED), etc. In some embodiments, electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

[0090] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0091] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

[0092] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.

[0093] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be set in the processor 110, or some functional modules of the audio module 170 can be set in the processor 110. The electronic device 100 can use the audio module 170, such as music playback and recording. The audio module 170 may include a speaker, a receiver, a microphone, a headphone jack, and an application processor to implement audio functions.

[0094] The sensor module 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.

[0095] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.

[0096] Motor 191 can generate vibration alerts. This can be used for incoming call vibration alerts or touch vibration feedback. Depending on the touch operation applied to different areas of the display 194, motor 191 can also generate different vibration feedback effects. Different application scenarios (e.g., time reminders, receiving messages, alarm clocks, gaming, etc.) can also correspond to different vibration feedback effects.

[0097] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.

[0098] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and disconnected from the electronic device 100 by inserting or removing the SIM card into or from the SIM card interface 195. The electronic device 100 may support one or N SIM card interfaces, where N is a positive integer greater than one.

[0099] In some embodiments, in response to a user's instruction to launch an application, the electronic device displays a window of the application. The window serves as a container for the application and can be used to display application content. In some examples, during the window display process, the user can quickly adjust the display state of the window using window control buttons. Optionally, the window control buttons include, for example, a close button for closing the window, a minimize button for minimizing the window, and a maximize button for maximizing the window.

[0100] It should be understood that the window control button is actually a group of buttons for controlling the window display state, and the number of window control buttons is at least 1. To simplify the description, the following describes a group of window control buttons as window control buttons, and no longer reflects the number of window control buttons.

[0101] Optionally, when a window control button is displayed within a window, it is limited by the window layout and can only be displayed in a fixed position. For example, the window control button is displayed in a fixed position in the upper right corner of the window's status bar. Based on this, the window display control method provided in the embodiment of the present application enables the window control button to be displayed outside the window. In this way, the display of the window control button is no longer limited by the window layout.

[0102] For example, Figure 4 As shown, the electronic device displays a window 41 and a window control button 42 for controlling the display state of the window 41. The window control button 42 is displayed outside the window 41. Optionally, the window control button 42 is displayed outside the window 41 at the upper right corner (or upper left corner) to meet the user's usage habits.

[0103] The terms "up", "down", "left" and "right" described in the following embodiments are all referenced to Figure 4 The directions shown are not described in detail below.

[0104] In some embodiments, a user controls the display content of an electronic device using a mouse (or trackpad), and the electronic device displays a cursor at the mouse focus position to indicate the user's current operation location. In some examples, to facilitate user control of window display status, window control buttons can be displayed near the cursor display position. This reduces the distance the cursor moves when the user needs to control the window display status, simplifying the user's operation.

[0105] In some examples, when the cursor is located in an area within a preset range outside the window, the electronic device determines that the current user intends to control the display state of the window and may display window control buttons near the cursor to facilitate user operation. Optionally, the cursor being located in an area within a preset range outside the window includes the cursor being entirely or partially located in an area within the preset range outside the window.

[0106] Optionally, an area within a preset range around the window can be described as a window hotspot. Optionally, part or all of the window control buttons are displayed within the window hotspot.

[0107] Optionally, the electronic device displays the window control button at a preset distance to the right (or left) of the cursor to conform to the user's usage habits. It should be understood that the electronic device may also display the window control button at any other position near the cursor.

[0108] Optionally, during the process of displaying a window by an electronic device, the window control button may be permanently displayed at a preset position outside the window (e.g., at the upper right corner outside the window), and subsequently, when the cursor is located in a window hot zone, the window control button is displayed at a corresponding position along with the cursor position. When the cursor is no longer displayed in the window hot zone, the electronic device instructs the window control button to be displayed at a preset position outside the window. Alternatively, during the process of displaying a window by an electronic device, the electronic device temporarily does not display the window control button, but waits until the cursor moves into the window hot zone, and then displays the window control button near the cursor.

[0109] For example, Figure 5 As shown in (a), the electronic device displays a window 51, and a window hot zone 52 is configured around the window 51. Optionally, a window control button 53 is displayed at the upper right corner outside the window 51. Optionally, part of the content of the window control button 53 is displayed in the window hot zone 52. It should be understood that the window control button 53 can also be displayed entirely in the window hot zone 52 or outside the window hot zone 52. Afterwards, as shown in FIG. Figure 5 As shown in (b), the electronic device moves the cursor 54 to the window hot zone 52 in response to the user operation and determines that the user may need to control the display state of the window 51. Figure 5 As shown in (c), the electronic device can move the window control button 53 to a position near the right side of the cursor 54 for display.

[0110] In this way, when the user intends to control the window display state, the electronic device can control the window control button to be displayed near the cursor, thereby reducing the movement distance of the cursor when controlling the window display state. For example, when the display screen of the electronic device is large, the window displayed by the electronic device is also large. For example, when the user operates the display content in the lower left corner of the window, the window display state needs to be adjusted. At this time, if the window control button is fixedly displayed in the upper right corner of the window, the user needs to move the cursor from the lower left corner of the window to the upper right corner of the window. The movement distance is long, and the user operation is difficult and time-consuming. In the window control method provided in the embodiment of the present application, the window control button can be directly displayed near the cursor, which effectively reduces the cursor movement distance, reduces the difficulty of user operation, and reduces the time-consuming window status control.

[0111] In some examples, displaying a cursor within a window hotspot includes moving the cursor to display within the window hotspot, and also includes operations such as clicking the cursor within the window hotspot. For example, in response to a user clicking within the window hotspot, the electronic device displays a window control button near the cursor for controlling the display state of the window corresponding to the window hotspot.

[0112] In some examples, electronic devices are equipped with stylus or touch functions. In these cases, the electronic device may not display a cursor. The electronic device can then determine the user's intent based on the detected stylus tip position, finger operation position, etc., and thus determine whether to move the display or display window control buttons.

[0113] For example, when an electronic device is displaying a window and detects that the stylus tip is hovering above a hot area of the window, it can determine that the user intends to control the window display state. In this case, the electronic device displays window control buttons near the hovering position of the stylus tip.

[0114] For another example, if the electronic device detects a user's touch operation within a window hotspot, it can determine that the user intends to control the window display state. In this case, the electronic device displays a window control button near the touch operation location.

[0115] The following uses the cursor operation scenario as an example to introduce in detail the window display control method provided in the embodiment of the present application. The implementation of other operation scenarios such as stylus and finger can refer to the implementation of the cursor operation scenario, and examples will not be given one by one.

[0116] In some embodiments, the electronic device determines, in response to a user operation, that window control buttons need to be displayed near the cursor, but insufficient display space is currently available near the cursor to fully display the window control buttons. The electronic device may adjust the layout of the window control buttons to facilitate display of the window control buttons.

[0117] For example, Figure 6As shown in (a), when the electronic device is displaying window 61, it detects that the user has moved the cursor 62 to the window hot zone 63, and determines that the user intends to control the window display state. However, the electronic device determines that the current display position of the cursor 62 is located in the lower right corner of the display area of the electronic device, and the display space between the right edge of the window 61 and the right edge of the display area of the electronic device does not meet the display conditions of the window control button. Then, if Figure 6 As shown by reference numeral 64 in (b), the electronic device can vertically arrange the three window control buttons that originally need to be arranged horizontally near the cursor 62, thereby avoiding the problem that the window control buttons cannot be displayed due to insufficient display space.

[0118] In some examples, the above description uses the example of the window control button being displayed near the cursor and outside the window as an example to illustrate the display process of the window control button. It should be understood that in some scenarios, when the cursor is in the window hot zone, the window control button can also be displayed near the cursor in the window. For example, Figure 6 In the scenario shown in (b), when the display space on the right side of the window is insufficient, the electronic device may also display the window control button on the left side of the cursor. In this case, the window control button is displayed in the window 62.

[0119] In some examples, when display space is insufficient, the electronic device may also display some window control buttons, such as window control buttons frequently used by the user, or window control buttons that are more suitable for the currently displayed window (e.g., if the current window is maximized, the maximize button may not be displayed). Optionally, other window control buttons that cannot be displayed temporarily may not be displayed or may be hidden. In the case of hidden display, the hidden window control buttons may be displayed in response to a user sliding operation on the window control area (e.g., a cursor sliding without clicking). The window control area is used to display window control buttons.

[0120] In some other examples, the method provided in the present application includes: displaying a first window; in response to the input focus moving to a first position outside the first window, displaying a first window control button near the first position, the first window control button being used to control the display state of the first window, the display state including the window size or closing the window; in response to the input focus moving to a second position outside the first window, displaying the first window control button, stopping displaying the first window control button near the first position, and displaying the first window control button near the second position; the first position is located in a first window hot zone corresponding to the first window outside the first window, and the second position is located in a second window hot zone corresponding to the first window outside the first window.

[0121] In this way, the display requirements of various window display scenarios can be met through the flexible display of window control buttons.

[0122] In some embodiments, the electronic device can implement multi-window display, with different windows displaying the same or different applications. For example, in response to user operations, the electronic device displays a document window and a browser window at the same time, making it convenient for the user to find relevant information through the browser while editing the document. In some examples, the windows displayed by the electronic device may overlap or not overlap, where the overlap includes partial overlap or full overlap. In some examples, when windows overlap, the window control buttons displayed outside the window may be covered by other windows located on the upper layer. Then, when the cursor moves into the window hot zone range of the covered window, the electronic device may also display the window control buttons corresponding to the covered window near the cursor, thereby avoiding the problem of being unable to directly control the window display state due to the window being covered.

[0123] Optionally, in a window overlay scenario, the topmost window is the focused window, meaning it receives cursor focus and can be operated directly by the user. One or more windows in the lower layers are out-of-focus windows, meaning they have lost cursor focus. To operate these windows, the user must first click on them to trigger them to gain focus and become the focused window, allowing them to operate.

[0124] For example, Figure 7A As shown in (a), the electronic device displays window 71 and window 72, wherein window 71 is a focused window displayed on the upper layer, window 72 is an out-of-focus window, and window 72 is partially covered by window 71.

[0125] In some examples, the electronic device displays the window control button at a preset position outside the window, such as the electronic device displays the window control button 73 at the upper right corner outside the window 71, and displays the window control button at the upper right corner outside the window 72. Among them, the window control button displayed at the upper right corner outside the window 72 is covered by the window 71 and cannot be seen directly by the user. In other examples, the electronic device only displays the window control button at a preset position outside the focus window. Alternatively, when the preset position outside the out-of-focus window is not covered, the electronic device also displays the window control button at the preset position. For example, if the electronic device displays multiple windows, and the display areas of the focus window and the out-of-focus window do not overlap, the electronic device may display the window control button for controlling the corresponding window at the preset positions outside the focus window and the out-of-focus window.

[0126] like Figure 7AAs shown in (a), since window 72 is partially covered by window 71, the user cannot see whether the window control button is displayed or not at the preset position. In order to prevent the user from being unable to directly operate the display state of window 72, the window control button can be displayed as the cursor moves within the window hot zone. Figure 7A As shown in (b), the electronic device detects that the cursor 73 moves into the window hot zone of the window 72 and determines that the user intends to control the window display state of the out-of-focus window 72. Figure 7A As shown in (c), the electronic device displays a window control button 74 for controlling the window display state of the window 72 on the right side of the cursor 73 and outside the window 72.

[0127] In this way, during the multi-window display process, the electronic device can also respond to the cursor position and display the window control buttons of the out-of-focus window near the cursor. The display window control buttons are not restricted by the window hierarchy, which simplifies the user's operation of operating the window display status of the out-of-focus window and improves the user experience.

[0128] In some embodiments, after the electronic device determines that a window control button for controlling the display status of an out-of-focus window needs to be displayed, it can determine the display position of the window control button to be displayed near the cursor based on information such as the display screen size, the size of each window, and the display position of each window.

[0129] For example, corresponding to Figure 7A In the scenario shown, the electronic device takes the upper left corner of the display screen (or the display area of the display screen) as the coordinate origin, the long side as the x-axis direction, and the short side as the y-axis direction to establish the following Figure 7B The electronic device detects that the cursor enters the window hot zone and obtains the cursor position (xCursor, yCursor).

[0130] In some examples, the window hotspot includes an area within a preset range around the window, including an area corresponding to the horizontal edge of the window and an area corresponding to the vertical edge of the window. It should be understood that the area corresponding to the horizontal edge of the window and the area corresponding to the vertical edge of the window may partially overlap. In some examples, when the cursor is located in the area corresponding to the horizontal edge of the window, the electronic device may display multiple window control buttons horizontally; when the cursor is located in the area corresponding to the vertical edge of the window, the electronic device may display multiple window control buttons vertically. Therefore, the electronic device can determine the display direction and display position of the window control buttons based on the position of the cursor in the window hotspot.

[0131] For example, Figure 7BAs shown in (a) in , the electronic device determines that the cursor is located in the area corresponding to the horizontal side of the window hot zone of window 72, and determines that window control buttons need to be displayed horizontally. The electronic device obtains that the width of the window control buttons to be displayed horizontally is w, the height is h, and the safety distance a between the window control buttons and other windows (for example, the default is 8 pixel points). It should be understood that the window control buttons to be displayed include at least one window control button, w is the sum of the widths required for the at least one window control button to be displayed horizontally, and h is the height of the at least one window control button. After that, the electronic device can determine the display position of the window control buttons through the display position determination rules described in steps 1.1 to 1.4 below. For example, after the electronic device determines the upper left corner coordinates of the window control buttons, it displays the window control buttons.

[0132] Step 1.1: Find the left and right edges of the window closest to the cursor on the horizontal line y = yCursor, and determine whether the width difference is sufficient to accommodate the display of the window control buttons. Among them, the abscissa of the left edge is xLeft, and the abscissa of the right edge is xRight. When there is no window on the left side of the cursor, xLeft = 0. That is, the left edge of the display screen is used as the left edge of the window closest to the cursor. When there is no window on the right side, xRight = screenWidth. That is, the right edge of the display screen is used as the right edge of the window closest to the cursor.

[0133] Step 1.2: In the vertical range of [xLeft, xRight], find the upper and lower edges of the window closest to the cursor, and determine whether the height difference deltaH is sufficient to accommodate the display of the window control buttons.

[0134] Step 1.3: If xRight - xLeft and deltaH are sufficient to accommodate the display of the control button area, that is, xRight - xLeft ≥ w + a and deltaH ≥ h + a. Then, the electronic device determines that the starting point of the upper left corner coordinates of the window button group is (xButton, yButton), where the abscissa xButton is the smaller value of xCursor and xRight - w - a, and the ordinate yButton is yCursor - h - a.

[0135] Step 1.4: If xRight - xLeft cannot accommodate the window control button area, that is, xRight - xLeft < w + a, or deltaH cannot accommodate the window control button area, that is, deltaH < h + a. Then, the electronic device can determine to overlay the window control buttons on the top layer for display, and the starting point of the upper left corner coordinates is (xCursor + a, yCursor - h - a).

[0136] Another example is, such as Figure 7BAs shown in (b) thereof, the electronic device determines that the cursor is located in the area corresponding to the vertical side of the window hot zone of window 72, and determines that window control buttons need to be displayed vertically. The electronic device obtains that the width of the window control button to be displayed vertically is h, the height is w, and the safety distance a between the window control button and other windows (for example, the default is 8 pixel points). It should be understood that the window control button to be displayed includes at least one window control button, h is the width of the at least one window control button, and h is the sum of the heights required for the at least one window control button after vertical display. After that, the electronic device can determine the display position of the window control button through the display position determination rules described in steps 2.1-step 2.4 below. For example, after the electronic device determines the upper left corner coordinates of the window control button, it displays the window control button.

[0137] Step 2.1: Find the upper and lower edges of the window closest to the cursor on the vertical line x = xCursor, and determine whether the width difference is sufficient to accommodate the display of the window control button. Among them, the ordinate of the upper edge is yUp, and the ordinate of the lower edge is yDown. When there is no window above the cursor, yUp = 0. That is, the upper edge of the display screen is used as the upper edge of the window closest to the cursor. When there is no window below the cursor, yDown = screenHeight. That is, the lower edge of the display screen is used as the upper edge of the window closest to the cursor.

[0138] Step 2.2: In the horizontal range of [yUp, yDown], find the left and right edges of the window closest to the cursor, and calculate whether the height difference deltaW is sufficient to accommodate the display of the window control button.

[0139] Step 2.3: If yDown - yUp and deltaW are sufficient to accommodate the control button area, that is, yDown - yUp ≥ w + a and deltaW ≥ h + a. Then, the electronic device determines that the starting point of the upper left corner coordinates of the window button group is (xButton, yButton), where the ordinate yButton is the smaller value between yCursor + a and yDown - w - a, and the abscissa xButton is xCursor - h - a.

[0140] Step 2.4: If yDown - yUp cannot accommodate the display of the control button area, that is, yDown - yUp < w + a, or deltaW cannot accommodate the display of the control button area, that is, deltaW < h + a. Then, the electronic device can determine to cover the window control button on the top layer for display, and the starting point of the upper left corner coordinates is (xCursor + a, yCursor - h - a).

[0141] In some examples, since the out-of-focus window is covered, the display area near the cursor may not be sufficient to display the window control button for controlling the out-of-focus window. Therefore, in order to avoid the displayed portion of the window control button covering the focus window, causing misunderstanding to the user, such as causing the user to misunderstand that the window control button is used to control the focus window. The electronic device can adjust the display order of different window control buttons, such as adjusting multiple window control buttons to be displayed vertically from top to bottom, or hiding some window control buttons, or displaying window control buttons at a location with a larger display space such as to the right / left / above of the cursor, or displaying some or all window control buttons in the out-of-focus window.

[0142] In other examples, the electronic device may also directly display the window control button above all windows. In this way, as long as the edge of an out-of-focus window can be found (such as the edge near the coordinates in the window hot zone where the cursor is located), the window control button can be displayed according to the starting point of the upper left corner of the coordinates (xCursor+a, yCursor-ha).

[0143] In some embodiments, an electronic device displays two or more out-of-focus windows, and the window hotspots of different out-of-focus windows may overlap. Then, when the cursor moves to an overlapping window hotspot, the electronic device determines the out-of-focus window located above and displays window control buttons for controlling the out-of-focus window above near the cursor. This avoids the problem of window control button display conflicts caused by the cursor being displayed in multiple window hotspots.

[0144] For example, Figure 8 As shown in (a), the electronic device displays window 81, window 82 and window 83. Among them, window 81 is the focus window, and window 82 and window 83 are out-of-focus windows. Figure 8 As shown in (b), the electronic device displays the cursor 84 at the position shown in the figure in response to the movement of the cursor 84. The electronic device determines that the position is both within the window hot zone of window 82 and within the window hot zone of window 83. The electronic device determines that window 82 is displayed on the upper layer of window 83. Then, the electronic device determines that the user is likely to try to operate the out-of-focus window located at the uppermost layer. Figure 8 As shown in (c) , the electronic device displays a window control button 85 for controlling the window display state of the window 82 near the cursor 84 .

[0145] It should be understood that when the cursor is displayed in a window hot zone of multiple out-of-focus windows, the electronic device may also display a window control button for controlling the out-of-focus window located at the bottom layer.

[0146] In some examples, when there are multiple out-of-focus windows, the electronic device may also determine the display position of the window control button according to the above-mentioned display position determination rule of the window control button.

[0147] In some embodiments, an electronic device displays a window in full screen. During the full screen display of a window, the entire display area of the electronic device's display screen is used to display the window, and there is no other display area outside the window that can be used to switch to display other content. In response to the cursor moving to the window status bar, the electronic device displays window control buttons for controlling the full screen window in the window status bar near the cursor.

[0148] It should be understood that the window status bar is located within the window and can be displayed at the top or bottom of the window. In addition, a full-screen display window includes a window that covers the entire display area of the electronic device, and in the case of a split-screen display of the electronic device, the full-screen window covers the corresponding split-screen display area.

[0149] Optionally, when the cursor is not displayed in the window status bar of a full-screen window, the window control button is not displayed; alternatively, the window control button is displayed at a default position (e.g., the rightmost position) of the window status bar. Subsequently, in response to the cursor moving to the window status bar, the window control button is displayed again, or the window control button is moved to the vicinity of the cursor and displayed.

[0150] For example, Figure 9 As shown in (a), during the process of full-screen display of window 91 by the electronic device, as shown in Figure 9 As shown in (b), the electronic device detects the user's operation of moving the cursor 92 to the window status bar 93, and determines that the user intends to control the window display state. Then, the electronic device can display a window control button 94 near the cursor 92 in the window status bar 93.

[0151] In this way, when an electronic device displays a window full-screen, it can also display window control buttons near the cursor in the window status bar. This allows the user to control the window display state by moving the cursor a short distance when the full-screen window display area is large. Furthermore, the window control buttons displayed in the window status bar do not affect the display of other content in the window and are not limited to the display layout within the window.

[0152] In some embodiments, a taskbar is configured below the display area of the electronic device, and the taskbar is used to display the identifiers of running windows or identifiers of frequently used applications (or tools) by the user, etc. In some examples, when the electronic device is displaying a window in full screen, in response to the user moving the cursor to a blank area in the taskbar, a window control button for controlling the current full-screen window may be displayed near the cursor.

[0153] It should be understood that the task bar can also be described as a bottom dock bar, a dock bar, etc. The task bar occupies the entire bottom space or part of the bottom space of the display area of the electronic device.

[0154] For example, Figure 10 As shown, when the electronic device displays the window 1001 in full screen, it detects the user moving the cursor 1002 to the blank display area in the task bar 1003 and displays a window control button 1004 near the cursor 1002 in the task bar 1003.

[0155] In this way, when the electronic device displays a window in full screen, it can also display a window control button near the cursor in the taskbar, so that when the full screen window display area is large, the user can control the window display status by moving the cursor a small distance.

[0156] In some embodiments, the window display state includes maximized display, minimized display, and closed display as described above, and may also include other display states, such as picture-in-picture display, split-screen display, etc. Correspondingly, the window control button may also include a picture-in-picture button, a split-screen button, etc. It should be understood that with the development of terminal technology, the window control button may also be expanded to include buttons with other control functions, and the embodiments of the present application are not limited to this. In addition, the window control button can be used to control the window display state and can also be used to implement other control functions of the window, such as a button for quickly switching to the application homepage.

[0157] For example, Figure 11 As shown in (a), the electronic device displays a video window 111, and a window control button 112 is displayed at a default position in the upper right corner outside the video window 111. The window control button 112 includes a picture-in-picture button 123. It should be understood that the window control button 112 can move its display position as the cursor moves in the window hot zone. The electronic device detects the user's operation on the picture-in-picture button 123, as shown in FIG. Figure 11 As shown in (b), the electronic device can display a picture-in-picture window 124.

[0158] In this way, the electronic device displays the window control buttons outside the window, and the display of the window control buttons does not occupy the internal space of the window, so there is no need to be limited to the display layout within the window, and the window control buttons can be freely expanded.

[0159] Optionally, the electronic device displays a window control area for displaying window control buttons. The display content in the window control area can be freely expanded according to the control function corresponding to the window. Optionally, the display shape and size of the window control area can also be adaptively adjusted according to the size of the display area.

[0160] In some embodiments, the windows displayed by the electronic device include not only application windows and other windows corresponding to a single application or tool, but also windows corresponding to multiple applications, tools, etc., such as a taskbar. Optionally, window control buttons can be used to control the corresponding windows, as well as the content in the corresponding windows. For example, the taskbar can be used to display the identifier of the running window, or the identifier of the user's commonly used tools (or applications). The window control buttons corresponding to the taskbar can be used to control hiding of the taskbar, global search, entering the task center or application center, minimizing all running application (or tool) windows, displaying all running application windows (including minimized application windows running in the background), etc. Among them, the global search includes searching in all storage locations of the electronic device.

[0161] For example, Figure 12 As shown in (a), the electronic device displays a task bar 121, which displays the application identifiers corresponding to the two application windows currently being displayed, as well as identifiers of commonly used applications added by other users. Figure 12 As shown in (b), the electronic device detects the user's operation of moving the cursor 122 to the window hot zone of the task bar 121, as shown in FIG. Figure 12 As shown in (c), the electronic device displays window control buttons near the cursor 122, such as a minimize button 123 and a search button 124.

[0162] For example, Figure 13 As shown in (a), the electronic device detects the user's operation on the minimize button 123, such as Figure 13 As shown in (b), the electronic device minimizes all currently running windows. This effectively simplifies user operations compared to the user individually controlling the display status of each window.

[0163] In this way, as the cursor position moves, the electronic device can control the display or non-display of the window control button corresponding to the taskbar, and control the display position of the window control button, thereby meeting the user's more flexible taskbar control needs.

[0164] In some embodiments, in response to displaying a cursor in a window hotspot, the electronic device displays a window control button near the cursor, and if the electronic device does not detect a user operation on the window control button within a preset time, the electronic device may determine that the user does not intend to control the window and may stop displaying the window control button.

[0165] In some examples, in response to a cursor being displayed in a window hotspot, the electronic device moves a window control button displayed at a preset position outside the window to a position near the cursor, and if no user operation on the window control button is detected within a preset time, the electronic device moves the window control button back to the preset position outside the window.

[0166] In this way, the display of the window control button caused by the user's misoperation is avoided, which affects the user's other operations.

[0167] Figure 14 This is a flow chart of a window display control method provided by an embodiment of the present application. Figure 14 The specific order below is for limitation only. It should be understood that in other embodiments, the order of some steps in the method can be interchanged according to actual needs, or some steps can be omitted or deleted. The method includes the following steps:

[0168] S1401: Display a first window, and display a first window control button at a first preset position outside the first window, where the first window control button is used to control the display state of the first window.

[0169] The display state of the first window includes one or more of maximized display, minimized display, closed display, picture-in-picture display, and split-screen display.

[0170] Exemplarily, the first window control buttons include a close button for closing the first window, a minimize button for minimizing the first window, a maximize button for maximizing the first window, and the like.

[0171] For example, in response to a user's operation of starting an application, the electronic device displays a first window, where the first window is used to display application content.

[0172] S1402. In response to the input focus being moved to a first position outside the first window, the first window control button is moved to a first preset distance near the first position for display, the first position being located in a first window hot zone outside the first window corresponding to the first window, and the first position being different from the first preset position.

[0173] The first window hot zone is a display area within a preset range outside the first window.

[0174] For example, Figure 5 As shown in (a), the electronic device displays a window 51 (such as the first window), and a window hot zone 52 (such as the first window hot zone) is configured around the window 51. Optionally, a window control button 53 (such as the first window control button) is displayed at the upper right corner outside the window 51 (such as the first preset position). Figure 5 As shown in (b), in response to the user operation, the electronic device moves the cursor 54 (such as the input focus) to the first position in the window hot zone 52 for display, and it can be determined that the user may need to control the display state of the window 51. Then, Figure 5As shown in (c), the electronic device can move the window control button 53 to a position near the right side of the cursor 54 (ie, near the first position).

[0175] In this way, when the user intends to control the window display state, the electronic device can control the window control button to be displayed near the input focus, thereby reducing the moving distance of the input focus when controlling the window display state. For example, when the display screen of the electronic device is large, the window displayed by the electronic device is also large. For example, when the user operates the display content in the lower left corner of the window, the window display state needs to be adjusted. At this time, if the window control button is fixedly displayed in the upper right corner of the window, the user needs to move the input focus from the lower left corner of the window to the upper right corner of the window. The moving distance is long, and the user operation is difficult and time-consuming. In the window control method provided in the embodiment of the present application, the window control button can be directly displayed near the input focus, which effectively reduces the moving distance of the input focus, reduces the difficulty of user operation, and reduces the time-consuming window status control.

[0176] In some embodiments, an electronic device displays a first window and a second window. The first window is a focused window, and the second window is an out-of-focus window. In response to input focus moving to a second position outside the second window, a second window control button is displayed within a second preset distance from the second position. The second position is located outside the second window in a second window hot zone corresponding to the second window, and the second window control button is used to control the display state of the second window.

[0177] In some examples, the first window partially or completely covers the second window, or the first window and the second window do not intersect. For example, the first window is smaller than the second window, and the entire first window covers the second window, but the user can still see the second window outside the first window. Then, there is a need for the user to directly operate the display state of the second window. For another example, part of the first window covers the second window. For another example, the display area of the electronic device display is larger, and the first window and the second window do not intersect with each other. Optionally, in response to the user indicating a click operation of the input focus within the display range of the first window, the electronic device determines that the first window is the focus window and the second window is the out-of-focus window.

[0178] For example, Figure 7A As shown in (a), window 71 (such as the first window) partially covers window 72 (such as the second window). Figure 7A As shown in (b), the electronic device detects that the cursor 73 (such as the input focus) moves to the second position in the second window hot zone of the window 72 and determines that the user intends to control the window display state of the out-of-focus window 72. Figure 7A As shown in (c), the electronic device displays a window control button 74 for controlling the window display state of the window 72 on the right side of the cursor 73 (ie, near the second position) and outside the window 72.

[0179] In this way, during the multi-window display process, the electronic device can also respond to the input focus position and display the window control buttons of the out-of-focus window near the input focus. The display window control buttons are not restricted by the window hierarchy, which simplifies the user's operation of operating the window display status of the out-of-focus window and improves the user experience.

[0180] In some embodiments, there are multiple second window control buttons. When the display space within a second preset distance near the second position does not meet the display conditions of the multiple second window control buttons, the multiple second window control buttons are displayed in a preset manner. The preset conditions include any one of the following: changing the display direction of the multiple second window control buttons, displaying the multiple second window control buttons on the upper layer of the window, and determining some of the window control buttons for display among the multiple second window control buttons based on the display space.

[0181] In this way, by flexibly displaying the window control buttons, the problem of the window control buttons not being able to be displayed due to insufficient display space is avoided, and the display requirements of the window control buttons in various window display scenarios are met.

[0182] In some embodiments, the electronic device displays a first window, a second window, and a third window. The first window is a focused window, the second window is an out-of-focus window, and the third window is also an out-of-focus window. In response to the input focus moving to a third position displayed outside the second window and the third window, it is determined that the third position is located in an overlapping area between the second window hot zone and the third window hot zone corresponding to the third window outside the third window. Then, the electronic device obtains the hierarchical relationship between the second window and the third window. Based on the hierarchical relationship, the electronic device displays the second window control button within a second preset distance near the third position outside the second window located in the upper layer.

[0183] For example, Figure 8 As shown in (a), the electronic device displays window 81 (such as the first window), window 82 (such as the second window) and window 83 (such as the third window). Among them, window 81 is the focus window, and window 82 and window 83 are out-of-focus windows. Figure 8 As shown in (b), the electronic device displays the cursor 84 at the illustrated position in response to the movement of the cursor 84 (such as the input focus). The electronic device determines that the position is both within the window hot zone of window 82 and within the window hot zone of window 83. That is, the cursor 84 is located in the overlapping area of the window hot zones of window 82 and window 83. Then, the electronic device determines that the hierarchical relationship of window 82 is located in window 83, such as window 82 is located on the upper layer of window 83. Then, as Figure 8 As shown in (c) , the electronic device displays a window control button 85 for controlling the window display state of the window 82 near the cursor 84 .

[0184] In this way, when the input focus is displayed in multiple window hot zones, the electronic device can also display window control buttons according to the hierarchical relationship of the multiple windows, thereby avoiding the problem of window control button display conflict.

[0185] In some embodiments, the electronic device displays the fourth window in full screen. In response to the input focus moving to a fourth position in the status bar, the electronic device displays a third window control button within a third preset distance from the fourth position in the status bar. The third window control button is used to control the display state of the fourth window.

[0186] For example, Figure 9 As shown in (a), during the process of full-screen display of window 91 (such as the fourth window) by the electronic device, as shown in FIG. Figure 9 As shown in (b), it is detected that the user moves the cursor 92 (such as input focus) to the window status bar 93. Then, the electronic device can display a window control button 94 (such as a third window control button) near the cursor 92 in the window status bar 93.

[0187] In this way, when an electronic device displays a window full screen, it can also display window control buttons near the input focus in the window status bar. This allows the user to control the window display state by moving the input focus a short distance when the full screen window display area is large. Furthermore, the window control buttons displayed in the window status bar do not affect the display of other content in the window and are not limited to the display layout within the window.

[0188] In some embodiments, a fifth window is displayed at a fixed position on the desktop of the electronic device. In response to the input focus moving to a fifth position outside the fifth window, the electronic device displays a fourth window control button within a fourth preset distance around the fifth position, the fifth position being located outside the fifth window in a fourth window hot zone corresponding to the fifth window, the fourth window control button being used to control the display state of the fifth window and execute a shortcut function corresponding to the fifth window.

[0189] For example, the fourth window is a taskbar window. Figure 12 As shown in (a), the electronic device displays a task bar 121, which displays the application identifiers corresponding to the two application windows currently being displayed, as well as identifiers of commonly used applications added by other users. Figure 12 As shown in (b), the electronic device detects that the user moves the cursor 122 (such as input focus) to the fourth position of the operation in the fourth window hot zone of the task bar 121, such as Figure 12As shown in (c), the electronic device displays a fourth window control button near the cursor 122, such as a minimize button 123 and a search button 124. The minimize button 123 is used to instruct the electronic device to minimize all currently running windows.

[0190] In this way, as the input focus position moves, the electronic device can control the display or non-display of the window control button corresponding to the taskbar, and control the display position of the window control button, thereby meeting the user's more flexible taskbar control needs.

[0191] Combination of the above Figure 4-Figure 14 The window display control method provided by the embodiment of the present application is described in detail. Figure 15 The electronic device provided by the embodiments of the present application is described in detail.

[0192] In one possible design, Figure 15 This is a schematic diagram of the structure of the electronic device provided in the embodiment of the present application. Figure 15 As shown, the electronic device 1500 may include: a display unit 1501, a processing unit 1502, and a transceiver unit 1503. The electronic device 1500 may be used to implement the functions of the electronic device involved in the above method embodiments.

[0193] Optionally, the display unit 1501 is used to support the electronic device 1500 to display interface content; and / or support the electronic device 1500 to execute Figure 14 S1401 in.

[0194] Optionally, the processing unit 1502 is configured to support the electronic device 1500 in executing Figure 14 S1402 in.

[0195] Optionally, the transceiver unit 1503 is used to support the electronic device 1500 to execute Figure 14 S1402 in.

[0196] The transceiver unit may include a receiving unit and a transmitting unit, and may be implemented by a transceiver or transceiver-related circuit components, and may be a transceiver or a transceiver module. The operations and / or functions of each unit in the electronic device 1500 are respectively to implement the corresponding processes of the window display control method described in the above method embodiment. All relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional unit. For the sake of brevity, they are not repeated here.

[0197] Optionally, Figure 15 The electronic device 1500 shown may further include a storage unit ( Figure 15(not shown), the storage unit stores a program or instruction. When the display unit 1501, the processing unit 1502 and the transceiver unit 1503 execute the program or instruction, Figure 15 The electronic device 1500 shown can execute the window display control method described in the above method embodiment.

[0198] Figure 15 The technical effects of the electronic device 1500 shown can refer to the technical effects of the window display control method described in the above method embodiment, and will not be repeated here.

[0199] In addition to being in the form of the electronic device 1500, the technical solution provided in this application may also be a functional unit or chip in the electronic device, or a device used in conjunction with the electronic device.

[0200] An embodiment of the present application also provides a chip system, including: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the chip system implements the method in any of the above method embodiments.

[0201] Optionally, there may be one or more processors in the chip system. The processor may be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.

[0202] Optionally, the memory in the chip system may be one or more. The memory may be integrated with the processor or may be provided separately from the processor, which is not limited in the embodiments of the present application. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or provided on different chips. The embodiments of the present application do not specifically limit the type of memory or the configuration of the memory and the processor.

[0203] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.

[0204] It should be understood that each step in the above method embodiment can be completed by hardware integrated logic circuits in a processor or by software instructions. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.

[0205] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer, the computer executes the above-mentioned related steps to implement the window display control method in the above-mentioned embodiment.

[0206] An embodiment of the present application further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the window display control method in the above-mentioned embodiment.

[0207] In addition, embodiments of the present application further provide a device. Specifically, the device may be a component or module, and may include one or more processors and a memory connected to each other. The memory is configured to store a computer program. When the computer program is executed by one or more processors, the device performs the window display control method described in each of the aforementioned method embodiments.

[0208] The apparatus, computer-readable storage medium, computer program product, or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding methods provided above, and will not be repeated here.

[0209] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in a hardware manner or can be implemented by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a random access memory (RAM), a flash memory, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a register, a hard disk, a mobile hard disk, a read-only compact disc (CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC).

[0210] Through the description of the above embodiments, those skilled in the art will clearly understand that for the sake of convenience and brevity, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed; that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working processes of the above-mentioned systems, devices, and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0211] In the several embodiments provided in this application, it should be understood that the disclosed methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of modules or units, which can be electrical, mechanical or other forms.

[0212] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0213] Computer-readable storage media include, but are not limited to, any of the following: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and other media that can store program code.

[0214] The above is only a specific embodiment of the present application, but the scope of protection of this application is not limited to this. Any changes or substitutions within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A window display control method, characterized in that: Applied to electronic equipment, the method includes: Displaying a first window, and displaying a first window control button at a first preset position outside the first window, wherein the first window control button is used to control a display state of the first window; In response to the input focus being moved to a first position outside the first window, the first window control button is moved to a first preset distance near the first position for display, the first position being located in a first window hot zone outside the first window corresponding to the first window, and the first position being different from the first preset position.

2. The method according to claim 1, characterized in that The first window is a focused window, the electronic device further displays a second window, and the second window is an out-of-focus window. The method further includes: In response to the input focus moving to a second position outside the second window, a second window control button is displayed within a second preset distance near the second position, the second position is located in a second window hot zone corresponding to the second window outside the second window, and the second window control button is used to control the display status of the second window.

3. The method according to claim 2, characterized in that The first window partially or completely covers the second window, or the first window and the second window do not intersect.

4. The method according to claim 2 or 3, characterized in that The electronic device further displays a third window, where the third window is an out-of-focus window. The method further includes: In response to the input focus moving to a third position displayed outside the second window and the third window, determining that the third position is located in an overlapping area of the second window hot zone and a third window hot zone outside the third window corresponding to the third window; Obtaining a hierarchical relationship between the second window and the third window; Based on the hierarchical relationship, the second window control button is displayed within a second preset distance near the third position outside the second window located in the upper layer.

5. The method according to any one of claims 2 to 4, characterized in that: There are multiple second window control buttons, and displaying the second window control buttons within a second preset distance near the second position includes: When the display space within a second preset distance near the second position does not meet the display conditions of the multiple second window control buttons, the multiple second window control buttons are displayed in a preset manner, and the preset conditions include any one of the following: changing the display direction of the multiple second window control buttons, displaying the multiple second window control buttons on the upper layer of the window, and determining part of the window control buttons for display among the multiple second window control buttons based on the display space.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: Display the fourth window in full screen; In response to the input focus moving to a fourth position in the status bar, a third window control button is displayed within a third preset distance near the fourth position in the status bar, and the third window control button is used to control the display state of the fourth window.

7. The method according to any one of claims 1 to 6, characterized in that The display status of the first window includes one or more of maximized display, minimized display, closed display, picture-in-picture display, and split-screen display.

8. The method according to any one of claims 1 to 7, characterized in that The first window hot zone is a display area within a preset range around the first window.

9. The method according to any one of claims 1 to 8, characterized in that A fifth window is displayed at a fixed position on the desktop of the electronic device, and the method further includes: In response to the input focus moving to a fifth position outside the fifth window, a fourth window control button is displayed within a fourth preset distance near the fifth position, the fifth position being located in a fourth window hot zone corresponding to the fifth window outside the fifth window, and the fourth window control button being used to control the display status of the fifth window and execute a shortcut function corresponding to the fifth window.

10. A window display control method, characterized in that: Applied to electronic equipment, the method includes: Display the first window; In response to the input focus moving to a first position outside the first window, displaying a first window control button near the first position, the first window control button being used to control a display state of the first window, the display state including window size or closing the window; In response to the input focus moving to a second position outside the first window, stopping displaying the first window control button near the first position and displaying the first window control button near the second position; The first position is located outside the first window in a first window hot zone corresponding to the first window, and the second position is located outside the first window in a second window hot zone corresponding to the first window.

11. An electronic device, characterized in that: include: A processor, a memory and a display screen, wherein the memory and the display screen are coupled to the processor, the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor reads the computer instructions from the memory, the electronic device executes the method according to any one of claims 1 to 10.

12. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a computer program, and when the computer program is run on an electronic device, the electronic device is caused to perform the method according to any one of claims 1 to 10.

13. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to perform the method according to any one of claims 1 to 10.