Popup window display method and device and program product

By acquiring operation behaviors in the target display area and controlling pop-up display according to pop-up priority and status type, the problem of single pop-up display logic in the priorities of pop-up display is solved, and the flexibility and diversity of pop-up display is achieved, and the user experience is improved.

CN119557033APending Publication Date: 2025-03-04CHENGDU GONGDING TECHNOLOGY CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411636072.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-15
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

When the existing pop-up window top solution deals with complex window cascade relationships, the display logic is single, which is difficult to meet the complex needs of users, such as unpinned status or operating the area after pop-up window under specific conditions.

Method used

By obtaining the operation behavior in the target display area, obtaining and displaying the corresponding pop-up windows, and inserting the top display in the target display area according to the priority of each pop-up window. At the same time, the display and response behavior of the pop-up window are controlled according to the status type (modal or non-modal) and priority of the pop-up window.

Benefits of technology

It realizes fine-grained control of multiple pop-up window displays, improves the flexibility and diversity of pop-up window displays, can meet the complex interaction needs of users, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119557033A_ABST
    Figure CN119557033A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, in particular to a popup window display method and device and a program product. The method comprises the steps that an operation behavior of triggering a popup window in a target display area is obtained, the target display area is a partial area in a display interface, and the display interface comprises at least one display area; based on the operation behavior, obtaining at least one pop-up window corresponding to the target display area; according to the priorities corresponding to the popup windows, the popup windows are displayed in a built-in top mode in the target display area, and the higher the priorities are, the higher the popup windows are displayed on the upper layer of the target display area. According to the method and the device, fine-grained control on display of the multiple popup windows can be realized, and the flexibility and diversification of popup window display are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a pop-up window display method, device and program product. Background Art

[0002] In the design of computer graphical user interface (GUI), pop-up windows are important elements for interacting with users, and their top-fixing function and behavior control are crucial to improving user experience. In the prior art, the pop-up window top-fixing solution mainly uses the existing application programming interface (API) or development tools of the operating system to implement the window and configure the modal and non-modal properties of the pop-up window. However, the traditional pop-up window top-fixing solution relies on setting a specific window flag when the window is created. It is limited by the window management mechanism of the operating system and is difficult to achieve complex and flexible user needs. For example, in some cases, the user may want to put the pop-up window on top and be able to operate the area behind the pop-up window, or need to remove the top-fixed state under specific conditions. The existing pop-up window display solution cannot handle complex window stacking relationships, and the pop-up window display logic is single and lacks flexibility. Summary of the invention

[0003] Based on the above-mentioned defects and shortcomings of the prior art, the present application proposes a pop-up window display method, device and program product, which can achieve fine-grained control over the display of multiple pop-up windows and improve the flexibility and diversity of pop-up window display.

[0004] According to the first aspect of the present application, a pop-up window display method is provided, including: obtaining an operation behavior that triggers a pop-up window in a target display area, wherein the target display area is a partial area in a display interface, and the display interface includes at least one display area; based on the operation behavior, obtaining at least one pop-up window corresponding to the target display area; and displaying each pop-up window on top of the target display area according to the priority corresponding to each pop-up window, wherein the higher the priority, the higher the pop-up window is displayed in the target display area.

[0005] According to the pop-up window display method provided in the first aspect of the present application, each pop-up window is displayed on top of the target display area according to the priority level corresponding to each pop-up window, including: obtaining the state type of each pop-up window, wherein the state type includes modal and non-modal; according to the priority level corresponding to each pop-up window, each pop-up window is displayed on top of the target display area based on the state type.

[0006] According to the pop-up window display method provided in the first aspect of the present application, each pop-up window is displayed on top of the target display area based on the state type according to the priority corresponding to each pop-up window, including: for the pop-up window whose state type is the modal, each pop-up window is displayed in the target display area based on the modality according to the priority corresponding to each pop-up window, and no response is given to area operation behaviors outside the pop-up window, wherein the area operation behavior refers to interface operation behaviors occurring in the target display area.

[0007] According to the pop-up window display method provided in the first aspect of the present application, each pop-up window is displayed on top of the target display area based on the status type according to the priority level corresponding to each pop-up window, including: for the pop-up window whose status type is the non-modal, each pop-up window is displayed in the target display area based on the non-modal according to the priority level corresponding to each pop-up window, and responds to area operation behavior outside the pop-up window, wherein the area operation behavior refers to interface operation behavior occurring in the target display area.

