Method for adjusting window size, electronic equipment and related device

By increasing the hot zone and combining keyboard keys and visual prompts, the problem of difficulty in window size adjustment in the prior art is solved, and simple window size adjustment and improved user experience is achieved.

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

Patent Information

Application Number
CN202410173447.2
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

In the prior art, users need to accurately move the mouse cursor to the edge or diagonal of the window to adjust the window size, which is difficult to operate and poor user experience.

Method used

By increasing the hot zone used to trigger the adjustment window size and combining preset keys on the keyboard, users can trigger the adjustment by simply placing the mouse cursor in the hot zone, and provide visual prompts such as cursor style changes or highlighted areas to simplify operations.

Benefits of technology

Reduce the mouse cursor movement path, simplify window size adjustment operations, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120428901A_ABST
    Figure CN120428901A_ABST
Patent Text Reader

Abstract

The invention provides a window size adjusting method, electronic equipment and a related device.In the method, the electronic equipment displays a user interface, the user interface comprises a first window, and the first window occupies a partial area of the user interface. Wherein in response to the situation that a user presses a preset key on the keyboard and does not release the hand, when the mouse cursor is located outside the first window, the electronic equipment can adjust the size of the first window in response to the operation of dragging the mouse cursor. In the application, the user can conveniently adjust the window size by operating the keyboard and the mouse cursor, and the user experience is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of terminal technology, and in particular to a method for adjusting window size, an electronic device, and related devices. Background Art

[0002] Electronic devices can display windows on an interface, and users can use a mouse to zoom in and out of the window to adjust its size. For example, a user can move the mouse cursor to the edge of the window, wait for the mouse cursor to change to a zoomed-in style, and then press the mouse button and drag the edge of the window to zoom in and out. However, this method requires the user to precisely move the mouse cursor to the edge of the window to trigger the window resizing, making it difficult for the user to operate and resulting in a poor user experience. Summary of the Invention

[0003] The embodiments of the present application provide a method for adjusting window size, an electronic device, and related devices. A user can conveniently adjust the window size by operating the keyboard and mouse cursor, providing a high user experience.

[0004] In a first aspect, an embodiment of the present application provides a method for adjusting window size, wherein an electronic device displays a user interface, the user interface including a first window, and the first window occupying a portion of the user interface. The user interface may include a desktop and / or an application interface, and the embodiment of the present application does not limit the content displayed in the user interface. When the electronic device displays the user interface, in response to a user pressing a preset key on a keyboard and not releasing it, when a mouse cursor is outside the first window, in response to an operation of dragging the mouse cursor, the electronic device may adjust the size of the first window.

[0005] In some embodiments, the electronic device can be connected to a keyboard and a mouse respectively. In this way, the user can operate the preset keys on the keyboard, and in addition, the user can also operate the mouse to drag the mouse cursor.

[0006] In some embodiments, the electronic device may include a keyboard, and the electronic device is connected to a mouse. In this way, the user can operate the preset keys on the keyboard, and in addition, the user can also operate the mouse to drag the mouse cursor.

[0007] In some embodiments, the electronic device may further include a touchpad. Based on the above two examples, the user may operate the preset keys on the keyboard. In addition, the user may also operate the mouse or touchpad to drag the mouse cursor.

[0008] In an embodiment of the present application, the hot zone for triggering window resizing can be enlarged, and combined with a preset key on the keyboard, when the user operates the preset key on the keyboard, as long as the mouse cursor is within the hot zone, the window resizing can be triggered. The user does not need to precisely move the mouse cursor to the edge or diagonal of the window, which simplifies the operation. In addition, because the hot zone is enlarged, the path of the mouse cursor movement is correspondingly reduced, which can facilitate the user to operate the mouse or touchpad and improve the user experience. Among them, the hot zone can be regarded as the area outside the first window.

[0009] In one possible implementation, in response to the user pressing a preset key on the keyboard and not releasing it, when the mouse cursor is outside the first window, the method further includes: the electronic device outputting a first prompt message, wherein the first prompt message is used to indicate that dragging the mouse cursor is used to adjust the size of the first window.

[0010] When the user presses a preset key on the keyboard and does not release it, and the mouse cursor is outside the first window, the user can trigger the electronic device to adjust the window size by dragging the mouse cursor. In this implementation, when the user presses a preset key on the keyboard and does not release it, and the mouse cursor is outside the first window, the electronic device can output a first prompt message to prompt the user to adjust the window size by dragging the mouse cursor.

[0011] In this implementation, for users who do not know or understand the method for adjusting the window size, an effective prompt can be provided. When the user sees the first prompt information, he or she can know that the window size can be adjusted by dragging the mouse cursor.

[0012] In some embodiments, the first prompt information includes any one of the following:

[0013] A prompt box containing text information; or

[0014] The mouse cursor changes from a first style to a second style; or,

[0015] Highlight the area where the mouse cursor is located.

[0016] Based on the first prompt information described above, embodiments of the present application can provide various types of first prompt information to effectively prompt the user to adjust the window size by dragging the mouse cursor. The electronic device can prompt the user to adjust the window size by dragging the mouse cursor by displaying a prompt box, changing the style of the mouse cursor, or highlighting the area where the mouse cursor is located.

[0017] The following describes the specific process of the user dragging the mouse cursor to adjust the size of the first window:

[0018] First, when a user presses a preset key on a keyboard and does not release the key, and a mouse cursor is outside the first window, and the mouse cursor is in a first direction of the first window, the electronic device can adjust the size of the first window in the first direction. In some embodiments, the first direction can be any direction of the first window.

[0019] Exemplarily, when the first window is rectangular, the first direction is the width direction or height direction of the first window. The embodiment of the present application does not display the size and shape of the first window. For example, the first window can be circular, hexagonal, octagonal, etc. Taking the first window as a regular hexagon as an example, the first direction of the first window can be: the direction of any two centrally symmetrical sides of the regular hexagon. Taking the first window as a circle as an example, the first direction of the first window can be any diameter direction passing through the center of the circle. The embodiment of the present application does not exhaustively enumerate the first direction of the first window.

[0020] Secondly, the first window includes a first column and a second column, and the first column and the second column are columns in the first direction. In this scenario, when the user presses a preset key on the keyboard and does not release it, and the mouse cursor is outside the first window, and the mouse cursor is in the first direction of the first window, and when the mouse cursor is close to the first column, the electronic device can adjust the size of the first column in the first direction; or,

[0021] When the user presses a preset key on the keyboard and does not release it, and the mouse cursor is outside the first window, and the mouse cursor is in the first direction of the first window, and when the position of the mouse cursor is close to the second column, the electronic device can adjust the size of the second column in the first direction.

[0022] In this scenario, when the electronic device adjusts the size of the first column or the second column in the first direction, when the size of the first column in the first direction is shortened to a first threshold, the electronic device may not display the first column in the first window; or, when the electronic device adjusts the size of the first column or the second column in the first direction, when the size of the second column in the first direction is shortened to the first threshold, the electronic device may not display the second column in the first window.

[0023] Third, when the user presses a preset key on the keyboard and does not release it, and the mouse cursor is outside the first window, and the mouse cursor is in a second direction of the first window, the electronic device can proportionally scale the first window, where the second direction is different from the first direction.

[0024] Exemplarily, when the first window is rectangular, the second direction is a diagonal direction of the first window.

[0025] In one possible implementation, when the electronic device is in the process of proportionally enlarging the first window, when the first edge of the first window reaches the first edge of the user interface and the second edge of the first window does not reach the second edge of the user interface, the electronic device can output a second prompt message, and the second prompt message indicates that continuing to move the mouse will not trigger proportional enlargement of the first window.

[0026] In one possible implementation, when the electronic device is in the process of proportionally enlarging the first window, when the first edge of the first window reaches the first edge of the user interface and the second edge of the first window does not reach the second edge of the user interface, the size of the first window is adjusted toward the second edge of the user interface.

[0027] In this scenario, when the electronic device is in the process of proportionally enlarging the first window, when one edge of the first window reaches the corresponding edge of the user interface, but the other edge of the first window does not reach the corresponding edge of the user interface, the electronic device can output a second prompt message, or the electronic device continues to adjust the size of the first window.

[0028] In addition, in an embodiment of the present application, in order to prompt the user to adjust the window size using the method provided in the embodiment of the present application, in some embodiments, when the electronic device displays a user interface, the user interface includes a first window, and the first window occupies part of the area of the user interface. When the user operates the mouse or touchpad so that the mouse cursor moves to the edge of the first window, the electronic device can output a third prompt message. The third prompt message indicates: operating the preset button on the keyboard and dragging the mouse cursor are used to trigger the adjustment of the size of the first window. In this way, when the user sees the third prompt message, he knows that the size of the first window can be adjusted using the method provided in the embodiment of the present application.

[0029] In one possible implementation, in response to a user pressing a preset key on a keyboard and not releasing the key, when the mouse cursor is outside the first window, the electronic device may output a first prompt message. Specifically, when the first prompt message includes: when the mouse cursor changes from a first style to a second style, the second style of the mouse cursor is related to the position of the mouse cursor.

[0030] Exemplarily, the second style is used to indicate adjusting the size of the first window. The first style and the second style are different. The first style and the second style have at least one of the following differences: color, size, form, shape, etc. Exemplarily, the first style is a single-arrow cursor and the second style is a double-arrow cursor, or the first style is a white single-arrow cursor and the second style is a black single-arrow cursor. The embodiments of the present application do not limit the first style and the second style. In some embodiments, in order not to change the current user's habit of operating the mouse cursor to adjust the size of the first window, for example, the first style can be a single-arrow cursor and the second style can be a double-arrow cursor.

