Multi-screen display method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202510431828.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-08
- Publication Date
- 2026-10-16
- Estimated Expiration
- 2045-04-08
AI Technical Summary
[0005]本发明提供一种多屏显示方法、装置、电子设备及存储介质,用以解决多屏显示的效率低的问题
[0016] The multi-screen display method, apparatus, electronic device, and storage medium provided by this invention, when the main program is displayed across screens and other programs are also displayed, adjusts the display width of the main program based on the display width of the main program and the display widths of the other programs to obtain the target display width of the main program; the display width of the main program is determined based on the number of display screens; then, based on the target display width of the main program, the display position, display width, and display height of the other programs, the other programs are displayed on at least one display screen other than the first display screen; the first display screen is used to display the main program, and the display position of the other programs is determined based on the target display width of the main program. Since the main program and other programs are independent programs and do not need to be nested within the main program, it is possible to adjust the display width of the main program based on the display width of the main program and the display widths of the other programs, thereby achieving cross-screen display without wasting screen resources. Even when other programs consume high resources, it will not cause the main program's response speed to slow down or experience lag, thus improving the efficiency of multi-screen display.
Smart Images

Figure CN120523425B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of display technology, and in particular to a multi-screen display method, apparatus, electronic device, and storage medium. Background Technology
[0002] With the development of technology, various screen sizes have emerged. For example, with the advancement of technology and the continuous reduction in cost of large-screen displays such as 23-inch, 27-inch, and 32-inch, projects are increasingly purchasing larger screens based on actual needs and customer requirements, prioritizing the display of more content more intuitively. Considering various cost factors and the need for cross-screen display, multi-screen setups remain the mainstream configuration.
[0003] In related technologies, the main program is maximized across the screen when it starts. Other programs are embedded into the container of the main program as components. That is, the main program has a container by default. The main component of the main program is initialized to be cross-screen by default. When other components are started, the main component is resized and other components are displayed close to the main component to the right, so that the main component is displayed on screen 1 and other components are displayed on screen 2. When other components are closed, the size of the main component is restored.
[0004] However, the relevant technologies require the dual-screen solution to be considered and designed at the beginning of the software project, and the components of other programs need to be added to the main project of the main program's container. If the other programs are different projects from the main program and need to be launched using the exe method, it will lead to a larger workload and longer time for modifying the main program, and some design of the main program will be sacrificed, resulting in higher costs. Furthermore, if the other programs consume a lot of resources, it will cause the main program to slow down and lag, thus leading to low efficiency of multi-screen display. Summary of the Invention
[0005] This invention provides a multi-screen display method, apparatus, electronic device, and storage medium to solve the problem of low efficiency in multi-screen displays.
[0006] This invention provides a multi-screen display method, comprising: When the main program is displayed across multiple screens and other programs are also displayed, the display width of the main program is adjusted based on the display width of the main program and the display width of the other programs to obtain the target display width of the main program; the display width of the main program is determined based on the number of display screens. Based on the target display width of the main program, the display position, display width, and display height of the other programs, the other programs are displayed on at least one display screen other than the first display screen; the first display screen is used to display the main program, and the display position of the other programs is determined based on the target display width of the main program.
[0007] According to a multi-screen display method provided by the present invention, after determining that the main program is displayed across screens and before the presence of other programs, the method further includes: Configure a first configuration file for the main program and a second configuration file for the other programs; the first configuration file includes the display position, display width, and display height of the main program on the at least one display screen; the second configuration file includes the display position, display width, and display height of the other programs on a target display screen among the at least one display screens; the target display screen is any display screen other than the first display screen among the at least one display screens.
[0008] According to a multi-screen display method provided by the present invention, the display height of the main program is determined based on a reserved menu bar, and the display height of the other programs is the same as that of the main program.
[0009] According to a multi-screen display method provided by the present invention, the method further includes: Assign the first configuration file of the main program to the program display window; The container corresponding to the program display window and the second configuration file of the other program are passed to the main thread; the main thread is used to record the first configuration file of the main program and the second configuration file of the other program, and to process the display of the main program and the other programs.
[0010] According to a multi-screen display method provided by the present invention, adjusting the display width of the main program based on the display width of the main program and the display widths of the other programs to obtain the target display width of the main program includes: Based on the difference between the display width of the main program and the display width of the other programs, the display width of the main program is adjusted to obtain the target display width of the main program.
[0011] According to a multi-screen display method provided by the present invention, the method further includes: After obtaining the target display width of the main program, and assuming that no other programs are displayed, the target display width of the main program is adjusted to the display width of the main program.
[0012] The present invention also provides a multi-screen display device, comprising: The first adjustment module is used to adjust the display width of the main program based on the display width of the main program and the display width of the other programs when the main program is displayed across screens and other programs are displayed, so as to obtain the target display width of the main program; the target display width of the main program is determined based on the number of display screens. The display module is used to display the other programs on at least one display screen other than the first display screen, based on the target display width of the main program, the display position of the other programs, the display width, and the display height; the first display screen is used to display the main program, and the display position of the other programs is determined based on the target display width of the main program.
[0013] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the multi-screen display method as described above.
[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the multi-screen display method as described above.
[0015] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the multi-screen display method as described above.
[0016] The multi-screen display method, apparatus, electronic device, and storage medium provided by this invention, when the main program is displayed across screens and other programs are also displayed, adjusts the display width of the main program based on the display width of the main program and the display widths of the other programs to obtain the target display width of the main program; the display width of the main program is determined based on the number of display screens; then, based on the target display width of the main program, the display position, display width, and display height of the other programs, the other programs are displayed on at least one display screen other than the first display screen; the first display screen is used to display the main program, and the display position of the other programs is determined based on the target display width of the main program. Since the main program and other programs are independent programs and do not need to be nested within the main program, it is possible to adjust the display width of the main program based on the display width of the main program and the display widths of the other programs, thereby achieving cross-screen display without wasting screen resources. Even when other programs consume high resources, it will not cause the main program's response speed to slow down or experience lag, thus improving the efficiency of multi-screen display. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0018] Figure 1 This is one of the schematic diagrams of multi-screen display provided by existing technology.
[0019] Figure 2 This is the second schematic diagram of multi-screen display provided by existing technology.
[0020] Figure 3 This is one of the flowcharts of the multi-screen display method provided by the present invention.
[0021] Figure 4 This is the second flowchart of the multi-screen display method provided by the present invention.
[0022] Figure 5 This is the third flowchart of the multi-screen display method provided by the present invention.
[0023] Figure 6 This is a schematic diagram of the structure of the multi-screen display device provided by the present invention.
[0024] Figure 7 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0025] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0026] To facilitate a clearer understanding of the various embodiments of this application, the relevant knowledge is first introduced as follows.
[0027] I. Existing technology solution 1.
[0028] Figure 1 This is one of the existing screen display diagrams, such as... Figure 1 As shown, existing multi-screen displays mainly involve pre-planning the corresponding display components for each screen, such as displaying the main program on the left (i.e., screen 1) and other components on the right (i.e., screen 2).
[0029] When the main program starts, it maximizes a single screen. When other components need to be started, the program logic calculates and determines whether to display the other components on another screen.
[0030] This approach results in the second screen being wasted if other programs or components are not initialized, as only the desktop is displayed. In today's era of diversified displays, this wastes the corresponding screen resources, fails to achieve the highest utilization rate, and brings a poor user experience.
[0031] II. The solution of existing technology 2.
[0032] Figure 2 This is the second illustration of multi-screen display provided by existing technology, such as... Figure 2 As shown, the main program maximizes across the screen upon startup. Other programs are embedded into the main program's container as components. That is, the main program has a default container, and the main component of the main program initially spans the entire screen. When other components are launched, the main component resizes, and the other components are displayed close to the main component to the right. This achieves the effect of the main component being displayed on screen 1 and other components on screen 2. When other components are closed, the main component's size is restored.
[0033] This solution requires considering and designing a dual-screen solution from the very beginning of the software project. Components from other programs need to be added to the main project within the main program's container. If other programs are different projects from the main program and require launching via an executable (.exe), it will increase the workload and time required to modify the main program, and will also require sacrificing some of the main program's design, increasing costs. Furthermore, if other programs consume a lot of resources, it will slow down the main program's response speed, causing lag and other issues, thus resulting in low efficiency for multi-screen display.
[0034] This invention can be widely used in various industries that have cross-screen requirements but also need to display other programs on another screen at certain times, especially in today's era of diversified displays, where it is necessary to integrate different software and achieve the corresponding functions at low cost. For example, in the field of subway dispatching workstations, it is necessary not only to display the subway operation station map, but also, at certain times, to display the actual operation map for the day. The station map is used to display signal equipment and train status, while the actual operation map is used to display the train's planned running status. In the existing dual-screen setup, the main screen typically displays the station map, and the backup screen displays the operation map. If the operation map is not running, the backup screen displays the desktop. However, in reality, dispatchers will open both software programs to reduce waste, but there will still be a need to display the station map across screens, and even in the future, three-screen or four-screen setups may be required to display two or more software programs. Existing solutions one and two are quite difficult to implement due to both implementation effectiveness and complexity.
[0035] To address the aforementioned issues, this invention provides a multi-screen display method applicable to multi-screen display scenarios across various industries. The main program and other programs are independent programs and do not need to be nested within the main program. The main program is displayed across screens. When other programs need to be displayed, the display width of the main program is adjusted, displaying the main program on the main screen and other programs on other screens. This avoids wasting screen resources and prevents the main program from slowing down or becoming sluggish when other programs consume high resources, thereby improving the efficiency of multi-screen display.
[0036] The following is combined Figures 3-5 The multi-screen display method of the present invention is described.
[0037] Figure 3 This is one of the flowcharts illustrating the multi-screen display method provided by the present invention, such as... Figure 3 As shown, the method includes the following steps 301 and 302.
[0038] Step 301: After the main program is displayed across screens and other programs are displayed, adjust the display width of the main program based on the display width of the main program and the display width of the other programs to obtain the target display width of the main program; the display width of the main program is determined based on the number of display screens.
[0039] It should be noted that the multi-screen display method provided by this invention can be applied to multi-screen display scenarios in various industries. For example, in the subway field, dispatch workstations need to display the subway station map and the actual operation map for the day on multiple screens. The executing entity of this method can be a multi-screen display device, such as an electronic device, or a control module in the multi-screen display device for executing the multi-screen display method.
[0040] This invention employs the .NET development methodology, and the program is implemented based on Windows Presentation Foundation (WPF) or WinForms desktop applications developed using .NET. The main program needs to be displayed across screens via code. The cross-screen solution involves launching the program in a non-maximized manner and configuring the main program's display position (e.g., Left and Top) and its display width and height to determine the default display size when there are more than one screen. The main program can be displayed across two, three, or even more screens. The layout of multiple screens is horizontal, with the leftmost screen being the main screen, and the other screens must be arranged from left to right. All screens must use the same size, resolution, and system scaling.
[0041] After the main program is displayed across screens, it is determined whether other programs are displayed. If other programs are displayed, the display width of the main program needs to be adjusted based on the display width of the main program and the display width of other programs to obtain the target display width of the main program. The display width of the main program is determined based on the number of display screens. For example, if the resolution of a single screen is 1920*1080 and the number of display screens is 2, then the display width of the main program is 1920*2.
[0042] Step 302: Based on the target display width of the main program, the display position, display width, and display height of the other programs, display the other programs on at least one display screen other than the first display screen; the first display screen is used to display the main program, and the display position of the other programs is determined based on the target display width of the main program.
[0043] Specifically, the display position of other programs is determined based on the target display width of the main program. For example, if the target display width of the main program (that is, the adjusted display width of the main program) is 1920, then the Left position of other programs is 1920 and the Top position is 0.
[0044] Based on the target display width of the main program, the display positions, display widths, and display heights of other programs, other programs are displayed on at least one display screen other than the first display screen. For example, based on the target display width of the main program being 1920, other programs are displayed on the second screen, where the Left position of the other programs is 1920, the Top position is 0, and the display width is 1920.
[0045] The display height of other programs is the same as that of the main program. The display height of the main program is determined based on the reserved menu bar. For example, if no menu bar is reserved, the display height of the main program is configured to be 1080; otherwise, the display height of the main program is configured to be 1040.
[0046] The multi-screen display method provided by this invention adjusts the display width of the main program based on its own display width and the display widths of other programs when the main program is displayed across screens and other programs are also displayed, to obtain the target display width of the main program. The display width of the main program is determined based on the number of display screens. Then, based on the target display width of the main program, the display position, display width, and display height of the other programs, the other programs are displayed on at least one display screen other than the first display screen. The first display screen is used to display the main program, and the display position of the other programs is determined based on the target display width of the main program. Since the main program and other programs are independent programs and do not need to be nested within the main program, it is possible to adjust the display width of the main program based on the display width of the main program and the display widths of other programs, thereby achieving cross-screen display without wasting screen resources. Even when other programs consume high resources, it will not cause the main program to slow down or lag, thus improving the efficiency of multi-screen display.
[0047] Optionally, after determining that the main program is displayed across screens and before the other programs are displayed, the method further includes: Configure a first configuration file for the main program and a second configuration file for the other programs; the first configuration file includes the display position, display width, and display height of the main program on the at least one display screen; the second configuration file includes the display position, display width, and display height of the other programs on a target display screen among the at least one display screens; the target display screen is any display screen other than the first display screen among the at least one display screens.
[0048] Specifically, taking a single screen resolution of 1920*1080 as an example, the main program's first configuration file and other programs' second configuration files are configured. The first configuration file includes the main program's display position, display width, and display height on at least one display screen. In the main program's display position, both Left and Top are 0, so that it starts displaying from the top left corner of the first screen in the combination of multiple screens. The main program's display width (Width) is 1920 * the number of screens. The main program's display height (Height) is determined based on the reserved menu bar. If no menu bar is reserved, the main program's display height is configured to 1080; otherwise, the main program's display height is configured to 1040.
[0049] The second configuration file includes the display position, width, and height of other programs on the target display screen in at least one display screen. The target display screen is any display screen other than the first display screen. The display position of other programs is determined based on the target display width of the main program. The target display width is 1920 * number of screens - display width of other programs. Therefore, in the display position of other programs, Left is 1920 * number of screens - display width of other programs, and Top is 0. The display height of other programs is the same as that of the main program. The display height and width of other programs are subject to actual conditions.
[0050] Optionally, the method further includes: The first configuration file of the main program is assigned to the program display window; the container corresponding to the program display window and the second configuration file of the other programs are passed to the main thread; the main thread is used to record the first configuration file of the main program and the second configuration file of the other programs, and to process the display of the main program and the other programs.
[0051] Specifically, during initialization, the first configuration file of the main program is read and assigned to the program display window, i.e., the main program window. Then, the container corresponding to the program display window and the second configuration files of other programs are passed to the main thread, so that the main thread records the first configuration file of the main program and the second configuration files of other programs. In other words, the main thread records the initial display width of the main program and the display width of other programs, and the processing function of the main thread processes the display of the main program and other programs to achieve multi-screen display.
[0052] Figure 4 This is the second flowchart illustrating the multi-screen display method provided by the present invention, as shown below. Figure 4 As shown, the method includes steps 401-404.
[0053] Step 401: Configure the first configuration file of the main program and the second configuration files of other programs; the first configuration file includes the display position, display width and display height of the main program on at least one display screen; the second configuration file includes the display position, display width and display height of other programs on a target display screen in at least one display screen; the target display screen is any display screen other than the first display screen in at least one display screen.
[0054] Step 402: Assign the first configuration file of the main program to the program display window.
[0055] Step 403: Pass the container corresponding to the program display window and the second configuration file of other programs to the main thread.
[0056] Step 404: The main thread records the first configuration file of the main program and the second configuration files of other programs, and processes the display of the main program and the other programs.
[0057] The method provided in this embodiment achieves cross-screen startup by calculating and configuring relevant parameters and adjusting the main program container. When another program needs to be launched, it can be shrunk to free up screen space for the other exe program to be displayed. When the other exe program is closed, it can automatically expand back to its original size for cross-screen display. By using this solution and adjusting the corresponding programs, multi-screen setups can be quickly and easily adapted.
[0058] Optionally, the specific implementation of step 301 above includes: Based on the difference between the display width of the main program and the display width of the other programs, the display width of the main program is adjusted to obtain the target display width of the main program.
[0059] Specifically, the display width of the main program is subtracted from the display width of other programs to obtain the difference between the display width of the main program and the display width of other programs. For example, if the display width of the main program is 1920*2 and the display width of other programs is 1920, then the difference between the display width of the main program and the display width of other programs is 1920. The target display width of the main program, obtained by adjusting the display width of the main program from 1920*2, is 1920, meaning that the main program is displayed on the first screen and other programs are displayed on the second screen.
[0060] Optionally, the method further includes: After obtaining the target display width of the main program, and assuming that no other programs are displayed, the target display width of the main program is adjusted to the display width of the main program.
[0061] Specifically, after obtaining the target display width of the main program and assuming no other programs are displayed, the operation of other programs is canceled, and the target display width of the main program is adjusted to the display width of the main program, thus restoring the cross-screen display of the main program.
[0062] Figure 5 This is the third flowchart of the multi-screen display method provided by the present invention, as shown below. Figure 5 As shown, the method includes steps 501-505.
[0063] Step 501: After the main program is displayed across screens, determine if any other programs are displayed. If other programs are displayed, proceed to step 502; if no other programs are displayed, proceed to step 504.
[0064] Step 502: Based on the display width of the main program and the display width of other programs, adjust the display width of the main program to obtain the target display width of the main program.
[0065] Step 503: Based on the target display width of the main program, the display position, display width, and display height of other programs, display other programs on at least one display screen other than the first display screen; the first display screen is used to display the main program, and the display position of other programs is determined based on the target display width of the main program.
[0066] Step 504: Main program is displayed across screens.
[0067] Step 505: After obtaining the target display width of the main program and assuming no other programs are displayed, adjust the target display width of the main program to the display width of the main program.
[0068] The method provided by this invention can adapt to multi-screen display in a horizontal layout. It involves configuring a first configuration file for the main program and second configuration files for other programs, and using a container for the main program to achieve cross-screen display when the main program starts. When other programs need to be launched, the display width of the main program is automatically adjusted, i.e., it shrinks to free up screen space for other programs to display. When other programs are closed, the main program automatically expands to its original display size for cross-screen display. Furthermore, it can quickly and easily adapt to multi-screen displays, supports calls between the main program and other programs, has higher flexibility, and the collapsible multi-screen design provides a better user experience, accommodating more screens than just dual screens.
[0069] The multi-screen display device provided by the present invention will be described below. The multi-screen display device described below can be referred to in correspondence with the multi-screen display method described above.
[0070] Figure 6 This is a schematic diagram of the structure of the multi-screen display device provided by the present invention, as shown below. Figure 6 As shown, the multi-screen display device 600 includes: a first adjustment module 601 and a display module 602; wherein, The first adjustment module 601 is used to adjust the display width of the main program based on the display width of the main program and the display width of the other programs when the main program is displayed across screens and other programs are displayed, so as to obtain the target display width of the main program; the target display width of the main program is determined based on the number of display screens. Display module 602 is used to display the other programs on at least one display screen other than the first display screen, based on the target display width of the main program, the display position of the other programs, the display width, and the display height; the first display screen is used to display the main program, and the display position of the other programs is determined based on the target display width of the main program.
[0071] The multi-screen display device provided by this invention, when the main program is displayed across screens and other programs are also displayed, adjusts the display width of the main program based on the display width of the main program and the display widths of the other programs to obtain the target display width of the main program. The display width of the main program is determined based on the number of display screens. Then, based on the target display width of the main program, the display position, display width, and display height of the other programs, the other programs are displayed on at least one display screen other than the first display screen. The first display screen is used to display the main program, and the display position of the other programs is determined based on the target display width of the main program. Since the main program and other programs are independent programs and do not need to be nested within the main program, it can adjust the display width of the main program based on the display width of the main program and the display width of other programs, thereby achieving cross-screen display without wasting screen resources. Even when other programs consume high resources, it will not cause the main program to slow down or lag, thus improving the efficiency of multi-screen display.
[0072] Optionally, after determining that the main program is displayed across screens and before the other programs are displayed, the multi-screen display device 600 further includes: A configuration module is used to configure a first configuration file for the main program and a second configuration file for the other programs; the first configuration file includes the display position, display width, and display height of the main program on the at least one display screen; the second configuration file includes the display position, display width, and display height of the other programs on a target display screen among the at least one display screen; the target display screen is any display screen other than the first display screen among the at least one display screens.
[0073] Optionally, the display height of the main program is determined based on the reserved menu bar, and the display height of the other programs is the same as that of the main program.
[0074] Optionally, the multi-screen display device 600 further includes: The assignment module is used to assign the first configuration file of the main program to the program display window; The transmission module is used to transmit the container corresponding to the program display window and the second configuration file of the other program to the main thread; the main thread is used to record the first configuration file of the main program and the second configuration file of the other program, and to process the display of the main program and the other programs.
[0075] Optionally, the first adjustment module 601 is specifically used for: Based on the difference between the display width of the main program and the display width of the other programs, the display width of the main program is adjusted to obtain the target display width of the main program.
[0076] Optionally, the multi-screen display device 600 further includes: The second adjustment module is used to adjust the target display width of the main program to the display width of the main program after obtaining the target display width of the main program and when no other program is displayed.
[0077] Figure 7 This is a schematic diagram of the physical structure of an electronic device provided by the present invention, such as... Figure 7 As shown, the electronic device 700 may include a processor 710, a communications interface 720, a memory 730, and a communication bus 740, wherein the processor 710, communications interface 720, and memory 730 communicate with each other via the communication bus 740. The processor 710 can call logical instructions in the memory 730 to execute a multi-screen display method. This method includes: after the main program is displayed across screens and other programs are displayed, adjusting the display width of the main program based on the display width of the main program and the display widths of the other programs to obtain a target display width for the main program; the display width of the main program is determined based on the number of display screens; based on the target display width of the main program, the display position, display width, and display height of the other programs, displaying the other programs on at least one display screen other than the first display screen; the first display screen is used to display the main program, and the display position of the other programs is determined based on the target display width of the main program.
[0078] Furthermore, the logical instructions in the aforementioned memory 730 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0079] On the other hand, the present invention also provides a computer program product, the computer program product including a computer program, the computer program being able to be stored on a non-transitory computer-readable storage medium, the computer program being executed by a processor, the computer being able to execute the multi-screen display method provided by the above methods, the method including: after the main program is displayed across screens and other programs are displayed, adjusting the display width of the main program based on the display width of the main program and the display width of the other programs to obtain a target display width of the main program; the display width of the main program is determined based on the number of display screens; based on the target display width of the main program, the display position, display width, and display height of the other programs, displaying the other programs on at least one display screen other than the first display screen; the first display screen is used to display the main program, and the display position of the other programs is determined based on the target display width of the main program.
[0080] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the multi-screen display method provided by the above methods. The method includes: after a main program is displayed across multiple screens and other programs are displayed, adjusting the display width of the main program based on the display width of the main program and the display widths of the other programs to obtain a target display width for the main program; the display width of the main program is determined based on the number of display screens; and displaying the other programs on at least one display screen other than the first display screen, based on the target display width of the main program, the display position, display width, and display height of the other programs; the first display screen is used to display the main program, and the display position of the other programs is determined based on the target display width of the main program.
[0081] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0082] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0083] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A multi-screen display method, characterized in that, include: When the main program is displayed across screens and other programs are also displayed, the display width of the main program is adjusted based on the display width of the main program and the display width of the other programs to obtain the target display width of the main program; the target display width of the main program is determined based on the number of display screens; adjusting the display width of the main program based on the display width of the main program and the display width of the other programs to obtain the target display width of the main program includes: adjusting the display width of the main program based on the difference between the display width of the main program and the display width of the other programs to obtain the target display width of the main program; Based on the target display width of the main program, the display position, display width, and display height of the other programs, the other programs are displayed on at least one display screen other than the first display screen; the first display screen is used to display the main program, and the display position of the other programs is determined based on the target display width of the main program.
2. The multi-screen display method according to claim 1, characterized in that, After determining that the main program is displayed across screens, and before the presence of other programs displayed, the method further includes: Configure a first configuration file for the main program and a second configuration file for the other programs; the first configuration file includes the display position, display width, and display height of the main program on the at least one display screen; the second configuration file includes the display position, display width, and display height of the other programs on a target display screen among the at least one display screens; the target display screen is any display screen other than the first display screen among the at least one display screens.
3. The multi-screen display method according to claim 1 or 2, characterized in that, The display height of the main program is determined based on the reserved menu bar, and the display height of the other programs is the same as that of the main program.
4. The multi-screen display method according to claim 2, characterized in that, The method further includes: Assign the first configuration file of the main program to the program display window; The container corresponding to the program display window and the second configuration file of the other program are passed to the main thread; the main thread is used to record the first configuration file of the main program and the second configuration file of the other program, and to process the display of the main program and the other programs.
5. The multi-screen display method according to claim 1, characterized in that, The method further includes: After obtaining the target display width of the main program, and assuming that no other programs are displayed, the target display width of the main program is adjusted to the display width of the main program.
6. A multi-screen display device, characterized in that, include: The first adjustment module is used to adjust the display width of the main program based on the display width of the main program and the display width of the other programs when the main program is displayed across screens and other programs are displayed, to obtain the target display width of the main program; the target display width of the main program is determined based on the number of display screens; specifically, the first adjustment module is used to adjust the display width of the main program based on the difference between the display width of the main program and the display width of the other programs, to obtain the target display width of the main program. The display module is used to display the other programs on at least one display screen other than the first display screen, based on the target display width of the main program, the display position of the other programs, the display width, and the display height; the first display screen is used to display the main program, and the display position of the other programs is determined based on the target display width of the main program.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the multi-screen display method as described in any one of claims 1 to 5.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the multi-screen display method as described in any one of claims 1 to 5.
9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the multi-screen display method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Method for displaying plurality of application windows by mobile terminal and mobile terminal
CN110324489A
Multi-screen display system and method
CN110377260A