[0008] According to the pop-up window display method provided in the first aspect of the present application, obtaining at least one pop-up window corresponding to the target display area based on the operation behavior includes: popping up the minimized pop-up window based on the operation behavior.

[0009] According to the pop-up window display method provided in the first aspect of the present application, according to the priorities respectively corresponding to each of the pop-up windows, before displaying each of the pop-up windows in the target display area, it also includes: obtaining a priority modification behavior; based on the priority modification behavior, updating the priority respectively corresponding to at least one of the pop-up windows.

[0010] According to the pop-up window display method provided in the first aspect of the present application, the method of obtaining at least one pop-up window corresponding to the target display area based on the operation behavior includes: based on the operation behavior, determining that the target display area is a pop-up window pinnable area, wherein the pop-up window pinnable area is a display area that allows the pop-up window to remain in a pinned state; and obtaining at least one pop-up window corresponding to the target display area.

[0011] According to the pop-up window display method provided in the first aspect of the present application, the method also includes: based on the operation behavior, determining that the target display area is a pop-up window non-top area, wherein the pop-up window non-top area is a display area that does not allow the pop-up window to remain in a top state; based on the operation behavior, obtaining at least one pop-up window corresponding to the target display area; displaying each pop-up window in the target display area according to the priority corresponding to each pop-up window, wherein each pop-up window is in a non-top state.

[0012] According to the second aspect of the present application, an electronic device is provided, comprising: a memory and a processor; the memory is connected to the processor and is used to store programs; the processor is used to implement the pop-up display method as described in the first aspect by running the program in the memory.

[0013] According to a third aspect of the present application, a computer program product is provided, comprising computer program instructions; when the computer program instructions are executed by a processor, the processor executes the pop-up window display method as described in the first aspect.

[0014] In the present application, an operation behavior that triggers a pop-up window in a target display area is obtained, wherein the target display area is a partial area in a display interface, and the display interface includes at least one target display area; based on the operation behavior, at least one pop-up window corresponding to the target display area is obtained; and each pop-up window is displayed on top in the target display area according to the priority corresponding to each pop-up window, wherein the higher the priority, the higher the pop-up window is displayed in the target display area. Based on the above, the present application can display at least one pop-up window corresponding to the target on top according to the priority in the target display area of ​​the display interface, and implement fine-grained control over the display of multiple pop-up windows in terms of display area and pinning method, thereby improving the flexibility of pop-up window display and enhancing the user experience through diversified pop-up window display methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0016] Figure 1 One of the flowcharts of a pop-up window display method provided in an embodiment of the present application;

[0017] Figure 2 A second flowchart of a pop-up window display method provided in an embodiment of the present application;

[0018] Figure 3 An example diagram of a pop-up window display provided in an embodiment of the present application;

[0019] Figure 4 A block diagram of a pop-up window display device provided in an embodiment of the present application;

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

[0021] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0022] Exemplary Methods

[0023] This application proposes a pop-up window display method to solve the problem of insufficient flexibility of existing pop-up window display methods. The method can be implemented in the form of a software algorithm on a device where the display interface is located, which is a data processing device that controls the display interface, such as a computer that controls the display interface, a display screen controller on a vehicle, etc.

[0024] In one embodiment, if Figure 1 As shown, the process steps for implementing the pop-up window display method include:

[0025] Step 101, obtaining an operation behavior that triggers a pop-up window in a target display area, wherein the target display area is a partial area in a display interface, and the display interface includes at least one display area.

[0026] In this embodiment, the display interface is a complete interface with display functions, and the target display area is a partial area in the display interface. That is to say, according to actual conditions and needs, the display interface can be divided into multiple display areas, and the number, type and display mode of pop-up windows in each display area are independent and do not interfere with each other. The number, type and display mode of pop-up windows displayed in different display areas can be completely the same, or completely different or partially different.

[0027] In this embodiment, the target display area is the display area where the operation behavior occurs, and the target display area can be any display area in the display interface. The operation behavior refers to the behavior of the user triggering the operation, for example, any operation behavior such as mouse hovering behavior, mouse clicking behavior, screen clicking behavior, screen sliding behavior, device flipping behavior, etc. The operation behavior that triggers the pop-up display in different display areas can be configured in advance according to the actual situation and the required model. The specific operation behaviors configured in different display areas are different, so as to accurately control the pop-up display in each display area. For example, the operation behavior that triggers the pop-up display in the first display area is configured as the mouse hover behavior within the first display area, the operation behavior that triggers the pop-up display in the second display area is configured as the mouse hover behavior within the second display area, and the operation behavior that triggers the pop-up display in the third display area is configured as the mouse click behavior within the third display area.