[0031] For example, when the first window is rectangular and the mouse cursor is in a first direction outside the first window, the mouse cursor is in a first style, for example, a single-arrow cursor. In response to the user pressing a preset key on the keyboard and not releasing the key, when the mouse cursor is in the first direction outside the first window, the mouse cursor changes to a second style, which is a double-arrow cursor pointing in the first direction. In response to the user pressing a preset key on the keyboard and not releasing the key, when the mouse cursor is in a second direction outside the first window, the mouse cursor changes to a second style, which is a double-arrow cursor pointing in the second direction.

[0032] The above example describes a method for an electronic device to adjust the size of a first window in response to a user pressing a preset key on a keyboard and not releasing the key, while the mouse cursor is outside the first window. In some embodiments, in response to a user pressing a preset key on a keyboard and not releasing the key, while the mouse cursor is within the first window, the electronic device may also move the first window (i.e., adjust the position of the first window).

[0033] Exemplarily, an electronic device displays a user interface, the user interface including a first window. In response to a user pressing a preset key on a keyboard and not releasing the key, when a mouse cursor is within the first window, the electronic device can move the first window in response to an operation of dragging the mouse cursor.

[0034] In one possible implementation, in response to the user pressing a preset key on the keyboard and not releasing the key, when the mouse cursor is within the first window, the mouse cursor changes from the first style to the third style. Thus, the change from the first style to the third style can prompt the user to move the first window by dragging the mouse cursor.

[0035] The third style is used to prompt the user to drag the mouse cursor to move the first window. The third style differs from the first style in at least one of the following: color, size, form, shape, etc. For example, the first style is a single arrow cursor and the third style is a hand cursor.

[0036] In summary, the embodiments of the present application not only provide a method for adjusting the size of a first window, but also provide a method for moving the first window.

[0037] In some embodiments, after the electronic device adjusts the size of the first window, the user can simply operate the mouse or touchpad to trigger the electronic device to move the first window. In embodiments of the present application, in response to the user pressing and holding a preset key on the keyboard, when the mouse cursor is within the first window, the user can quickly move the first window by simply operating the mouse or touchpad.

[0038] In a second aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory is used to store code instructions, and the processor is used to run the code instructions to execute the method described in the first aspect or any possible implementation of the first aspect.

[0039] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is run on a computer, the computer executes the method described in the first aspect or any possible implementation of the first aspect.

[0040] In a fourth aspect, an embodiment of the present application provides a computer program product comprising a computer program, which, when the computer program is run on a computer, enables the computer to execute the method described in the first aspect or any possible implementation of the first aspect.

[0041] In a fifth aspect, the present application provides a chip or chip system, comprising at least one processor and a communication interface, wherein the communication interface and the at least one processor are interconnected via a line, and the at least one processor is configured to execute a computer program or instruction to perform the method described in the first aspect or any possible implementation of the first aspect. The communication interface in the chip may be an input / output interface, a pin, or a circuit.

[0042] In one possible implementation, the chip or chip system described above in this application further includes at least one memory, in which instructions are stored. The memory may be a storage unit within the chip, such as a register, a cache, etc., or a storage unit of the chip (e.g., a read-only memory, a random access memory, etc.).

[0043] It should be understood that the second to fifth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1AA schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0045] Figure 1B Another structural diagram of an electronic device provided in an embodiment of the present application;

[0046] Figure 2 A schematic diagram of a window displayed on a user interface of an electronic device;

[0047] Figure 3 Here are some examples of mouse cursor styles:

[0048] Figure 4 This is a diagram of the current window size adjustment;

[0049] Figure 5 A flowchart of an embodiment of a method for adjusting window size provided in an embodiment of the present application;

[0050] Figure 6A A schematic diagram of an interface of an electronic device provided in an embodiment of the present application;

[0051] Figure 6B A schematic diagram of another interface of an electronic device provided in an embodiment of the present application;

[0052] Figure 7A A schematic diagram of another interface of an electronic device provided in an embodiment of the present application;

[0053] Figure 7B A schematic diagram of another interface of an electronic device provided in an embodiment of the present application;

[0054] Figure 7C A schematic diagram of another interface of an electronic device provided in an embodiment of the present application;

[0055] Figure 7D A schematic diagram of the hot zone of the first window provided in an embodiment of the present application;

[0056] Figure 7E A schematic diagram of another interface of an electronic device provided in an embodiment of the present application;

[0057] Figure 8A A schematic diagram of an interface for adjusting the size of a first window provided in an embodiment of the present application;

[0058] Figure 8B A schematic diagram of another interface for adjusting the size of the first window provided in an embodiment of the present application;

[0059] Figure 9A A schematic diagram of another interface for adjusting the size of the first window provided in an embodiment of the present application;

[0060] Figure 9BA schematic diagram of another interface for adjusting the size of the first window provided in an embodiment of the present application;

[0061] Figure 9C A schematic diagram of another interface for adjusting the size of the first window provided in an embodiment of the present application;

[0062] Figure 9D A schematic diagram of another interface for adjusting the size of the first window provided in an embodiment of the present application;

[0063] Figure 10A A schematic diagram of another interface for adjusting the size of the first window provided in an embodiment of the present application;

[0064] Figure 10B A schematic diagram of another interface for adjusting the size of the first window provided in an embodiment of the present application;

[0065] Figure 11A A schematic diagram of another interface for adjusting the size of the first window provided in an embodiment of the present application;

[0066] Figure 11B A schematic diagram of another interface for adjusting the size of the first window provided in an embodiment of the present application;

[0067] Figure 12A A schematic diagram of another interface for adjusting the size of the first window provided in an embodiment of the present application;

[0068] Figure 12B A schematic diagram of another interface for adjusting the size of the first window provided in an embodiment of the present application;

[0069] Figure 13A A schematic diagram of an interface for moving the first window size provided in an embodiment of the present application;

[0070] Figure 13B A schematic diagram of another interface for moving the first window size provided in an embodiment of the present application;

[0071] Figure 13C A schematic diagram of an interface for adjusting the size of a first window and moving the first window provided in an embodiment of the present application;

[0072] Figure 14A A schematic diagram of another interface for adjusting the size of the first window provided in an embodiment of the present application;

[0073] Figure 14B A schematic diagram of another interface for moving the first window size provided in an embodiment of the present application;

[0074] Figure 15 Another structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0075] For ease of understanding, the following first introduces the relevant terms and concepts involved in the embodiments of the present application:

[0076] 1. The electronic device in the embodiments of the present application is a device having a display screen, which can display the user interface (UI) of the electronic device. The electronic device in the embodiments of the present application also has an input device, and a user can input instructions and / or information into the electronic device by operating the input device.

[0077] In some embodiments, an electronic device having an input device can be understood as meaning that the electronic device can include an input device. An electronic device can include an input device, such as a touch screen, a touchpad, or a keyboard. A user can input input to the electronic device by operating the touch screen, touchpad, or keyboard. In some embodiments, an electronic device having an input device can be understood as meaning that the electronic device can be connected to the input device. An electronic device can be connected to an input device, such as a mouse, keyboard, or stylus. A user can input input to the electronic device by operating the mouse, keyboard, or stylus.

[0078] The electronic device and the input device may be connected via a wired connection or a wireless connection, which is not limited in the present embodiment. Examples of wireless connections include: Wi-Fi hotspot connections, Wi-Fi peer-to-peer (P2P) connections, Bluetooth connections, ZigBee connections, or near field communication (NFC) connections.

[0079] Figure 1A A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 1A Taking the electronic device as a tablet computer as an example, the tablet computer 11 can be connected to a keyboard 12 and a mouse 13. When the tablet computer 11 and the mouse 13 are connected, a mouse cursor 14 can be displayed on the UI of the tablet computer 11. In this example, the user can operate the mouse cursor 14 by operating the mouse 13.

[0080] Figure 1B This is another structural diagram of an electronic device provided in an embodiment of the present application. Figure 1BTaking a personal computer (PC) as an example, PC 21 may include a keyboard 22 and a touchpad 23. Furthermore, PC 21 may be connected to a mouse 24. When PC 21 is connected to mouse 24, a mouse cursor 25 may be displayed on the user interface of PC 21. Alternatively, when a user operates the touchpad, mouse cursor 25 may be displayed on the user interface of PC 21. In this example, the user can operate the touchpad 23 or the mouse 24 to operate the mouse cursor 25.

[0081] In some embodiments, the electronic device may be referred to as user equipment (UE), terminal, etc. For example, the electronic device may be a tablet computer, a PC, a personal digital assistant (PDA), a computing device, an in-vehicle device, a wearable device, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in a smart home, etc. The embodiments of the present application do not specifically limit the form of the electronic device.

[0082] 2. Window: It is the carrier of the application, and the application UI can be displayed in the window.

[0083] In some embodiments, a window may include a title bar and a content area. The title bar allows the user to control the entire window, while the content area includes application content and controls for user interaction. In some embodiments, a window may also include, for example, a menu bar and a toolbar. The present application does not limit the content and form of the window. The following description uses a rectangular window as an example.

[0084] Figure 2 A schematic diagram of a window displayed on a UI of an electronic device. Figure 2 Take the electronic device as a tablet computer as an example, refer to Figure 2 The tablet computer can display a user interface 20, on which a window 201 is displayed. The window 201 is used to carry the interface of the application 1. In the embodiment of the present application, the size of the zoom window is involved. Figure 2 In the description, the window 201 occupies part of the area of the user interface 20 as an example.

[0085] 3. Mouse cursor: When a user operates the touchpad or mouse of an electronic device, a mouse cursor may be displayed on the UI of the electronic device. The mouse cursor style may vary in different application interfaces, or under different operations on the same interface.

[0086] For example, Figure 3 Some mouse cursor styles are shown in . For example, the mouse cursor styles may include: (1) single arrow cursor; (2) double arrow cursor; (3) text cursor (or I-beam); (4) hand cursor; (5) cross cursor, etc.

