# US 2018/0024729 A1 · Display control method, terminal and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2018/0024729 A1
- Document ID: US20180024729A1
- Status: Published application
- Kind: A1
- Application number: 15/720,114
- Filed: 2017-09-29
- Published: 2018-01-25
- Earliest claimed: 2015-05-30
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Kai YANG; Xin YANG; Yanhui SHEN
- Web page: https://patentgrep.com/patent/US20180024729A1

## CPC

- G06F 3/04845: for image manipulation, e.g. dragging, rotation, expansion or change of colour
- G06F 3/0481: based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F 3/0486: Drag-and-drop
- G06T 3/40: Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A display control method is provided. An example method includes monitoring a first window and a second window of an application which are separately displayed on a screen of a terminal. The first window and the second window each is provided with at least one attachment point. The method further includes determining a position of the first window on the screen when it is monitored that the second window moves on the screen. A master attachment point of the first window and a slave attachment point of the second window are determined according to the position. The second window is attached to the first window by merging the slave attachment point into the master attachment point to form a merged window. The merged window is displayed on the screen.

## Claims

### Claim 1

A display control method, comprising:
monitoring, by a processor, a first window and a second window of an application, which are separately displayed on a screen of a terminal, wherein the first window and the second window each is provided with at least one attachment point;
determining, by the processor, a position of the first window on the screen, in response to monitoring that the second window moves on the screen;
determining, by the processor, a master attachment point of the first window and a slave attachment point of the second window, from the at least one attachment point provided to the first window and the second window, according to the position of the first window on the screen;
attaching, by the processor, the second window to the first window by merging the slave attachment point into the master attachment point, to form a merged window; and
displaying, by the processor, the merged window on the screen.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the at least one attachment point is provided to the first window or the second window in at least one of an upward direction along the screen, a downward direction along the screen, a left direction along the screen and a right direction along the screen.

### Claim 3 (depends on 2)

The method according to claim 2, wherein determining, by the processor, the position of the first window on the screen comprises:
obtaining coordinates of a locating point of the first window on the screen, wherein the locating point is any one of pixel points in the first window.

### Claim 4 (depends on 3)

The method according to claim 3, wherein determining the master attachment point of the first window and the slave attachment point of the second window comprises:
calculating a vertical distance between the coordinates of the locating point and each of an upper edge, a lower edge, a left edge and a right edge of the screen;
determining an edge of the screen, whose vertical distance to the coordinates of the locating point is the maximum, as a target edge;
determining a direction from the locating point to the target edge as an attachment direction;
determining an attachment point provided to the first window in the attachment direction as the master attachment point; and
determining an attachment point provided to the second window in a direction opposite to the attachment direction as the slave attachment point.

### Claim 5 (depends on 1)

The method according to claim 1, wherein attaching the second window to the first window by merging the slave attachment point into the master attachment point, to form the merged window comprises:
calculating a distance between the master attachment point and the slave attachment point; and
attaching the second window to the first window to form the merged window, in response to determining that the distance between the master attachment point and the slave attachment point is less than a threshold.

### Claim 6 (depends on 5)

The method according to the claim 5, wherein after displaying the merged window on the screen, the method further comprises:
obtaining coordinates of an operation point of a movement operation, when the movement operation performed on the merged window is detected;
moving the merged window according to the movement operation, in a case that the operation point is located in the first window; and
separating the second window from the first window according to the movement operation, in a case that the operation point is located in the second window.

### Claim 7 (depends on 6)

The method according to the claim 6, wherein separating the second window from the first window according to the movement operation comprises:
separating the second attachment point from the first attachment point;
calculating the distance between the slave attachment point and the master attachment point; and
displaying the first window and the second window separately on the screen, in response to determining that the distance between the slave attachment point and the master attachment point is greater than a threshold.

### Claim 8

A terminal, comprising:
a screen;
a memory having program codes stored therein; and
a processor, that when executes the program codes, configured to:
monitor a first window and a second window of an application, which are separately displayed on the screen, wherein the first window and the second window each is provided with at least one attachment point;
determine a position of the first window on the screen, when it is monitored that the second window moves on the screen;
determine a master attachment point of the first window and a slave attachment point of the second window, from the at least one attachment point provided to the first window and the second window, according to the position of the first window on the screen;
attach the second window to the first window by merging the slave attachment point into the master attachment point, to form a merged window; and
display the merged window on the screen.

### Claim 9 (depends on 8)

The terminal according to claim 8, wherein the at least one attachment point is provided to the first window or the second window in at least one of an upward direction along the screen, a downward direction along the screen, a left direction along the screen and a right direction along the screen.

### Claim 10 (depends on 9)