[0028] Step 102: Based on the operation behavior, obtain at least one pop-up window corresponding to the target display area.

[0029] In this embodiment, after the user triggers the operation behavior of displaying a pop-up window in the target display area, in response to the operation behavior, at least one pop-up window that needs to be displayed in the target display area is determined. The number of pop-up windows displayed in the target display area, the size and shape of each pop-up window, and other characteristics can be set according to actual conditions and needs.

[0030] Step 103 , displaying each pop-up window on top of the target display area according to the priority level of each pop-up window, wherein the higher the priority level is, the higher the pop-up window is displayed in the target display area.

[0031] In this embodiment, a corresponding priority is configured for each pop-up window. When multiple pop-up windows are displayed in the target display area, the pop-up window with the highest priority is displayed on the top of the highest layer of the target display area, and the pop-up window with the second highest priority is displayed on the top of the second highest layer of the target display area, and so on, until all pop-up windows are displayed in the target display area. A pop-up window can only be configured with one priority, and different pop-ups can be configured with the same priority according to actual needs. Pop-ups of the same priority can be displayed at the same level of the target display area at the same time based on the display position, display size and display shape characteristics. The priority of each pop-up window in the target display area can be configured in the priority queue or priority list corresponding to the target display area, thereby providing a basis for subsequent priority management, modification and other requirements. Optionally, different display areas can have different priority queues or priority lists.

[0032] In the present embodiment, the display interface is divided into multiple display areas, each display area independently displays pop-up windows, and the pop-up window display is finely divided from the area perspective, thereby improving the flexibility and diversity of the pop-up window display; in addition, multiple pop-up windows can be displayed according to priority within any display area, thereby further improving the flexibility and diversity of the pop-up windows within the display area from the pop-up window perspective.

[0033] In one embodiment, based on the operation behavior, each pop-up window is displayed on top of the target display area according to the priority level corresponding to each pop-up window, including: obtaining the state type of each pop-up window, wherein the state type includes modal and non-modal; according to the priority level corresponding to each pop-up window, each pop-up window is displayed on top of the target display area based on the state type.

[0034] In this embodiment, the state type of each pop-up window in the target display area can be flexibly set. After obtaining the operation behavior displayed in the pop-up window in the target display area and obtaining the pop-up window that needs to be displayed in the target display area, determine whether the state type of each pop-up window is modal or non-modal. A pop-up window with a modal state type is defined as a modal pop-up window. A modal pop-up window forces the user to interact with the pop-up window before continuing other operations. For example, a modal pop-up window includes a confirmation dialog box that pops up when saving a file. A pop-up window with a non-modal state type is defined as a non-modal pop-up window. A non-modal pop-up window allows the user to interact with other elements in the target display area at the same time. For example, a non-modal pop-up window includes a floating toolbar or a sidebar menu.

[0035] In this embodiment, the modal pop-up window and the non-modal pop-up window are configured with priorities respectively, that is, all pop-ups whose state type is modal are uniformly configured with priorities, and pop-ups whose state type is non-modal are uniformly configured with priorities. Optionally, if the state type of the pop-up window required to be displayed in the target display area includes both modal and non-modal, based on the display characteristics of modal and non-modal, each modal pop-up window is displayed according to the priority of each modal pop-up window; after each of the modal pop-up windows is interacted with, each non-modal pop-up window is displayed according to the priority of each non-modal pop-up window. Optionally, if the state type of the pop-up window required to be displayed in the target display area includes both modal and non-modal, all modal pop-ups can also be displayed on a higher level than all non-modal pop-ups according to the state type priority. After completing the interaction with all modal pop-ups in sequence according to the priority of the modal pop-up window, the interaction with all non-modal pop-ups can be carried out in sequence according to the priority of the non-modal pop-up window.

[0036] In one embodiment, each pop-up window is displayed on top of the target display area based on the status type according to the priority level corresponding to each pop-up window, including: for pop-ups with a modal status type, each pop-up window is displayed in the target display area based on the modality according to the priority level corresponding to each pop-up window, and no response is given to area operation behaviors outside the pop-up window, wherein the area operation behavior refers to the interface operation behavior occurring in the target display area.