[0087] In some embodiments, the double-arrow cursor may also be referred to as a size adjustment cursor. In some embodiments, the mouse cursor may also be referred to as a mouse pointer, which is not limited in the present application.

[0088] 4. Hot zone: In a broad sense, a hot zone refers to the part of the UI that can interact with the user. The embodiment of the present application involves the adjustment of the window size. The hot zone in the embodiment of the present application refers to: the area on the UI used to trigger the adjustment of the window size.

[0089] The following combination Figure 4 , taking a tablet computer as an example, the current method of adjusting the window size is introduced. It should be understood that Figure 4 Only the tablet interface is shown, and the process of the user operating the mouse is not shown.

[0090] Reference Figure 4 In a, the tablet computer can display window 41 on the user interface 40, and window 41 occupies part of the area of the user interface 40. In some embodiments, the user interface 40 can be a desktop, or the user interface 40 can include the desktop and other windows displayed on the desktop, and window 41 is located at the top layer of the user interface. Figure 4 In a, the mouse cursor 42 is outside the window 41 as an example, and the mouse cursor 42 is a single arrow cursor. When the user operates the mouse 42, the mouse cursor 42 moves on the user interface 40. Figure 4 In b, when the mouse cursor 42 moves to the edge 1 of the window 41, the single arrow cursor changes to a double arrow cursor. The double arrow cursor is used to prompt the user that dragging the mouse can trigger the electronic device to zoom the window. For example, if the user presses the mouse (such as the left mouse button) and moves it to the right, the electronic device can stretch the window 41, as shown in FIG. Figure 4 It should be understood that when the user presses the mouse (eg, the left button of the mouse) and moves it to the right, it can be understood that the user drags the mouse cursor to the right.

[0091] Similarly, when the user operates the mouse and moves the mouse cursor 42 to the upper edge of the window 41, the single-arrow cursor changes to a double-arrow cursor. If the user presses the mouse (e.g., the left mouse button) and moves it upward, the electronic device can lengthen the height of the window 41. Similarly, when the user operates the mouse and moves the mouse cursor to the opposite corner of the window 41, the single-arrow cursor changes to a double-arrow cursor. If the user presses the mouse (e.g., the left mouse button) and moves it outward, the electronic device can enlarge the window 41 proportionally.

[0092] It should be understood that Figure 4 The process of enlarging the window 41 is shown in FIG. 4 . In a similar manner, the electronic device can also shorten the height or width of the window 41 , and can also reduce the window 41 proportionally.

[0093] Currently, the method of adjusting window size has the following problems:

[0094] 1. When the mouse cursor is far away from the edge or diagonal of the window, the mouse cursor needs to move a long path to reach the edge or diagonal of the window. When the user operates the mouse, especially when operating the touchpad, the long path will cause inconvenience in operation.

[0095] 2. Currently, the hot zone used to trigger window size adjustment is small. The hot zone is only at the edge or diagonal of the window. Users need to move the mouse cursor precisely to the edge or diagonal of the window, which makes the operation difficult and the user experience poor.

[0096] To address the above issues, embodiments of the present application provide a method for adjusting window size. This method can enlarge the hot zone used to trigger window size adjustment, and in combination with a preset key on the keyboard, when the user presses the preset key on the keyboard, as long as the mouse cursor is within the hot zone, the window size adjustment can be triggered. The user does not need to precisely move the mouse cursor to the edge or diagonal of the window, which simplifies operation. In addition, because the hot zone is enlarged, the path of mouse cursor movement is correspondingly reduced, which can facilitate user operation of the mouse or touchpad, improving the user experience.

[0097] The following describes the method for adjusting the window size provided by the embodiment of the present application in conjunction with specific embodiments. The following embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0098] In some embodiments, the electronic device can be connected to a keyboard and a mouse respectively. In some embodiments, the electronic device can also include a keyboard and be connected to a mouse. The user can operate the mouse to drag the mouse cursor, and the user can operate the keyboard to input into the electronic device.

[0099] In some embodiments, the electronic device may further include a touchpad. In this example, the user may operate the mouse or the touchpad to drag the mouse cursor.

[0100] The embodiments of the present application do not limit the form of the electronic device, nor do they limit the user operation of dragging the mouse cursor.

[0101] Figure 5 A flowchart of an embodiment of the method for adjusting the window size provided in the embodiment of the present application. Figure 5The method for adjusting the window size provided in the embodiment of the present application may include:

[0102] S501: Display a user interface, where the user interface includes a first window. The first window occupies a partial area of the user interface.

[0103] In some embodiments, the user interface may include a desktop and / or an application interface. The desktop may occupy the entire display screen of the electronic device. The application interface may be hosted in a window, which may occupy the entire display screen or a portion of the display screen of the electronic device. The embodiments of the present application do not limit the content displayed in the user interface.

[0104] The user interface may include a first window. In some embodiments, the first window may be at the top layer of the user interface.

[0105] The first window does not occupy the entire area of the user interface, but occupies a portion of the user interface. Figure 6A In a, taking the electronic device as a tablet computer as an example, a first window 61 is displayed on the user interface 60 of the electronic device, and the first window 61 occupies a partial area of the user interface 60, that is, the size of the first window 61 is smaller than the size of the user interface 60.

[0106] S502 : In response to the user pressing a preset key on the keyboard and not releasing the key, when the mouse cursor is outside the first window, in response to an operation of dragging the mouse cursor, adjusting the size of the first window.

[0107] In an embodiment of the present application, a keyboard serves as an input device of an electronic device, and a user can input into the electronic device by operating the keyboard. In an embodiment of the present application, a user can trigger adjustment of the size of the first window by operating a preset key on the keyboard. The preset key may include at least one key on the keyboard. For example, the preset key may be a key for character A, or "a key for character A plus a key for character B". The embodiment of the present application does not limit the setting of the preset key.

[0108] When a user presses a preset key on the keyboard and holds it, and when the mouse cursor is outside the first window, the user can operate the mouse or touchpad to drag the mouse cursor. Possible operations for dragging the mouse cursor are described below: For example, the user can hold down the left mouse button and move the mouse to drag the mouse cursor, or the user can hold down a key on the touchpad and perform a sliding operation on the touchpad to drag the mouse cursor.

[0109] It should be noted that dragging the mouse cursor is different from moving the mouse cursor. For example, the user can move the mouse cursor by directly moving the mouse instead of pressing the left mouse button, or by directly sliding the mouse on the touchpad instead of pressing a button on the touchpad.

[0110] In an embodiment of the present application, when a user presses a preset key on a keyboard and does not release the key, and the mouse cursor is outside the first window, the electronic device can adjust the size of the first window in response to the user dragging the mouse cursor. In some embodiments, when a user presses a preset key on a keyboard and does not release the key, and the mouse cursor is inside the first window, the electronic device can move the first window in response to the user dragging the mouse cursor. This example can be referred to the description of the following embodiments.

[0111] Reference Figure 6A In a, a mouse cursor 62 may be displayed on the user interface 60, and the mouse cursor 62 is outside the first window 61. Figure 6A In bc, the user presses the preset key on the keyboard and does not release it, and the user drags the mouse cursor, and the size of the first window 61 increases. In the embodiment of the present application, there is no limitation on the way in which the electronic device adjusts the size of the first window 61, and reference can be made to the description in the examples in the following embodiments. It should be understood that Figure 6A In the example, the user presses the left mouse button and moves, triggering the user to drag the mouse cursor.

[0112] In some embodiments, when a user presses a preset key on a keyboard and does not release the key, the mouse cursor may be outside the first window, or the mouse cursor may be inside the first window. In an embodiment of the present application, in response to the user pressing a preset key on the keyboard and not releasing the key, when the mouse cursor is inside the first window, the user can move the mouse to move the mouse cursor outside the first window. In this way, when the mouse cursor is outside the first window, in response to the operation of dragging the mouse cursor, the electronic device can adjust the size of the first window.

[0113] Reference Figure 6B In a, taking the electronic device as a tablet computer as an example, a first window 61 is displayed on the user interface 60 of the electronic device, and the first window 61 occupies a part of the area of the user interface 60. A mouse cursor 62 may be displayed on the user interface 60, and the mouse cursor 62 is within the first window 61. Figure 6B In b, the user presses a preset key on the keyboard and does not release it, and the user can move the mouse cursor 62 to outside the first window 61. When the mouse cursor 62 is outside the first window 61, in response to the operation of dragging the mouse cursor 62, the electronic device can adjust the size of the first window 61, such as Figure 6BAs shown in c.

[0114] In the embodiments of the present application, the hot zone for triggering window resizing is enlarged. For example, the hot zone can be an area outside the first window. This allows users to resize the window without having to precisely drag the mouse cursor to the edge or diagonal of the window, simplifying operation. In addition, because the hot zone is enlarged, the path of mouse cursor movement is also reduced, which can also facilitate user operation of the mouse or touchpad, improving the user experience.

[0115] When the user presses a preset key on the keyboard without releasing it, and the mouse cursor may be outside the first window, in order to prompt the user to use the window size adjustment method provided in the embodiment of the present application, that is, to prompt the user to drag the mouse cursor to adjust the window size, in some embodiments, S502 may be replaced by S502A-S503A. It should be understood that Figure 5 S502A-S503A are not shown.

[0116] S502A: In response to the user pressing a preset key on the keyboard and not releasing the key, when the mouse cursor is outside the first window, outputting a first prompt message.

[0117] S503A: In response to the operation of dragging the mouse cursor, the size of the first window is adjusted.

[0118] S503A may refer to the description in the above embodiment.

[0119] In S502A, the first prompt information is used to indicate that dragging the mouse cursor is used to adjust the size of the first window. In some embodiments, the first prompt information may include at least one of the following:

[0120] A prompt box contains text information; or

[0121] The mouse cursor changes from the first style to the second style; or,