The terminal according to claim 9, wherein the processor, in determining the position of the first window on the screen, configured to:
obtain coordinates of a locating point of the first window on the screen, wherein the locating point is any one of pixel points in the first window.

### Claim 11 (depends on 10)

The terminal according to claim 10, wherein the processor, in determining the master attachment point of the first window and determining the slave attachment point of the second window, configured to:
calculate a vertical distance between the coordinates of the locating point and each of an upper edge, a lower edge, a left edge and a right edge of the screen;
determine an edge of the screen, whose vertical distance to the coordinates of the locating point is the maximum, as a target edge;
determine a direction from the locating point to the target edge as an attachment direction;
determine an attachment point provided to the first window in the attachment direction as the master attachment point; and
determine an attachment point provided to the second window in a direction opposite to the attachment direction as the slave attachment point.

### Claim 12 (depends on 8)

The terminal according to claim 8, wherein the processor, in attaching the second window to the first window by merging the slave attachment point into the master attachment point, configured to:
calculate a distance between the master attachment point and the slave attachment point; and
attach the second window to the first window to form the merged window, in response to determining that the distance between the master attachment point and the slave attachment point is less than a threshold.

### Claim 13 (depends on 12)

The terminal according to claim 12, wherein after the merged window is displayed on the screen, the processor is further configured to:
obtain coordinates of an operation point of a movement operation, when the movement operation performed on the merged window is detected;
move the merged window according to the movement operation, in a case that the operation point is located in the first window; and
separate the second window from the first window according to the movement operation, in a case that the operation point is located in the second window.

### Claim 14 (depends on 13)

The terminal according to claim 13, wherein the processor, in separating the second window from the first window, configured to:
separate the slave attachment point from the master attachment point;
calculate the distance between the slave attachment point and the master attachment point; and
display the first window and the second window separately on the screen, in response to determining that the distance between the slave attachment point and the master attachment point is greater than a threshold.

### Claim 15

A computer readable storage medium for storing computer readable program codes that are executed in a terminal to:
monitor a first window and a second window of an application, which are separately displayed on a screen of the terminal, wherein the first window and the second window each is provided with at least one attachment point;
determine a position of the first window on the screen, when it is monitored that the second window moves on the screen;
determine a master attachment point of the first window and a slave attachment point of the second window, from the at least one attachment point provided to the first window and the second window, according to the position of the first window on the screen;
attach the second window to the first window by merging the slave attachment point into the master attachment point, to form a merged window; and
display the merged window on the screen.

### Claim 16 (depends on 15)

The computer readable storage medium according to claim 15, wherein the at least one attachment point is provided to the first window or the second window in at least one of an upward direction along the screen, a downward direction along the screen, a left direction along the screen and a right direction along the screen.

### Claim 17 (depends on 16)

The computer readable storage medium according to claim 16, wherein determining the position of the first window on the screen comprises:
obtaining coordinates of a locating point of the first window on the screen, wherein the locating point is any one of pixel points in the first window.

### Claim 18 (depends on 17)

The computer readable storage medium according to claim 17, wherein determining the master attachment point of the first window and the slave attachment point of the second window comprises:
calculating a vertical distance between the coordinates of the locating point and each of an upper edge, a lower edge, a left edge and a right edge of the screen;
determining an edge of the screen, whose vertical distance to the coordinates of the locating point is the maximum distance, as a target edge;
determining a direction from the locating point to the target edge as an attachment direction;
determining an attachment point provided to the first window in the attachment direction as the master attachment point; and
determining an attachment point provided to the second window in a direction opposite to the attachment direction as the slave attachment point.

### Claim 19 (depends on 15)

The computer readable storage medium according to claim 15, wherein attaching the second window to the first window by merging the slave attachment point into the master attachment point to form the merged window comprises:
calculating a distance between the master attachment point and the slave attachment point; and
attaching the second window to the first window to form the merged window, in response to determining that the distance between the master attachment point and the slave attachment point is less than a threshold.

### Claim 20 (depends on 19)

The computer readable storage medium according to claim 19, wherein after displaying the merged window on the screen, the computer readable program codes is further executed in the terminal to:
obtain coordinates of an operation point of a movement operation, when the movement operation performed on the merged window is detected;
move the merged window according to the movement operation, in a case that the operation point is located in the first window; and
separate the second window from the first window according to the movement operation, in a case that the operation point is located in the second window.

### Claim 21 (depends on 20)

The computer readable storage medium according to claim 20, wherein separating the second window from the first window according to the movement operation comprises:
separating the slave attachment point from the master attachment point;
calculating the distance between the slave attachment point and the master attachment point; and
displaying the first window and the second window separately on the screen, in response to determining that the distance between the slave attachment point and the master attachment point is greater than a threshold.