[0037] In this embodiment, in the target display area, when the modal pop-up windows are displayed according to the priorities corresponding to each modal pop-up window, before the interaction with the modal pop-up window is completed, if the user triggers a regional operation behavior outside the modal pop-up window in the target display area, the regional operation behavior will not be responded to. It is necessary to respond to the regional operation behavior outside the modal pop-up window in the target display area only after the interaction between the user and the modal pop-up window is completed. In this embodiment, the regional operation behavior includes different types of operation behaviors such as mouse click behavior, screen click behavior, screen sliding behavior, etc.

[0038] In one embodiment, each pop-up window is displayed on top of the target display area based on the status type according to the priority level corresponding to each pop-up window, including: for pop-up windows with a non-modal status type, each pop-up window is displayed on a non-modal basis in the target display area according to the priority level corresponding to each pop-up window, and responds to area operation behaviors outside the pop-up window, wherein the area operation behavior refers to the interface operation behavior occurring in the target display area.

[0039] In this embodiment, in the target display area, when non-modal pop-up windows are displayed according to the priorities corresponding to each non-modal pop-up window, before the interaction with the non-modal pop-up window is completed, when the user triggers a regional operation behavior outside the non-modal pop-up window in the target display area, the regional operation behavior is responded to. Even if the non-modal window is displayed on top, it will not affect the response process of the regional operation behavior outside the non-modal pop-up window in the target display area, thereby improving the operational flexibility of the target display area when the pop-up window is displayed. In this embodiment, the regional operation behavior includes different types of operation behaviors such as mouse click behavior, screen click behavior, and screen sliding behavior.

[0040] In one embodiment, based on the operation behavior, obtaining at least one pop-up window corresponding to the target display area includes: based on the operation behavior, popping up a minimized pop-up window.

[0041] In this embodiment, if there is a minimized pop-up window after the operation behavior that triggers the pop-up window display occurs in the target display area, the minimized pop-up window will be popped up for display. Optionally, if the state type of the minimized pop-up window only includes modal, each modal pop-up window will be popped up according to priority. Optionally, if the state type of the minimized pop-up window only includes non-modal, each non-modal pop-up window will be popped up according to priority. Optionally, if the state type of the minimized pop-up window includes both modal and non-modal, if there is a minimized modal pop-up window, the modal pop-up window will be popped up first, and the non-modal pop-up window will be popped up after the user completes the interaction with the modal pop-up window; or, if the state type of the minimized pop-up window includes both modal and non-modal, all modal pop-ups can also be displayed on the upper layer of all non-modal pop-ups according to the state type priority, and after completing the interaction with all modal pop-ups in sequence according to the priority of the modal pop-up window, the interaction with all non-modal pop-ups can be carried out in sequence according to the priority of the non-modal pop-up window.

[0042] In one embodiment, according to the priorities respectively corresponding to the pop-up windows, before displaying the pop-up windows in the target display area, it also includes: obtaining a priority modification behavior; and updating the priorities respectively corresponding to at least one pop-up window based on the priority modification behavior.

[0043] In this embodiment, in order to improve the flexibility of pop-up window display, the priority of any one or several pop-up windows can be flexibly adjusted by obtaining the priority modification behavior at any time, such as when the pop-up window is not displayed or during the pop-up window display process. A pop-up window attribute modification interface is pre-configured in the target display area, and the priority modification behavior is triggered through the modification interface. The priority modification behavior includes the priority that is expected to be achieved after at least one pop-up window is modified. Optionally, if the priority of the pop-up window is stored in a priority queue or a priority list, the priority queue or priority list can be modified by triggering the priority modification behavior through the modification interface, thereby completing the priority adjustment.

[0044] In this embodiment, the state type of any pop-up window can be modified by modifying the interface, for example, the state type of the first pop-up window can be changed from modal to non-modal. The size, display position, and other properties of any pop-up window can also be modified by modifying the interface, thereby further improving the flexibility of pop-up window display.

[0045] In one embodiment, based on the operation behavior, at least one pop-up window corresponding to the target display area is obtained, including: based on the operation behavior, determining that the target display area is a pop-up window pinnable area, wherein the pop-up window pinnable area is a display area that allows the pop-up window to remain in a pinned state; obtaining at least one pop-up window corresponding to the target display area.

[0046] In this embodiment, the characteristic of whether to allow the pop-up window to remain on top can be defined for each display area. If the target display area is configured as a display area that allows the pop-up window to remain on top, at least one pop-up window corresponding to the target display area is displayed through the pop-up window display method provided in each of the above embodiments.