[0122] Highlight the area where the mouse cursor is located.

[0123] The following first introduces an example of changing the mouse cursor from the first style to the second style:

[0124] The mouse cursor may change from a first style to a second style. The second style is used to indicate resizing of the first window. The first style and the second style are different. The first style and the second style differ in at least one of the following: color, size, form, shape, etc.

[0125] For example, the first style is a single arrow cursor and the second style is a double arrow cursor, or the first style is a white single arrow cursor and the second style is a black single arrow cursor. The embodiments of the present application do not limit the first style and the second style. In some embodiments, in order not to change the current user's habit of operating the mouse cursor to adjust the size of the first window, for example, the first style can be a single arrow cursor and the second style can be a double arrow cursor.

[0126] In some embodiments, the second style may also be related to the position of the mouse cursor. For details, please refer to the description in the following embodiments.

[0127] In an embodiment of the present application, a key on a keyboard can be combined to prompt the user of the window resize status. When the user presses a preset key on the keyboard, the mouse cursor can change from a first style to a second style. When the user sees the mouse cursor change to the second style, the user can determine that the window resize can be adjusted. Therefore, the user can perform an operation of dragging the mouse cursor to trigger the electronic device to adjust the size of the first window.

[0128] Reference Figure 7A In a, a first window 61 is displayed on the user interface 60 of the electronic device, and the first window 61 occupies a part of the area of the user interface 60. A mouse cursor 62 may be displayed on the user interface 60, and the mouse cursor 62 is outside the first window 61, and the mouse cursor 62 is a single arrow cursor. Figure 7A In b, the user presses the preset key on the keyboard and does not release it. When the mouse cursor 62 is outside the first window 61, the mouse cursor 62 changes to a double-arrow cursor, which is used to prompt the user to drag the mouse cursor 61 to adjust the size of the first window 61. Figure 7A In c, the user drags the mouse cursor, and the electronic device can adjust the size of the first window. It should be noted that Figure 7A a、c in can refer to Figure 6A The descriptions in a and c are as follows.

[0129] The following is an example of "the first prompt information includes: a prompt box. The prompt box contains text information":

[0130] In order to further clearly prompt the user, in some embodiments, in response to the user pressing a preset key on the keyboard and not releasing it, and when the mouse cursor is outside the first window, the mouse cursor can not only change from the first style to the second style, but the electronic device can also display a prompt box on the user interface. The prompt box can contain text information, and the text information can prompt the user that dragging the mouse cursor can trigger the adjustment of the size of the first window.

[0131] For example, refer to Figure 7BIn a, a first window 61 is displayed on the user interface 60 of the electronic device, and the first window 61 occupies a part of the area of the user interface 60. When the mouse cursor is outside the first window 61, the mouse cursor 62 is a single arrow cursor. Figure 7B In b, the user presses a preset key on the keyboard and does not release it, the mouse cursor 62 becomes a double-arrow cursor, and the electronic device displays a prompt box on the user interface 60, which may include text "Drag the mouse cursor to adjust the window size."

[0132] Here's an example of highlighting the area where the mouse cursor is located:

[0133] In order to further clearly prompt the user, in some embodiments, in response to the user pressing a preset key on the keyboard and not releasing it, and when the mouse cursor is outside the first window, the electronic device can also highlight the area where the mouse cursor is located. In this example, the mouse cursor can change from the first style to the second style. In addition, the electronic device can also display a prompt box on the user interface. It should be understood that Figure 7C , which shows an example in which a mouse cursor changes from a first style to a second style, and an electronic device highlights the area where the mouse cursor is located.

[0134] For example, refer to Figure 7C In a, a first window 61 is displayed on the user interface 60 of the electronic device, and the first window 61 occupies a part of the area of the user interface 60. When the mouse cursor 62 is outside the first window 61, the mouse cursor 62 is a single arrow cursor. Figure 7B In a, the first window 61 is a rectangle, and the mouse cursor 62 is located on the right side of the first window 61. Figure 7C In b, the user presses the preset key on the keyboard and does not release it, the mouse cursor 62 changes to a double-arrow cursor, and the electronic device highlights the area where the mouse cursor 62 is located, such as the area on the right side of the first window 61. Figure 7C The area on the right side of the first window 61 represented by the shadow in b is highlighted. It should be understood that Figure 7C The shadow in b indicates that the area on the right side of the first window 61 is highlighted. Figure 7C In b, the electronic device can also output a prompt box, but Figure 7C b in is not shown.

[0135] In the embodiment of the present application, the highlighted area on the right side of the first window 61 can be regarded as a hot zone for adjusting the size of the first window 61. Compared with the edge of the first window 61 in the prior art, the hot zone is larger. As long as the mouse cursor is in the highlighted area on the right side of the first window 61, the user can adjust the size of the first window 61 by performing corresponding operations.

[0136] In some embodiments, a window may correspond to at least one hot zone, and each hot zone is used to trigger adjustment of the size of the window, but different hot zones are used to adjust the size of the window in different ways. Figure 7D Taking the first window 61 as an example, different hot zones of the first window 61 are shown. Figure 7D The embodiment of the present application does not limit the size and shape of the different hot zones of the first window 61.

[0137] Reference Figure 7D The first window 61 has eight hot zones, namely, zone 1, zone 2, zone 3, zone 4, zone 5, zone 6, zone 7, and zone 8. Zones 1 to 8 are all outside the first window 61.

[0138] Among them, area 1 is located at the upper left corner of the first window 61, area 3 is located at the upper right corner of the first window 61, area 6 is located at the lower left corner of the first window 61, and area 6 is located at the lower right corner of the first window 61. In some embodiments, area 1, area 3, area 6, and area 8 can be referred to as: a first type of hot zone of the first window 61. The first type of hot zone is used to proportionally scale the size of the first window 61.

[0139] In response to the user pressing a preset key on the keyboard and not releasing the key, when the mouse cursor is in the first type of hot zone, the electronic device can proportionally adjust the size of the first window 61 according to the user's operation of dragging the mouse cursor. For example, when the direction of dragging the mouse cursor is toward the first window 61, the electronic device can proportionally reduce the size of the first window 61; when the direction of dragging the mouse cursor is away from the first window 61, the electronic device can proportionally increase the size of the first window 61. The method of adjusting the size of the first window 61 in this example can be referred to the description of the following embodiments.

[0140] Region 2 is located above the first window 61, and region 7 is located below the first window 61. In some embodiments, regions 2 and 7 can be referred to as second-type hot zones of the first window 61. The second-type hot zones are used to adjust the height of the first window 61. The height of the first window 61 is the dimension in the direction of regions 2 and 7.

[0141] In response to the user pressing a preset key on the keyboard and not releasing the key, when the mouse cursor is in the second type of hot zone, the electronic device can adjust the height of the first window 61 according to the user's operation of dragging the mouse cursor. For example, when the direction of dragging the mouse cursor is toward the first window 61, the electronic device can shorten the height of the first window 61, and when the direction of dragging the mouse cursor is away from the first window 61, the electronic device can lengthen the height of the first window 61. The method for adjusting the size of the first window 61 in this example can be referred to the description of the following embodiments.

[0142] Region 4 is on the left side of the first window 61, and region 5 is on the right side of the first window 61. In some embodiments, regions 4 and 5 can be referred to as a third type of hot zone of the first window 61. The third type of hot zone is used to adjust the width of the first window 61. The width of the first window 61 is the dimension in the direction of regions 4 and 5.

[0143] In response to the user pressing a preset key on the keyboard and not releasing the key, when the mouse cursor is in the third type of hot zone, the electronic device can adjust the width of the first window 61 according to the user's operation of dragging the mouse cursor. For example, when the mouse cursor is dragged toward the first window 61, the electronic device can shorten the width of the first window 61, and when the mouse cursor is dragged away from the first window 61, the electronic device can lengthen the width of the first window 61. The method for adjusting the size of the first window 61 in this example can be referred to the description of the following embodiments.

[0144] In some embodiments, the second type of hot zone and the third type of hot zone can be used to adjust the size of the first window 61 in the first direction.

[0145] This example is mainly used to introduce a method in which the electronic device can highlight the area where the mouse cursor is located in an embodiment of the present application, so as to prompt the user to drag the mouse cursor to adjust the size of the first window 61.

[0146] It should be noted that Figure 7B-7C The prompt method in the example can be applied to the following example, which shows how the mouse cursor changes from a first style to a second style, but does not show how the electronic device displays a prompt box and highlights the area where the mouse cursor is located.

[0147] In some embodiments, the first prompt information may also be a guide animation, which includes the process of "operating the mouse or touchpad to drag the mouse cursor, and the electronic device to adjust the window size."

[0148] The embodiment of the present application does not limit the first prompt information. For example, the first prompt information may also be a voice guidance, and the user may drag the mouse cursor according to the voice guidance to adjust the size of the first window.

[0149] In order to prompt the user to adjust the window size using the method provided in the embodiments of the present application, in some embodiments, when the electronic device displays a user interface, the user interface includes a first window, and the first window occupies part of the area of the user interface. When the user operates the mouse or touchpad so that the mouse cursor moves to the edge of the first window, the electronic device can output a third prompt message. The third prompt message indicates: operating the preset button on the keyboard and dragging the mouse cursor are used to trigger the adjustment of the size of the first window. In this way, when the user sees the third prompt message, he knows that the size of the first window can be adjusted using the method provided in the embodiments of the present application.

[0150] Figure 7E This is another interface diagram of an electronic device provided in an embodiment of the present application. Figure 7E In a, a first window 61 is displayed on the user interface 60 of the electronic device, and the first window 61 occupies a part of the area of the user interface 60. The mouse cursor 62 can be in the first window 61 or outside the first window 61. Figure 7E The a in FIG is taken as an example where the mouse cursor 62 is outside the first window 61. Figure 7E In b, the user can operate the mouse or touchpad to move the mouse cursor 62. When the mouse cursor 62 moves to the edge of the first window 61, the electronic device can display a third prompt message on the user interface 60 to prompt the user to operate the preset button on the keyboard and drag the mouse cursor to adjust the size of the first window 61.