[0047] In one embodiment, based on the operation behavior, the target display area is determined to be a non-top area for pop-up windows, wherein the non-top area for pop-up windows is a display area in which pop-up windows are not allowed to remain in a top state; based on the operation behavior, at least one pop-up window corresponding to the target display area is obtained; and each pop-up window is displayed in the target display area according to the priority corresponding to each pop-up window, wherein each pop-up window is in a non-top state.

[0048] In this embodiment, if the target display area is configured as a display area that allows pop-up windows to remain on top, each pop-up window will still be displayed in the target display area according to the priority level corresponding to each pop-up window. However, the displayed pop-up windows will no longer be on top, and users can directly adjust the display level of each pop-up window.

[0049] In a specific embodiment, Figure 2 As shown, the specific process of implementing the pop-up window display method includes:

[0050] Step 201, obtaining the mouse hovering behavior in the target display area;

[0051] Step 202, determining whether the state type of the pop-up window in the target display area is modal, if so, executing step 203, if not, executing step 206;

[0052] Step 203, determine whether there is a minimized modal pop-up window, if so, execute step 204, if not, execute step 205;

[0053] Step 204, a minimized modal pop-up window is displayed;

[0054] Step 205, displaying each modal pop-up window on top of the target display area according to the priority of the modal pop-up window;

[0055] Step 206, do not respond to area operations within the target display area and outside the modal pop-up window;

[0056] Step 207, determining whether the target display area allows the pop-up window to remain on top, if so, executing step 208, if not, executing step 212;

[0057] Step 208, determine whether there is a minimized non-modal pop-up window, if so, execute step 209, if not, execute step 210;

[0058] Step 209, a minimized non-modal pop-up window is displayed;

[0059] Step 210, displaying each non-modal pop-up window on top of the target display area according to the priority of the non-modal pop-up window;

[0060] Step 211, responding to an operation in the target display area and outside the non-modal pop-up window;

[0061] Step 212, displaying each non-modal pop-up window in the target display area according to the priority of the non-modal pop-up window, but each non-modal pop-up window is not pinned to the top, and responds normally to the operation behavior in the target display area.

[0062] In one embodiment, in order to implement the implementation methods provided by the above embodiments, a pop-up window management class and an event rewriting processing method are provided.

[0063] In this embodiment, the pop-up window management class is configured as a pop-up window management class CDialogManager based on the Qt framework, which is used to manage the operation behavior corresponding to the pop-up window and related interactions. The Qt framework is a cross-platform C++ graphical user interface application development framework that not only provides powerful GUI development tools, but also supports advanced functions such as networking, databases, and multithreading. The pop-up window management class CDialogManager is a custom pop-up window management class that is used to manage and control pop-ups in applications. In the Qt framework, such a pop-up window management class can be created according to demand to better manage pop-ups.

[0064] In this embodiment, the pop-up window management class, as the core of pop-up window management, is responsible for recording, tracking and dynamically adjusting the status type, characteristics, priority and other information of all pop-up windows. By integrating the window management functions of the Qt framework, especially the setWindowFlags method, precise control of pop-up window attributes such as top and modality is achieved. Among them, setWindowFlags is a method in the Qt framework, which is used to set window flags. These flags determine the behavior and appearance of the window. By setting different flags, you can control whether the window can be resized, whether it has a border, whether it is always in the front, and other characteristics. The functions that can be implemented by the pop-up window management class include but are not limited to the following:

[0065] First, pop-up window registration: Each pop-up window interface is created through the pop-up window management class CDialogManager. The pop-up window management class CDialogManager provides a template method createDialog, which provides a pop-up window object pointer, initial display properties (such as whether it is top-level, whether it is modal, etc.) and priority information when creating. The createDialog method creates a corresponding pop-up window instance according to the incoming pop-up window parameters.

[0066] Second, priority management: The pop-up window management class CDialogManager maintains a priority queue or priority list internally, and sorts the pop-up windows according to their priorities. When you need to adjust the display order of the pop-up windows, you can modify the priority queue or priority list.

[0067] Third, top control: by calling the setWindowFlags method and setting the pop-up window top flag for any pop-up window, the pop-up window top flag under the Qt framework is Qt::WindowStaysOnTopHint. At the same time, according to user settings, the state type of any pop-up window can be configured through the flag. Specifically, the modal flag under the Qt framework is Qt::Modal, and the non-modal flag under the Qt framework is Qt::NonModal.