[0151] For example, refer to Figure 7E In b, the third prompt information may include a prompt box, which may include text "You can adjust the window size by operating the preset keys on the keyboard and dragging the mouse cursor."

[0152] In some embodiments, the third prompt information may also be a guidance animation, which includes the process of "operating a preset key on the keyboard and dragging the mouse cursor to trigger the electronic device to adjust the window size." The embodiment of the present application does not limit the form of the third prompt information. For example, the third prompt information may also be a voice guidance, and the user may follow the voice guidance to operate the preset key on the keyboard and drag the mouse cursor to adjust the size of the first window.

[0153] In some embodiments, in order not to disturb the user too much, the electronic device may output a third prompt message when the mouse cursor moves to the edge of the first window for the first time after the electronic device is turned on. Subsequently, when the mouse cursor moves to the edge of the first window again, the electronic device may not output the third prompt message. Alternatively, in some embodiments, the electronic device may output the third prompt message when the mouse cursor moves to the edge of the first window for the first time, and subsequently, when the mouse cursor moves to the edge of the first window again, the electronic device may not output the third prompt message. The embodiments of the present application do not limit the manner and number of times the electronic device outputs the third prompt message.

[0154] The following describes a process of adjusting the size of the first window by the electronic device with reference to a specific example:

[0155] Example 1:

[0156] Reference Figure 8A In a, the user interface of the electronic device displays a first window 61, the mouse cursor is outside the first window 61, and the mouse cursor is in the first direction of the first window 61, and the mouse cursor is a single arrow cursor. It should be understood that Figure 8A In the example of the first window 61 being a rectangle, the first direction may be the width direction or the height direction of the first window 61. Figure 8A The left and right directions (or horizontal directions) of the first window 61 can be regarded as the left and right directions (or horizontal directions) of the first window 61, and the height direction of the first window 61 is Figure 8A The middle direction can be regarded as the up-down direction (or longitudinal direction) of the first window 61.

[0157] It should be understood that Figure 8A In a, the first direction may be the width direction of the first window 61 as an example for description.

[0158] It is understood that the embodiments of the present application do not limit the shape of the first window. For example, the first window may be circular, hexagonal, octagonal, etc. Taking the first window as a regular hexagon as an example, the first direction of the first window may be the direction of any two centrally symmetric sides of the regular hexagon. Taking the first window as a circle as an example, the first direction of the first window may be any diameter direction passing through the center of the circle. The embodiments of the present application do not provide an exhaustive list of the first directions of the first window.

[0159] In this example, the user presses a preset key on the keyboard and does not release the key, and the mouse cursor changes to a double-arrow cursor, and the double-arrow cursor points in a first direction. In response to the user dragging the mouse cursor, the electronic device can adjust the size of the first window in the first direction.

[0160] Reference Figure 8AIn b, the user presses the preset key on the keyboard and does not release it, and the mouse cursor changes to a double-arrow cursor, and the double-arrow cursor points in the width direction (such as the left and right direction) of the first window 61. At this time, the user can operate the mouse or touchpad to drag the mouse cursor. The specific operation method can refer to the description of the above embodiment.

[0161] When the mouse cursor is dragged toward the first window, the electronic device can shorten the first window in the first direction, or in other words, the electronic device can shorten the size of the first window in the first direction. Figure 8A In c, when the dragging direction of the mouse cursor is toward the first window 61, the electronic device can shorten the first window 61 in the width direction, that is, the electronic device can shorten the width of the first window 61, and the height of the first window 61 remains unchanged.

[0162] In some embodiments, when shortening the width of the first window, the electronic device may shorten the width of the first window starting from the edge of the window on the side where the mouse cursor is located, while the position of the edge of the first window on the opposite side of the mouse cursor remains unchanged. Figure 8A In c, the mouse cursor is located on the right side of the first window 61, that is, the side where the mouse cursor is located is the right side of the first window 61. When the mouse cursor is dragged to the left, the position of the edge of the first window 61 on the opposite side of the mouse cursor (that is, the position of the left edge of the first window 61) remains unchanged, and the width of the first window 61 is shortened from the right edge to the left.

[0163] Similarly, when the dragging direction of the mouse cursor deviates from the first window, the electronic device can stretch the first window in the first direction, or in other words, the electronic device can stretch the size of the first window in the first direction. It should be understood that deviating from the first window can also be understood as moving away from the first window. Figure 8B In c, when the dragging direction of the mouse cursor deviates from the first window 61, the electronic device can stretch the first window 61 in the width direction, that is, the electronic device can stretch the width of the first window 61, and the height of the first window 61 remains unchanged, such as Figure 8A As shown in d.

[0164] In some embodiments, when the electronic device extends the width of the first window, it may turn away from the first window and start extending the width of the first window from the edge of the window on the side where the mouse cursor is located, while the position of the edge of the first window on the opposite side of the mouse cursor remains unchanged. Figure 8B In c, the mouse cursor is located on the right side of the first window 61, that is, the side where the mouse cursor is located is the right side of the first window 61. When the mouse cursor is dragged to the right, the position of the edge of the first window 61 on the opposite side of the mouse cursor (that is, the position of the left edge of the first window 61) remains unchanged, and the width of the first window 61 is extended to the right from the right edge, as shown in FIG. Figure 8B As shown in d.

[0165] It should be understood that Figure 8B a、b in can refer to Figure 8A The descriptions in a and b.

[0166] As described in the above example, a method in which an electronic device can adjust the size of the first window in the first direction is introduced. In some embodiments, in a scenario in which the electronic device adjusts the size of the first window in the first direction, the electronic device can also adjust the size of the first window using different methods according to the layout of the content in the first window 61.

[0167] In some embodiments, the first window may include at least two columns, each of which is located in a first direction (e.g., widthwise) of the first window. The following describes a method for adjusting the size of the first window using an example in which the first window includes a first column and a second column, wherein the first column and the second column are located in a first direction (e.g., widthwise) of the first window.

[0168] Reference Figure 9A In a, the user interface 60 of the electronic device displays a first window 61, and the first window 61 occupies a partial area of the user interface 60. The content in the first window 61 is displayed in a column style. For example, the first window 61 includes a first column 611 and a second column 612. The embodiment of the present application does not limit the content displayed in the first column 611 and the second column 612. Exemplarily, for example, the first window 61 is used to carry the interface of the memo, the first column 611 can display the main page of the memo, and the second column 612 can display the details page of any memo. Exemplarily, for example, the first window 61 is used to carry the interface of the mailbox, the first column 611 can display the email list, and the second column 612 can display the details page of any email. It should be understood that, Figure 9A and Figure 9B The interface of the first window 61 carrying the memo is taken as an example for description.

[0169] Reference Figure 9A In a, the mouse cursor 62 is outside the first window 61 and in the width direction (ie, the first direction) of the first window 61. The mouse cursor 62 is a single arrow cursor. It should be understood that Figure 9A Taking the first window 61 as a rectangle as an example, the first direction may be the width direction of the first window 61, that is, Figure 9A Left and right direction in .

[0170] Reference Figure 9AIn b, the user presses a preset key on the keyboard and does not release the key. The mouse cursor 62 changes to a double-arrow cursor, and the double-arrow cursor points in the width direction of the first window 61. The user can operate the mouse or touchpad to drag the mouse cursor. In response to the dragging operation, the electronic device can adjust the size of the first column or the second column in the first direction.

[0171] When the mouse cursor is positioned close to the first column and the mouse cursor is dragged toward the first window, the electronic device may shorten the first column in the first direction. Figure 9A In c, the mouse cursor 62 is located on the left side of the first window 61, near the first column 611 in the first window 61. When the mouse cursor 62 is dragged toward the first window 61, the electronic device can shorten the first column in the width direction, that is, the electronic device can shorten the width of the first column 611. The width of the second column 612 remains unchanged, and the height of the first window 61 remains unchanged.

[0172] In some embodiments, when shortening the width of the first column 611, the electronic device may shorten the width of the first column 611 starting from the edge of the window on the side where the mouse cursor is located, and the position of the edge of the first window on the opposite side of the mouse cursor remains unchanged. Figure 9A In c, the mouse cursor is located on the left side of the first window 61, that is, the side where the mouse cursor is located is the left side of the first window 61. When the mouse cursor is dragged to the right, the position of the edge of the first window 61 on the opposite side of the mouse cursor (that is, the position of the right edge of the first window 61) remains unchanged, and the electronic device shortens the width of the first column 611 to the right starting from the left edge of the first window.

[0173] In some embodiments, when the width of the first column 611 is shortened by the electronic device, the electronic device may not display the first column 611 in the first window 61 when the width of the first column 611 is shortened to a first threshold. Figure 9A In d, when the width of the first column 611 continues to shrink to the first threshold, the first column 611 is no longer displayed in the first window 61, and the second column 612 is displayed.

[0174] In this example, when the width of the first column is shortened to a first threshold, that is, when the width of the first column is shortened to be short enough, the width cannot normally display the content in the first column, and the electronic device may not display the first column in the first window.

[0175] When the mouse cursor is located close to the second column and the dragging direction of the mouse cursor is toward the first window, the electronic device can shorten the second column in the first direction. Figure 9BIn c, the mouse cursor 62 is located on the right side of the first window 61, close to the second column 612 in the first window 61. When the mouse cursor 62 is dragged toward the first window 61, the electronic device can shorten the second column 612 in the width direction, that is, the electronic device can shorten the width of the second column 612. The width of the first column 611 remains unchanged, and the height of the first window 61 remains unchanged.

[0176] In some embodiments, when shortening the width of the second column 612, the electronic device may shorten the width of the second column 612 starting from the edge of the window on the side where the mouse cursor is located, and the position of the edge of the first window on the opposite side of the mouse cursor remains unchanged. Figure 9B In c, the mouse cursor 62 is located on the right side of the first window 61, that is, the side where the mouse cursor 62 is located is the right side of the first window 61. When the mouse cursor 62 is dragged to the left, the position of the edge of the first window 61 on the opposite side of the mouse cursor 62 (that is, the position of the left edge of the first window 61) remains unchanged, and the electronic device shortens the width of the second column 612 to the left starting from the right edge of the first window 61.

[0177] In some embodiments, when the width of the second column is shortened by the electronic device, the electronic device does not display the second column in the first window when the width of the second column is shortened to a first threshold. Figure 9B In d, when the width of the second column 612 continues to shrink to the first threshold, the second column 612 is not displayed in the first window 61, and the first column 611 is displayed.

[0178] It should be understood that Figure 9B a、b in can refer to Figure 9A The descriptions in a and b.

[0179] Similarly, referring to the method in which the electronic device shortens the width of the first column and shortens the width of the second column, the electronic device may also lengthen the width of the first column and lengthen the width of the second column.

[0180] For example, a first window is displayed on a user interface of an electronic device. The first window includes a first column and a second column. The first column and the second column are columns in a first direction (e.g., width direction) of the first window. A mouse cursor is outside the first window and in a first direction of the first window. The mouse cursor is a single-arrow cursor. A user presses a preset key on the keyboard and does not release the key. The mouse cursor changes to a double-arrow cursor, and the double-arrow cursor points in the first direction (e.g., width direction) of the first window. The user can operate the mouse or touchpad to drag the mouse cursor.

[0181] When the mouse cursor is located close to the first column and the dragging direction of the mouse cursor is away from the first window, the first column is lengthened in the first direction.

[0182] Reference Figure 9C In c, the mouse cursor 62 is located on the left side of the first window 61, close to the first column 611 in the first window 61. When the mouse cursor is dragged away from the first window 61, the electronic device can extend the first column 611 in the width direction, that is, the electronic device can extend the width of the first column 611. The width of the second column 612 remains unchanged, and the height of the first window 61 remains unchanged.

[0183] In some embodiments, when the electronic device extends the width of the first column 611, it may move away from the first window and start extending the width of the first column 611 from the edge of the window on the side where the mouse cursor is located, while the position of the edge of the first window on the opposite side of the mouse cursor remains unchanged. Figure 9C In c, the mouse cursor 62 is located on the left side of the first window 61, that is, the side where the mouse cursor 62 is located is the left side of the first window 61. When the mouse cursor 62 is dragged to the left, the position of the edge of the first window 61 on the opposite side of the mouse cursor 62 (that is, the position of the right edge of the first window 61) remains unchanged, and the electronic device stretches the width of the first column 611 to the left starting from the left edge of the first window 61.

[0184] When the mouse cursor is located close to the second column and the dragging direction of the mouse cursor is away from the first window, the second column is lengthened in the first direction.

[0185] Reference Figure 9D In c, the mouse cursor 62 is located on the right side of the first window 61, close to the second column 612 in the first window 61. When the mouse cursor 62 is dragged away from the first window 61, the electronic device can extend the second column 612 in the width direction, that is, the electronic device can extend the width of the second column 612. The width of the first column 611 remains unchanged, and the height of the first window 61 remains unchanged.

[0186] In some embodiments, when the electronic device extends the width of the second column 612, it can move away from the first window 61 and start extending the width of the second column 612 from the edge of the window on the side where the mouse cursor 62 is located, while the position of the edge of the first window 61 on the opposite side of the mouse cursor 62 remains unchanged. Figure 9D In c, the mouse cursor 62 is located on the right side of the first window 61, that is, the side where the mouse cursor 62 is located is the right side of the first window 61. When the mouse cursor 62 is dragged to the right, the position of the edge of the first window 61 on the opposite side of the mouse cursor 62 (that is, the position of the left edge of the first window 61) remains unchanged, and the electronic device stretches the width of the second column 612 to the right from the right edge of the first window 61.

[0187] It should be understood that Figure 9C 、 Figure 9Da、b in can refer to Figure 9A The descriptions in a and b.

[0188] It is understood that when the electronic device is extending the width of the first column 611 and the second column 612, when the widths of the first column 611 and the second column 612 reach the edge of the user interface, the electronic device may stop extending the width of the first column 611 and the second column 612. In addition, the electronic device may also output a second prompt message, prompting the user to continue dragging the mouse cursor and that the width of the first column 611 and the second column 612 cannot be further extended. The second prompt message can be referred to in the following embodiment.

[0189] Example 2:

[0190] When the first window is rectangular, as in the above example, the first direction is taken as the width direction of the first window. In some embodiments, the first direction can also be the height direction of the first window. In this example, when the mouse cursor is outside the first window and in the height direction of the first window, the mouse cursor is a single arrow style. In response to the user operating a preset key on the keyboard and not releasing the mouse cursor, the mouse cursor changes to a double-arrow cursor, and the double-arrow cursor points in the height direction of the first window (such as the up and down direction of the first window). In response to the operation of dragging the mouse cursor, the electronic device can adjust the size of the first window in the height direction.

[0191] First, when the mouse cursor is dragged toward the first window, the electronic device shortens the first window in the first direction. In an embodiment of the present application, when the mouse cursor is dragged toward the first window, the electronic device can shorten the height of the first window.

[0192] Reference Figure 10A In a, the user interface 60 of the electronic device displays a first window 61, the mouse cursor 62 is outside the first window 61, and the mouse cursor 62 is in the height direction of the first window 61, such as the mouse cursor 62 is above the first window 61, and the mouse cursor 62 is a single arrow cursor. Figure 10A In b, the user presses a preset key on the keyboard and does not release it, and the mouse cursor 62 changes to a double-arrow cursor, and the double-arrow cursor points to the height direction of the first window 61 (such as the up and down direction).

[0193] At this point, the user can operate the mouse or touchpad to drag the mouse cursor. Figure 10A In c, when the dragging direction of the mouse cursor 62 is toward the first window 61 (such as dragging downward), the electronic device can shorten the first window 61 in the height direction, that is, the electronic device can shorten the height of the first window 61, and the width of the first window 61 remains unchanged.

[0194] In some embodiments, when shortening the height of the first window, the electronic device may shorten the height of the first window starting from the edge of the window on the side where the mouse cursor is located, and the position of the edge of the first window on the opposite side of the mouse cursor remains unchanged. Figure 10A In c, the mouse cursor 62 is located above the first window 61, that is, the side where the mouse cursor 62 is located is above the first window 61. When the mouse cursor 62 is dragged downward, the position of the edge of the first window 61 on the opposite side of the mouse cursor 62 (that is, the position of the lower edge of the first window 61) remains unchanged, and the height of the first window 61 is shortened downward from the upper edge.

[0195] Second, when the dragging direction of the mouse cursor deviates from the first window, the electronic device extends the first window in the first direction. In the embodiment of the present application, when the dragging direction of the mouse cursor deviates from the first window, the electronic device can extend the height of the first window.

[0196] Reference Figure 10B In a, the user interface 60 of the electronic device displays a first window 61, the mouse cursor 62 is outside the first window 61, and the mouse cursor 62 is in the height direction of the first window 61, such as the mouse cursor 62 is above the first window 61, and the mouse cursor 62 is a single arrow cursor. Figure 10B In b, the user presses a preset key on the keyboard and does not release it, and the mouse cursor 62 changes to a double-arrow cursor, and the double-arrow cursor points to the height direction of the first window 61 (such as the up and down direction).

[0197] At this point, the user can operate the mouse or touchpad to drag the mouse cursor. Figure 10B In c, when the dragging direction of the mouse cursor 62 is away from the first window 61 (such as dragging upward), the electronic device can lengthen the first window 61 in the height direction, that is, the electronic device can lengthen the height of the first window 61, and the width of the first window 61 remains unchanged.

[0198] In some embodiments, when the electronic device extends the height of the first window, it may turn away from the first window and start extending the height of the first window from the edge of the window on the side where the mouse cursor is located, while the position of the edge of the first window on the opposite side of the mouse cursor remains unchanged. Figure 10B In c, the mouse cursor 62 is located above the first window 61, that is, the side where the mouse cursor 62 is located is above the first window 61. When the mouse cursor 62 is dragged upward, the position of the edge of the first window 61 on the opposite side of the mouse cursor 62 (that is, the position of the lower edge of the first window 61) remains unchanged, and the height of the first window 61 is stretched upward from the upper edge.

[0199] In some embodiments, in a scenario where the electronic device adjusts the size of the first window in the first direction, the electronic device may also use different methods to adjust the size of the first window according to the layout of the content in the first window. In this example, when the electronic device scales the size of the first window, the electronic device may also scale the height of the first column or the second column in the first window according to the layout of the content in the first window (such as the columns in the height direction). This process is not described in detail in the embodiments of the present application, and can be referred to. Figures 9A-9D Description in .

[0200] In this example, the first window includes a first column and a second column, and the first column and the second column are columns in a height direction of the first window.

[0201] First, when the mouse cursor is located close to the first column and the mouse cursor is dragged toward the first window, the electronic device can shorten the first column in the height direction, that is, the electronic device can shorten the height of the first column.

[0202] In some embodiments, when the height of the first column is shortened to a first threshold, the electronic device may not display the first column in the first window, but may display the second column.

[0203] Secondly, when the mouse cursor is located close to the second column and the mouse cursor is dragged toward the first window, the electronic device can shorten the second column in the height direction, that is, the electronic device can shorten the height of the second column.