[0068] Fourth, modal and non-modal switching: The pop-up window management class CDialogManager provides a modification interface, allowing users to dynamically switch its state type when the pop-up window is running, ensuring the flexibility of the user experience.

[0069] Fifth, event rewriting: configure the rewriting event handler for the target display area to monitor the activation status of the target display area. When the target display area is activated, the CDialogManager pop-up window management class is called by rewriting the operation behavior to adjust the display mode of the pop-up window, such as adjusting the top status or priority of the pop-up window, to ensure that the display logic of the pop-up window is consistent with user expectations.

[0070] Sixth, area definition: allows users to define any display area as "pop-up non-top area", that is, when an operation is triggered in these pop-up non-top areas, the pop-up will not remain in the top state. In the "pop-up non-top area" interface, based on the rewriting event processing function, the CDialogManager pop-up management class can be called to adjust whether the pop-up display area allows the pop-up to remain in the top state by rewriting the operation behavior.

[0071] For example, Figure 3 As shown, based on the CDialogManager pop-up window management class provided in the present embodiment, the display mode of each pop-up window in display area 1, display area 2 and display area 3 is realized respectively, and pop-up window 1, pop-up window 2 and pop-up window 3 identify different pop-up windows, and the priority of pop-up window 1, pop-up window 2 and pop-up window 3 is reduced successively. The CDialogManager pop-up window management class can be applied to various stages such as pop-up window creation, priority configuration and top control. The state type of each pop-up window in display area 1 is configured as modal, and each modal pop-up window is displayed at the top according to the priority, and display area 1 does not respond to regional operation behavior; the state type of each pop-up window in display area 2 is configured as non-modal, and each non-modal pop-up window is displayed at the top according to the priority, and display area 2 responds to regional operation behavior; each pop-up window in display area 3 does not need to be topped, and each pop-up window is displayed according to the priority, and display area 3 responds to all operation behaviors.

[0072] It should be noted that the specific implementation methods such as the Qt framework, CDialogManager pop-up window management class, and setWindowFlags method provided in this embodiment are only exemplary implementation methods. Depending on the situation and needs, the pop-up window display method provided in other embodiments of this application can also be implemented based on other frameworks.

[0073] In an embodiment of the present application, an operation behavior that triggers a pop-up window in a target display area is obtained, wherein the target display area is a partial area in a display interface, and the display interface includes at least one target display area; based on the operation behavior, at least one pop-up window corresponding to the target display area is obtained; and each pop-up window is displayed on top in the target display area according to the priority corresponding to each pop-up window, wherein the higher the priority, the higher the pop-up window is displayed in the target display area. Based on the above, the present application can display at least one pop-up window corresponding to the target on top in the target display area of ​​the display interface according to the priority, and implement fine-grained control over the display of multiple pop-up windows in terms of display area and pinning method, thereby improving the flexibility of pop-up window display, and enhancing the user experience through diversified pop-up window display methods.

[0074] Furthermore, dynamic top priority management refers to the priority queue mechanism to ensure that high-priority pop-ups are always located in the upper layer, and an interface is provided to allow dynamic modification of the priority of any pop-up window. The pop-up mode can be flexibly configured. For different display areas in the display interface, the status type, pop-up characteristics, priority and other information of the pop-up can be flexibly configured to meet the user's pop-up needs. The operability control of the area outside the pop-up window in the target display area. After the pop-up window is placed on the top, the user can operate the area interface behind the pop-up window, and the pop-up window interface remains in the top state. Based on the above, the pop-up mode can be flexibly configured, rather than a single pop-up top state. The pop-up form can be set for different display areas separately, and multiple pop-ups can be managed with priority to meet the user's different pop-up priority needs. At the same time, other areas outside the pop-up window in the target display area can also be manipulated in the pop-up top mode, which is flexible and changeable to meet the operation requirements of the user interface in different states.

[0075] Exemplary Devices

[0076] Correspondingly, the embodiment of the present application also provides a pop-up window display device, such as Figure 4 As shown, the device may include:

[0077] An operation acquisition module 401 is used to acquire an operation behavior that triggers a pop-up window in a target display area, wherein the target display area is a partial area in a display interface, and the display interface includes at least one display area;

[0078] A pop-up window acquisition module 402 is used to acquire at least one pop-up window corresponding to the target display area based on the operation behavior;