[0204] In some embodiments, when the height of the second column is shortened to a first threshold, the electronic device may not display the second column in the first window, but display the first column.

[0205] Third, when the mouse cursor is located close to the first column and the dragging direction of the mouse cursor is away from the first window, the electronic device can lengthen the first column in the height direction, that is, the electronic device can lengthen the height of the first column.

[0206] Fourthly, when the mouse cursor is located close to the second column and the dragging direction of the mouse cursor is away from the first window, the electronic device can lengthen the second column in the height direction, that is, the electronic device can lengthen the height of the second column.

[0207] Example 3:

[0208] Reference Figure 11A In a, the user interface 60 of the electronic device displays a first window 61, the mouse cursor 62 is outside the first window 61, and the mouse cursor 62 is in the second direction of the first window 61, and the mouse cursor 62 is a single arrow cursor. It should be understood that Figure 11AIn the example, the first window 61 is a rectangle, and illustratively, the second direction can be the diagonal direction of the first window 61. Figure 11A It can be regarded as the direction of the upper left corner and the lower right corner, and the direction of the upper right corner and the lower left corner. Figure 11A In a, the case where the mouse cursor 62 is located at the upper left corner of the first window 61 is taken as an example.

[0209] It should be understood that the embodiments of the present application do not limit the shape of the first window. For example, the first window may be circular, hexagonal, octagonal, etc. Taking the first window as a regular hexagon as an example, the second direction of the first window may be the direction of the upper and lower sides of the regular hexagon. Taking the first window as a circle as an example, the second direction of the first window may be the horizontal direction of the diameter passing through the center of the circle. The embodiments of the present application do not provide an exhaustive list of the second directions of the first window.

[0210] In this example, the user presses a preset key on the keyboard and does not release the mouse cursor, and the mouse cursor changes to a double-arrow cursor, and the double-arrow cursor faces the second direction. In this example, in response to the operation of dragging the mouse cursor, the electronic device can proportionally scale the first window.

[0211] Reference Figure 11A In b, the user presses the preset key on the keyboard and does not release it, and the mouse cursor 62 changes to a double-arrow cursor, and the double-arrow cursor points to the diagonal direction (such as the direction of the upper left corner and the lower right corner) of the first window 61. At this time, the user can operate the mouse or touchpad to drag the mouse cursor.

[0212] When the mouse cursor is dragged toward the first window, the electronic device can proportionally reduce the first window. In some embodiments, when the electronic device proportionally reduces the first window, it can face the first window and proportionally reduce the first window starting from the diagonal position where the mouse cursor is located, while the position of the other diagonal position of the first window remains unchanged. Figure 11A In c, the mouse cursor 62 is located at the upper left corner of the first window 61, that is, the diagonal corner where the mouse cursor 62 is located is the upper left corner. When the mouse cursor 62 is dragged toward the first window (such as downward, right, or lower right, etc.), the position of the lower right corner of the first window 61 remains unchanged, and the electronic device shrinks the first window 61 from the upper left corner of the first window 61 to the lower right corner.

[0213] Similarly, when the dragging direction of the mouse cursor is away from the first window, the electronic device can enlarge the first window in equal proportion. Figure 11B In a, the user interface 60 of the electronic device displays a first window 61, the mouse cursor 62 is outside the first window 61, and the mouse cursor 62 is in the second direction of the first window 61, and the mouse cursor 62 is a single arrow cursor. Figure 11BIn a, the case where the mouse cursor 62 is located at the upper right corner of the first window 61 is taken as an example.

[0214] Reference Figure 11B In b, the user presses the preset key on the keyboard and does not release it, and the mouse cursor 62 changes to a double-arrow cursor, and the double-arrow cursor points to the diagonal direction (such as the direction of the upper right corner and the lower left corner) of the first window 61. At this time, the user can operate the mouse or touchpad to drag the mouse cursor.

[0215] When the dragging direction of the mouse cursor deviates from the first window 61, the electronic device can proportionally enlarge the first window 61. In some embodiments, when proportionally enlarging the first window, the electronic device can deviate from the first window and proportionally enlarge the first window starting from the diagonal position where the mouse cursor is located, while the position of the other diagonal position of the first window remains unchanged. Figure 11B In c, the mouse cursor 62 is located at the upper right corner of the first window 61, that is, the diagonal corner where the mouse cursor 62 is located is the upper right corner. When the mouse cursor 62 is dragged away from the first window (such as upward, right, or upper right, etc.), the position of the lower left corner of the first window 61 remains unchanged, and the electronic device enlarges the first window 61 from the upper right corner of the first window 61 to the upper right corner.

[0216] It should be understood that Figure 11B a、b in can refer to Figure 11A The descriptions in a and b.

[0217] When the mouse cursor is at the lower left corner or the lower right corner, the process of proportionally scaling the first window by the electronic device can be referred to Figure 11A and Figure 11B Description in .

[0218] In summary, the embodiments of the present application provide a method for adjusting the size of a first window, wherein the electronic device can adjust the size of the first window in different directions and can also scale the size of the first window proportionally.

[0219] In some embodiments, when the electronic device is scaling up the first window, one edge of the first window may reach the edge of the user interface first. In this case, the embodiments of the present application provide the following two methods:

[0220] Method 1: Output the second prompt message

[0221] In some embodiments, during the process of proportionally enlarging a first window by an electronic device, when a first edge of the first window reaches a first edge of a user interface and a second edge of the first window does not reach a second edge of the user interface, the electronic device may output a second prompt message, wherein the second prompt message indicates that continuing to drag the mouse will not trigger proportional enlargement of the first window.

[0222] Reference Figure 12A a and b in the electronic device, in the process of proportionally enlarging the first window 61, refer to Figure 12A In b, the first edge of the first window 61 (such as the upper edge) first reaches the first edge of the user interface (such as the upper edge), but the second edge of the first window 61 (such as the right edge) does not reach the second edge of the user interface (such as the right edge), the electronic device can output the second prompt information.

[0223] Among them, when the first window 61 has not been enlarged in proportion, the first edge of the first window 61 is parallel to the first edge of the user interface, and the second edge of the first window 61 is parallel to the second edge of the user interface. The first edge of the first window 61 reaches the first edge of the user interface, indicating that the first edge of the first window 61 overlaps with the first edge of the user interface, and the second edge of the first window 61 does not reach the second edge of the user interface, indicating that the second edge of the first window 61 is parallel to the second edge of the user interface, but does not overlap. It should be understood that Figure 12A a in Figure 11B The same as c in Figure 11B The description of c in .

[0224] Reference Figure 12A In b, the second prompt message may include a prompt box, which may include the text message "Continue dragging the mouse to stop enlarging the first window." Additionally, the second prompt message may include an edge collision animation displayed at the first edge, indicating that the first edge of the first window 61 has overlapped with the first edge of the user interface and that the size of the first window 61 has stopped changing.

[0225] The embodiment of the present application does not limit the form of the second prompt information. For example, the second prompt information can also be a voice prompt.

[0226] Method 2: Continue to zoom to the edge of the user interface

[0227] In some embodiments, during the process of the electronic device proportionally enlarging the first window, when the first edge of the first window reaches the first edge of the user interface and the second edge of the first window has not reached the second edge of the user interface, the electronic device can continue to stretch the first window toward the second edge of the user interface until the dragging of the mouse cursor stops or the second edge of the first window reaches the second edge of the user interface.

[0228] Reference Figure 12B a and b in the electronic device, in the process of proportionally enlarging the first window 61, refer to Figure 12BIn b, the first edge of the first window 61 (such as the upper edge) first reaches the first edge of the user interface (such as the upper edge), but the second edge of the first window 61 (such as the right edge) does not reach the second edge of the user interface (such as the right edge). The electronic device can continue to stretch the first window (stretch the width of the first window) toward the second edge of the user interface (such as the right side).

[0229] Reference Figure 12B In b, the electronic device can continue to extend the width of the first window 61 to the right until the mouse cursor stops dragging or the right edge of the first window 61 overlaps with the right edge of the user interface, and the electronic device stops extending the height of the first window 61. It should be understood that Figure 12B FIG. 3 shows an example in which the right edge of the first window 61 overlaps with the right edge of the user interface.

[0230] In some embodiments, when the right edge of the first window 61 overlaps with the right edge of the user interface, the electronic device may also output a second prompt message to prompt the user that continuing to drag the mouse will not trigger the enlargement of the first window.

[0231] The above embodiment introduces a method in which the electronic device can adjust the size of the first window. The following describes a method in which the electronic device can move the position of the first window.

[0232] In an embodiment of the present application, an electronic device displays a user interface, the user interface including a first window. In response to a user pressing a preset key on a keyboard and not releasing the key, when a mouse cursor is within the first window, or when the user moves the mouse cursor into the first window, in response to a dragging operation of the mouse cursor, the electronic device moves the first window.

[0233] For example, refer to Figure 13A In a, the user interface 60 of the electronic device displays a first window 61, the first window 61 occupies a part of the area of the user interface 60, the mouse cursor 62 is in the first window 61, and the mouse cursor can be a first style (such as a single arrow style). Figure 13A In b, if the user presses the preset key on the keyboard and does not release it, the mouse cursor can change from the first style to the third style (such as a hand cursor). The third style is used to prompt the user to drag the mouse cursor to move the first window. Figure 13A In c, the user drags the mouse cursor, and the electronic device can move the first window 61, that is, the electronic device changes the position of the first window 61 on the user interface 60.

[0234] For example, refer to Figure 13BIn a, the user interface 60 of the electronic device displays a first window 61, the first window 61 occupies a part of the area of the user interface 60, the mouse cursor 62 is outside the first window 61, and the mouse cursor 62 can be of a first style (such as a single arrow cursor). Figure 13B In b, the user moves the mouse cursor 62 and moves the mouse cursor 62 into the first window 61. The mouse cursor 62 may still be in the first style (or may be changed into a text cursor). Figure 13B In c, if the user presses the preset key on the keyboard and does not release it, the mouse cursor can change from the first style to the third style (such as a hand cursor). Figure 13B In d, the user drags the mouse cursor, and the electronic device can move the first window 61, that is, the electronic device changes the position of the first window 61 on the user interface 60.