[0079] The display module 403 is used to display each pop-up window on top of the target display area according to the priority level of each pop-up window. The higher the priority level is, the higher the pop-up window is displayed in the target display area.

[0080] In one embodiment, the display module 403 is used to obtain the state type of each pop-up window, where the state type includes modal and non-modal; and display each pop-up window on top of the target display area based on the state type according to the priority corresponding to each pop-up window.

[0081] In one embodiment, the display module 403 is used to display each pop-up window with a modal status type in a target display area based on the modality according to the priority corresponding to each pop-up window, and not respond to area operation behaviors outside the pop-up window, wherein the area operation behavior refers to the interface operation behavior occurring in the target display area.

[0082] In one embodiment, the display module 403 is used to display each pop-up window with a non-modal status type in a target display area based on a non-modal basis according to the priority corresponding to each pop-up window, and respond to area operation behaviors outside the pop-up window, wherein the area operation behavior refers to the interface operation behavior occurring in the target display area.

[0083] In one embodiment, the pop-up window acquisition module 402 is used to pop up a minimized pop-up window based on an operation behavior.

[0084] In one embodiment, the pop-up window display device also includes a modification module, which is used to obtain a priority modification behavior before displaying each pop-up window in the target display area; based on the priority modification behavior, update the priority corresponding to at least one pop-up window.

[0085] In one embodiment, the pop-up window acquisition module 402 is used to determine, based on the operation behavior, that the target display area is a pop-up window pinnable area, wherein the pop-up window pinnable area is a display area that allows the pop-up window to remain pinned; and acquire at least one pop-up window corresponding to the target display area.

[0086] In one embodiment, the pop-up window acquisition module 402 is further used to determine, based on the operation behavior, that the target display area is a pop-up window non-top area, wherein the pop-up window non-top area is a display area where the pop-up window is not allowed to remain in the top state; based on the operation behavior, acquire at least one pop-up window corresponding to the target display area;

[0087] The display module 403 is further configured to display each pop-up window in the target display area according to the priority level corresponding to each pop-up window, wherein each pop-up window is in a non-top state.

[0088] The pop-up window display device provided in this embodiment belongs to the same application concept as the pop-up window display method provided in the above embodiments of this application, and can execute the pop-up window display method provided in any of the above embodiments of this application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in this embodiment, please refer to the specific processing content of the pop-up window display method provided in the above embodiments of this application, and will not be repeated here.

[0089] Exemplary Electronic Devices

[0090] The present application also provides an electronic device, such as Figure 5 As shown, the electronic device includes: a memory 500 and a processor 501.

[0091] The memory 500 is connected to the processor 501 and is used to store programs.

[0092] The processor 501 is used to implement the pop-up window display method in the above embodiment by running the program stored in the memory 500.

[0093] Specifically, the electronic device may further include: a communication interface 502 , an input device 503 , an output device 504 and a bus 505 .

[0094] The processor 501, the memory 500, the communication interface 502, the input device 503 and the output device 504 are connected to each other via a bus.

[0095] Bus 505 may include a pathway for transferring information between the various components of the computer system.

[0096] The processor 501 may be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the scheme of the present invention. It may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0097] The processor 501 may include a main processor, and may also include a baseband chip, a modem, etc.

[0098] The memory 500 stores a program for executing the technical solution of the present invention, and may also store an operating system and other key services. Specifically, the program may include a program code, and the program code includes a computer operation instruction. More specifically, the memory 500 may include a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM), other types of dynamic storage devices that can store information and instructions, a disk storage, a flash, and the like.

[0099] The input device 503 may include a device for receiving data and information input by a user, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, a pedometer, or a gravity sensor.

[0100] Output device 504 may include a device that allows information to be output to a user, such as a display screen, printer, speaker, etc.

[0101] The communication interface 502 may include any transceiver or the like to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.

[0102] The processor 501 executes the program stored in the memory 500 and calls other devices, which can be used to implement the various steps of the pop-up window display method provided in the above embodiments of the present application.

[0103] Exemplary computer program products and storage media

[0104] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps in the pop-up window display method described in the embodiment of the present application.

[0105] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0106] In addition, an embodiment of the present application may also be a storage medium on which a computer program is stored, and the computer program is executed by a processor to execute the steps of the pop-up window display method described in the embodiment of the present application.

[0107] For the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0108] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0109] The steps in the methods of each embodiment of the present application can be adjusted in order, combined and deleted according to actual needs, and the technical features recorded in each embodiment can be replaced or combined.

[0110] The modules and sub-modules in the devices and terminals provided in the embodiments of the present application can be merged, divided and deleted according to actual needs.

[0111] In the several embodiments provided in the present application, it should be understood that the disclosed terminals, devices and methods can be implemented in other ways. For example, the terminal embodiments described above are only schematic, for example, the division of modules or submodules is only a logical function division, and there may be other division methods in actual implementation, for example, multiple submodules or modules can be combined or integrated into another module, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0112] The modules or submodules described as separate components may or may not be physically separated, and the components of the modules or submodules may or may not be physical modules or submodules, that is, they may be located in one place, or they may be distributed on multiple network modules or submodules. Some or all of the modules or submodules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0113] In addition, each functional module or submodule in each embodiment of the present application may be integrated into one processing module, or each module or submodule may exist physically separately, or two or more modules or submodules may be integrated into one module. The above-mentioned integrated modules or submodules may be implemented in the form of hardware or in the form of software functional modules or submodules.

[0114] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0115] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly by hardware, software units executed by a processor, or a combination of the two. The software units may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0116] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0117] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A pop-up window display method, characterized in that: include: Obtaining an operation behavior that triggers a pop-up window in a target display area, wherein the target display area is a partial area in a display interface, and the display interface includes at least one display area; Based on the operation behavior, obtaining at least one pop-up window corresponding to the target display area; According to the priorities corresponding to the pop-up windows, the pop-up windows are displayed on top of the target display area, wherein the higher the priority is, the higher the pop-up window is displayed in the target display area.

2. The pop-up window display method according to claim 1, characterized in that: Displaying each pop-up window on top of the target display area according to the priority level of each pop-up window includes: Obtaining a state type of each pop-up window, wherein the state type includes modal and non-modal; According to the priorities respectively corresponding to the pop-up windows, each pop-up window is displayed on top of the target display area based on the state type.

3. The pop-up window display method according to claim 2, characterized in that: The step of displaying each pop-up window on top of the target display area based on the status type according to the priorities corresponding to each pop-up window includes: For the pop-up window whose state type is the modal, each pop-up window is displayed in the target display area based on the modality according to the priority corresponding to each pop-up window, and no response is given to area operation behaviors outside the pop-up window, wherein the area operation behavior refers to the interface operation behavior occurring in the target display area.

4. The pop-up window display method according to claim 2, characterized in that: The step of displaying each pop-up window on top of the target display area based on the status type according to the priorities corresponding to each pop-up window includes: For the pop-up window whose state type is the non-modal, each pop-up window is displayed in the target display area based on the non-modal state according to the priority corresponding to each pop-up window, and responds to area operation behaviors outside the pop-up window, wherein the area operation behavior refers to the interface operation behavior occurring in the target display area.

5. The pop-up window display method according to claim 1, characterized in that: The acquiring, based on the operation behavior, at least one pop-up window corresponding to the target display area includes: Based on the operation behavior, the minimized pop-up window pops up.

6. The pop-up window display method according to claim 1, characterized in that: According to the priorities respectively corresponding to the pop-up windows, before displaying the pop-up windows in the target display area, the method further includes: Get priority modification behavior; Based on the priority modification behavior, the priority corresponding to at least one of the pop-up windows is updated.

7. The pop-up window display method according to claim 1, characterized in that: The acquiring, based on the operation behavior, at least one pop-up window corresponding to the target display area includes: Based on the operation behavior, determining that the target display area is a pop-up window pinnable area, wherein the pop-up window pinnable area is a display area that allows the pop-up window to remain in a pinned state; Obtain at least one pop-up window corresponding to the target display area.

8. The pop-up window display method according to claim 7, characterized in that: The method further comprises: Based on the operation behavior, determining that the target display area is a pop-up window non-top area, wherein the pop-up window non-top area is a display area that does not allow the pop-up window to remain in a top state; Based on the operation behavior, obtaining at least one pop-up window corresponding to the target display area; Each pop-up window is displayed in the target display area according to the priority level corresponding to each pop-up window, wherein each pop-up window is in a non-top state.

9. An electronic device, characterized in that: include: Memory and processor; The memory is connected to the processor and is used to store programs; The processor is used to implement the pop-up window display method as described in any one of claims 1-8 by running the program in the memory.

10. A computer program product, characterized in that includes computer program instructions; When the computer program instructions are executed by a processor, the processor executes the pop-up window display method according to any one of claims 1 to 8.