[0235] With reference to the above example, in some embodiments, after adjusting the size of the first window, the electronic device may further move the mouse cursor into the first window to trigger the electronic device to move the first window.

[0236] For example, the electronic device adjusts the size of the first window by shortening the first window in the first direction. Figure 8A On the basis of this, after the electronic device shortens the first window 61 in the width direction, the electronic device can also move the first window.

[0237] For example, Figure 13C The ac in can refer to Figure 8A For the description in ac, refer to Figure 13C In d, the user stops dragging the mouse cursor, the electronic device can stop shortening the first window 61 in the width direction, and the mouse cursor 62 changes to the first style (such as a single arrow style).

[0238] At this time, the user can move the mouse cursor 62 to the first window 61, such as Figure 13C When the mouse cursor 62 is in the first window 61, in response to the user operating a preset key on the keyboard, the mouse cursor 62 changes to a third style (such as a hand cursor), and the user drags the mouse cursor, and the electronic device can move the first window, such as Figure 13C As shown in fg.

[0239] In summary, the embodiments of the present application not only provide a method for adjusting the size of a first window, but also provide a method for moving the first window. After the electronic device adjusts the size of the first window, the user can simply operate the mouse or touchpad to trigger the electronic device to move the first window. Furthermore, the current method for electronic devices to move the first window is for the user to move the mouse cursor to a preset area of the first window. However, in the present application, as long as the mouse cursor is within the first window, the first window can be moved, which also facilitates user operation and improves the user experience.

[0240] It should be understood that in the existing methods, the user needs to move the mouse cursor to the preset position of the first window (for example, the title bar of the first window) and then drag the mouse cursor before the electronic device can move the first window. In the embodiment of the present application, the hot zone for triggering the moving window can be expanded. For example, the hot zone is within the first window. As long as the mouse cursor is within the first window, the user can press the preset key on the keyboard and drag the mouse cursor to trigger the electronic device to move the first window. The mouse cursor does not need to be moved to the preset position of the first window in advance, which is convenient for user operation and can improve the user experience.

[0241] The above example introduces a method in which the user drags the mouse cursor to trigger the electronic device to adjust the size of the first window or move the first window. In some embodiments, the user can also use the operation of moving the mouse cursor to trigger the electronic device to adjust the size of the first window or move the first window.

[0242] In some embodiments, the user may move the mouse cursor outside the first window in advance, so that when the user operates a preset key on the keyboard without releasing the key, the user may move the mouse cursor to trigger the electronic device to adjust the size of the first window.

[0243] For example, refer to Figure 14A In a, a first window 61 is displayed on the user interface 60 of the electronic device, and a mouse cursor 62 is located in the first window 61. Figure 14A In b, the user can move the mouse cursor 62 outside the first window 61. In this way, when the user presses the preset key on the keyboard and does not release the key, the mouse cursor 62 can change to the second style. The user can also move the mouse cursor 62 to trigger the electronic device to adjust the size of the first window 61, such as Figure 14A As shown in c. It should be understood that Figure 14A Here, the electronic device adjusts the size of the first window 61 in the width direction as an example.

[0244] In some embodiments, the user may move the mouse cursor to the first window in advance, so that when the user operates a preset key on the keyboard without releasing the key, the user may move the mouse cursor to trigger the electronic device to move the first window.

[0245] For example, refer to Figure 14B In a, a first window 61 is displayed on the user interface 60 of the electronic device, and the mouse cursor 62 is outside the first window 61. Figure 14B In b, the user can move the mouse cursor 62 to the first window 61. In this way, when the user operates the preset key on the keyboard and does not let go, the user can also move the mouse cursor 62 to trigger the electronic device to move the first window 61, such as Figure 14B As shown in c.

[0246] It should be noted that the data involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0247] In one embodiment, the present application also provides an electronic device, which may include: a processor 1501 (e.g., a CPU) and a memory 1502. The memory 1502 may include high-speed random-access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage. The memory 1502 may store various instructions for performing various processing functions and implementing the method steps of the present application.

[0248] Optionally, the electronic device involved in this application may further include: a power supply 1503, a communication bus 1504, and a communication port 1505. The communication port 1505 is used to enable communication between the electronic device and other peripheral devices. In the embodiment of the present application, the memory 1502 is used to store computer-executable program code, which includes instructions; when the processor 1501 executes the instructions, the instructions cause the processor 1501 of the electronic device to perform the actions in the above-mentioned method embodiment. The implementation principles and technical effects are similar and will not be repeated here.

[0249] Optionally, the electronic device involved in this application may further include: a display screen 1506. The display screen 1506 is used to display an interface of the electronic device.

[0250] It should be noted that the modules or components described in the above embodiments may be one or more integrated circuits configured to implement the above methods, such as one or more application-specific integrated circuits (ASICs), one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented by scheduling program code through a processing element, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code, such as a controller. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0251] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0252] The term "plurality" in this article refers to two or more. The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the previous and next associated objects are in an "or" relationship; in the formula, the character " / " indicates that the previous and next associated objects are in a "division" relationship. In addition, it should be understood that in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.

[0253] It will be understood that the various numerical numbers involved in the embodiments of the present application are merely distinctions for the convenience of description and are not intended to limit the scope of the embodiments of the present application.

[0254] It can be understood that in the embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

Claims

1. A method for adjusting window size, characterized in that: Applied to electronic equipment, the method includes: displaying a user interface, wherein the user interface includes a first window, and the first window occupies a partial area of the user interface; In response to the user pressing a preset key on the keyboard and not releasing the key, when the mouse cursor is outside the first window, the size of the first window is adjusted in response to an operation of dragging the mouse cursor.

2. The method according to claim 1, characterized in that In response to the user pressing a preset key on the keyboard and not releasing the key, when the mouse cursor is outside the first window, the method further includes: Outputting first prompt information, where the first prompt information is used to instruct dragging the mouse cursor to adjust the size of the first window.

3. The method according to claim 2, characterized in that The first prompt information includes any one of the following: A prompt box containing text information; or The mouse cursor changes from a first style to a second style; or, Highlight the area where the mouse cursor is located.

4. The method according to any one of claims 1 to 3, characterized in that The adjusting the size of the first window includes: When the mouse cursor is in a first direction of the first window, the size of the first window is adjusted in the first direction.

5. The method according to claim 4, characterized in that The first window includes a first column and a second column, wherein the first column and the second column are columns in the first direction; The adjusting the size of the first window in the first direction includes: When the mouse cursor is located close to the first column, adjusting the size of the first column in the first direction; or, When the mouse cursor is located close to the second column, the size of the second column is adjusted in the first direction.

6. The method according to claim 5, characterized in that The method further comprises: When the size of the first column in the first direction is shortened to a first threshold, the first column is not displayed in the first window; or, When the size of the second column in the first direction is shortened to the first threshold, the second column is not displayed in the first window.

7. The method according to any one of claims 4 to 6, characterized in that The first window is rectangular, and the first direction is a width direction or a height direction of the first window.

8. The method according to any one of claims 1 to 3, characterized in that The adjusting the size of the first window includes: When the mouse cursor is located in a second direction of the first window, the first window is scaled proportionally.

9. The method according to claim 8, characterized in that The method further comprises: During the process of proportionally enlarging the first window, when the first edge of the first window reaches the first edge of the user interface and the second edge of the first window does not reach the second edge of the user interface, a second prompt message is output, and the second prompt message indicates that continuing to move the mouse will not trigger proportional enlargement of the first window.

10. The method according to claim 8, characterized in that The method further comprises: During the process of proportionally enlarging the first window, when the first edge of the first window reaches the first edge of the user interface and the second edge of the first window does not reach the second edge of the user interface, the size of the first window is adjusted toward the second edge of the user interface.

11. The method according to any one of claims 8 to 10, characterized in that The first window is rectangular, and the second direction is a diagonal direction of the first window.

12. The method according to any one of claims 1 to 11, characterized in that After displaying the user interface, the method further includes: When the mouse cursor moves to the edge of the first window, a third prompt message is output, wherein the third prompt message indicates that a preset key on the keyboard is operated and the mouse cursor is dragged to trigger the adjustment of the size of the first window.

13. The method according to claim 3, characterized in that The first style is a single arrow cursor, and the second style is related to the position of the mouse cursor.

14. The method according to any one of claims 1 to 13, characterized in that The method further comprises: In response to the user pressing a preset key on the keyboard and not releasing the key, when the mouse cursor is within the first window, the first window is moved in response to an operation of dragging the mouse cursor.

15. The method according to claim 14, characterized in that In response to the user pressing a preset key on the keyboard and not releasing the key, when the mouse cursor is within the first window, the method further includes: The mouse cursor changes from the first style to the third style.

16. The method according to claim 15, characterized in that The third style is a hand-shaped cursor.

17. An electronic device, characterized in that: The electronic device includes: one or more processors and memory; The memory is coupled to the one or more processors, and is configured to store computer program codes, where the computer program codes include computer instructions. The one or more processors call the computer instructions to enable the electronic device to execute the method according to any one of claims 1 to 16.

18. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system includes one or more processors, and the one or more processors are used to call computer instructions so that the electronic device executes the method as described in any one of claims 1-16.

19. A computer-readable storage medium, characterized in that The computer-readable storage medium comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device is caused to perform the method according to any one of claims 1 to 16.

20. A computer program product, characterized in that The computer program product comprises a computer program code, and when the computer program code is run on an electronic device, the electronic device is caused to perform the method according to any one of claims 1 to 16.