CN111488189B - Window display method, device, equipment and computer readable storage medium - Google Patents

Window display method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN111488189B
CN111488189B CN202010202235.4A CN202010202235A CN111488189B CN 111488189 B CN111488189 B CN 111488189B CN 202010202235 A CN202010202235 A CN 202010202235A CN 111488189 B CN111488189 B CN 111488189B
Authority
CN
China
Prior art keywords
target
window
application program
display
preloaded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010202235.4A
Other languages
Chinese (zh)
Other versions
CN111488189A (en
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Hanyin Electronic Technology Co Ltd
Original Assignee
Xiamen Hanyin Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Hanyin Electronic Technology Co Ltd filed Critical Xiamen Hanyin Electronic Technology Co Ltd
Priority to CN202010202235.4A priority Critical patent/CN111488189B/en
Publication of CN111488189A publication Critical patent/CN111488189A/en
Application granted granted Critical
Publication of CN111488189B publication Critical patent/CN111488189B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses a window display method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: when an application program is started, acquiring a target window in the application program; initializing the target window to realize the preloading of the target window; storing the preloaded target form in a form dictionary; when an instruction for calling the target form is detected, inquiring a corresponding preloaded target form from the form dictionary according to the identifier of the called target form; and calling the preloaded target form to display the target form on a display interface. The invention improves the delay problem possibly generated during window display by preloading the target window and storing the target window in the window dictionary.

Description

Window display method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for window display.
Background
In Net programming, winForm forms can be used to design forms and visual controls to create rich Windows-based applications. WinForm forms provide a rich set of controls, and developers can define new controls that are unique to themselves, allowing easy creation of command windows, buttons, menus, toolbars, and other screen elements with the flexibility needed to accommodate diverse business needs.
One of the most common scenarios for application development is the display of data on forms. The WinForm window provides comprehensive support for database processing. The data in the database can be accessed and displayed and manipulated on the forms.
Currently, net programming processing of a WinForm form generally initializes the form at a place where the form is actually called, and then loads components, fills data, and displays the form. It has the following disadvantages: if the content of the window is more, the time for capturing the filling data is longer, and then the window display delay appears, and the user experience is not good.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus, a device and a computer readable storage medium for displaying a frame, which can improve the problem of frame display delay.
The embodiment of the invention provides a form display method, which comprises the following steps:
when an application program is started, acquiring a target window in the application program;
initializing the target window to realize the preloading of the target window;
storing the preloaded target form in a form dictionary;
when an instruction for calling the target form is detected, inquiring a corresponding preloaded target form from the form dictionary according to the identifier of the called target form;
and calling the preloaded target window to display the target window on a display interface.
Preferably, the method further comprises the following steps:
and when the operation of closing the target form is detected, removing the target form on the display interface, and still storing the preloaded target form in the form dictionary.
Preferably, the method further comprises the following steps:
and when the operation of exiting the application program is detected, releasing the preloaded target form stored in the form dictionary.
Preferably, the target window is a target window whose content data is greater than a preset threshold.
Preferably, the target forms are all forms in the application program, and the preloading sequence of the forms is determined according to the called priority of the forms; wherein the higher the priority of said frames, the more advanced the preloading order.
Preferably, the priority of the form is determined according to the display level of the form in the whole application program; or the priority of the form is determined according to the historical frequency of the form called in the whole application program.
Preferably, the target frames are all frames in the application program, and the preloading sequence of the frames is determined according to the size of content data contained in the frames; wherein the larger frames of the content data are preloaded in an order earlier.
The embodiment of the invention also provides a window display device, which comprises:
the system comprises a target window acquisition unit, a target window acquisition unit and a target window display unit, wherein the target window acquisition unit is used for acquiring a target window in an application program when the application program is started;
the preloading unit is used for initializing the target window body so as to realize preloading of the target window body;
the storage unit is used for storing the preloaded target form in the form dictionary;
the query unit is used for querying a corresponding preloaded target form from the form dictionary according to the identifier of the called target form when an instruction for calling the target form is detected;
and the calling unit is used for calling the preloaded target form so as to display the target form on a display interface.
The embodiment of the present invention further provides a form display device, which includes a memory and a processor, where a computer program is stored in the memory, and the computer program can be executed by the processor to implement the form display method.
An embodiment of the present invention further provides a computer-readable storage medium, which is characterized by storing a computer program, where the computer program can be executed by a processor of a device where the computer-readable storage medium is located, so as to implement the above window display method.
In the embodiment, after the application program is started, the target window is preloaded and stored in the window dictionary, and when the target window needs to be called, the preloaded target window is directly read from the window dictionary to be displayed, so that the problem of display delay possibly caused by instantiation of the target window when the target window is called is solved, and the practical experience of a user is improved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a frame display method according to a first embodiment of the present invention.
Fig. 2 is a schematic block diagram of a window display device according to a second embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a first embodiment of the present invention provides a frame display method, which can be executed by a frame display device, and in particular, by one or more processors in the frame display device, and at least includes the following steps:
s101, when an application program is started, a target form in the application program is obtained.
In this embodiment, the window display device may be an intelligent terminal with a processing amount capability and a display screen, such as a desktop computer, a notebook computer, a tablet computer, and an intelligent printer. The window display device is provided with an operating system and an application program, wherein the operating system may be a windows system, and the application program is used for satisfying various requirements of a user, for example, may be an application program for shopping, working, learning and entertainment. After the application program is started, according to the calling operation of the user, data can be displayed to the user through a form (for example, a window form). For example, a login form may be presented at the user login interface, and when the user is querying for certain data, the data may be displayed through the form.
And S102, initializing the target window to realize the preloading of the target window.
In this embodiment, after the application program is started, the window display device acquires a target window in the application program, and instantiates the target window in advance, including initializing a window assembly and loading displayed content data to complete preloading of the target window.
S103, storing the preloaded target form in a form dictionary.
In this embodiment, after completing preloading of the target form, the form display device may store the preloaded target form in a form dictionary, where the stored content includes an identifier of the target form and a preloaded target form corresponding to the identifier.
And S104, when an instruction for calling the target form is detected, inquiring a corresponding preloaded target form from the form dictionary according to the identifier of the called target form.
And S105, calling the preloaded target window to display the target window on a display interface.
In this embodiment, when a user needs to call a form in the process of operating the application program, the form display device may obtain an identifier of the called form, then query the form dictionary according to the identifier, and if a preloaded target form corresponding to the identifier exists in the form dictionary, directly call the loaded target form, so as to quickly display the target form on a display interface. And if the form dictionary does not exist, instantiating the form according to the original method, including initializing the form component and loading the content data to be displayed, and displaying the form on a display interface after instantiation.
In summary, according to the window display method provided in this embodiment, after the application program is started, the target window is preloaded and stored in the window dictionary, and when the target window needs to be called, the preloaded target window is directly read from the window dictionary for display, so that the problem of display delay possibly caused by instantiation of the target window when the target window is called is avoided, and the practical experience of the user is improved.
In order to facilitate an understanding of the invention, some preferred embodiments of the invention are described further below.
On the basis of the above embodiment, in a preferred embodiment of the present invention, the method further includes:
when the operation of closing the target frame is detected, the target frame is removed on the display interface, and the preloaded target frame is still stored in the frame dictionary.
In this embodiment, after the user calls the target form, the user may close the target form, and at this time, the form display device will remove the target form on the display interface, but will not release the target form in the memory, but continue to store the target form in the form dictionary for the next call.
On the basis of the above embodiment, in a preferred embodiment of the present invention, the method further includes:
and when the operation of exiting the application program is detected, releasing the preloaded target form stored in the form dictionary.
In this embodiment, when the user exits the operation of the application program, the preloaded target form stored in the form dictionary is released, so as to ensure that the memory is not continuously occupied.
On the basis of the above embodiment, in a preferred embodiment of the present invention, the target frame is a target frame whose content data is greater than a preset threshold.
Generally, the target frame in this embodiment is a frame containing a large amount of content data, that is, it takes a long time to instantiate the target frame, and therefore, it needs to be instantiated in advance to avoid generating a display delay. The instantiation of the forms with less content data needs shorter time and does not cause obvious delay, so that the forms do not need to be instantiated in advance, and the phenomenon that the inching is caused by occupying a large amount of computing resources of a processor in a short time is avoided.
On the basis of the above-described embodiment, in a preferred embodiment of the present invention:
the target forms are all forms in the application program, and the preloading sequence of the forms is determined according to the called priority of the forms; wherein the higher the priority of said frames, the more advanced the preloading order.
In this embodiment, considering that the priorities of different frame calls are different, the preloading order of the frames can be adjusted according to the priorities of the frames, for example, a frame with a high priority is preloaded preferentially, so that when a user calls a frame, the frame is not preloaded yet.
The priority of the form can be determined according to the display level of the form in the whole application program, and also can be determined according to the historical frequency of the form called in the whole application program. The present invention is not particularly limited.
On the basis of the above-described embodiment, in a preferred embodiment of the present invention:
the target forms are all forms in the application program, and the preloading sequence of the forms is determined according to the size of content data contained in the forms; wherein the preloading order of the frames with larger content data is earlier.
In this embodiment, since the frames with a large amount of content data require a long time for instantiation, it is necessary to prioritize instantiation to avoid display delay caused by no preloading at the time of calling. Therefore, in the embodiment, the content data of each window is sorted from large to small, and then instantiated according to the sorting result, so that the windows with more content data are preferentially instantiated.
The second embodiment of the present invention further provides a window display device, including:
a target form acquiring unit 210, configured to acquire a target form in an application when the application is started;
the preloading unit 220 is configured to initialize the target window to implement preloading of the target window;
a saving unit 230, configured to save the preloaded target frame in the frame dictionary;
a query unit 240, configured to, when an instruction to invoke the target form is detected, query a corresponding preloaded target form from the form dictionary according to an identifier of the invoked target form;
and the invoking unit 250 is configured to invoke the preloaded target form to display the target form on a display interface.
Preferably, the method further comprises the following steps:
and the removing unit is used for removing the target form on the display interface when the operation of closing the target form is detected, and still storing the preloaded target form in the form dictionary.
Preferably, the method further comprises the following steps:
and the releasing unit is used for releasing the preloaded target form stored in the form dictionary when the operation of exiting the application program is detected.
Preferably, the target window is a target window whose content data is greater than a preset threshold.
Preferably, the target forms are all forms in the application program, and the preloading sequence of the forms is determined according to the called priority of the forms; wherein the higher the priority of said frames, the more advanced the preloading order.
Preferably, the priority of the form is determined according to the display level of the form in the whole application program; or the priority of the form is determined according to the historical frequency of the form called in the whole application program.
Preferably, the target frames are all frames in the application program, and the preloading sequence of the frames is determined according to the size of content data contained in the frames; wherein the larger frames of the content data are preloaded in an order earlier.
The third embodiment of the present invention further provides a window display device, which includes a memory and a processor, where the memory stores a computer program, and the computer program can be executed by the processor to implement the window display method.
The fourth embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program, where the computer program can be executed by a processor of a device in which the computer-readable storage medium is located, so as to implement the window display method described above.
In the embodiment, after the application program is started, the target window is preloaded and stored in the window dictionary, and when the target window needs to be called, the preloaded target window is directly read from the window dictionary to be displayed, so that the problem of display delay possibly caused by initialization of the target window when the target window is called is avoided, and the practical experience of a user is improved.
Illustratively, the computer programs described herein can be divided into one or more modules that are stored in the memory and executed by the processor to implement the invention. The one or more modules may be a series of computer program instruction segments capable of performing certain functions, which are used to describe the execution of the computer program in the implementation device. For example, the device described in the second embodiment of the present invention.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an APPlication Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor, which may be a microprocessor or the processor may be any conventional processor or the like, is the control center for the printing method, and connects the various parts of the overall window display method using various interfaces and lines.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the printing method by executing or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, a text conversion function, etc.), and the like; the storage data area may store data (such as audio data, text message data, etc.) created according to the use of the user terminal, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein, the module for realizing the user terminal can be stored in a computer readable storage medium if it is realized in the form of software functional unit and sold or used as a stand-alone product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U.S. disk, removable hard disk, magnetic diskette, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signal, telecommunications signal, and software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that the above-described embodiments of the apparatus are merely illustrative, where the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (6)

1. A method for displaying a window, comprising:
when an application program is started, acquiring a target window in the application program; the target forms are all forms in the application program, and the preloading sequence of the forms is determined according to the called priority of the forms; the higher the priority of the form is, the more ahead the preloading sequence is; the priority of the form is determined according to the display level of the form in the whole application program;
initializing the target window to realize the preloading of the target window;
storing the preloaded target form in a form dictionary;
when an instruction for calling the target form is detected, inquiring a corresponding preloaded target form from the form dictionary according to the identifier of the called target form;
and calling the preloaded target form to display the target form on a display interface.
2. The window display method of claim 1, further comprising:
and when the operation of closing the target form is detected, removing the target form on the display interface, and still storing the preloaded target form in the form dictionary.
3. The window display method of claim 1, further comprising:
and when the operation of exiting the application program is detected, releasing the preloaded target form stored in the form dictionary.
4. A window display apparatus, comprising:
the system comprises a target window acquisition unit, a target window acquisition unit and a target window display unit, wherein the target window acquisition unit is used for acquiring a target window in an application program when the application program is started; the target forms are all forms in the application program, and the preloading sequence of the forms is determined according to the called priority of the forms; the higher the priority of the form is, the more ahead the preloading sequence is; the priority of the form is determined according to the display level of the form in the whole application program;
the preloading unit is used for initializing the target window body so as to realize preloading of the target window body;
the storage unit is used for storing the preloaded target form in the form dictionary;
the query unit is used for querying a corresponding preloaded target form from the form dictionary according to the identifier of the called target form when an instruction for calling the target form is detected;
and the calling unit is used for calling the preloaded target window so as to display the target window on a display interface.
5. A frame display device comprising a memory and a processor, said memory having stored therein a computer program executable by said processor for implementing a frame display method according to any of claims 1 to 3.
6. A computer-readable storage medium, characterized in that a computer program is stored, which computer program is executable by a processor of a device in which the computer-readable storage medium is located, for implementing a frame display method according to any of claims 1 to 3.
CN202010202235.4A 2020-03-20 2020-03-20 Window display method, device, equipment and computer readable storage medium Active CN111488189B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010202235.4A CN111488189B (en) 2020-03-20 2020-03-20 Window display method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010202235.4A CN111488189B (en) 2020-03-20 2020-03-20 Window display method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111488189A CN111488189A (en) 2020-08-04
CN111488189B true CN111488189B (en) 2022-11-18

Family

ID=71794474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010202235.4A Active CN111488189B (en) 2020-03-20 2020-03-20 Window display method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111488189B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108037867A (en) * 2017-12-26 2018-05-15 珠海市魅族科技有限公司 Application program page display method and device, terminal, readable storage medium storing program for executing
CN108614722A (en) * 2018-05-10 2018-10-02 Oppo广东移动通信有限公司 Application program preloads method, apparatus, storage medium and terminal
CN109976821A (en) * 2017-12-14 2019-07-05 广东欧珀移动通信有限公司 Application program loading method, device, terminal and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9535565B2 (en) * 2013-05-13 2017-01-03 Microsoft Technology Licensing, Llc Smart insertion of applications into layouts

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976821A (en) * 2017-12-14 2019-07-05 广东欧珀移动通信有限公司 Application program loading method, device, terminal and storage medium
CN108037867A (en) * 2017-12-26 2018-05-15 珠海市魅族科技有限公司 Application program page display method and device, terminal, readable storage medium storing program for executing
CN108614722A (en) * 2018-05-10 2018-10-02 Oppo广东移动通信有限公司 Application program preloads method, apparatus, storage medium and terminal

Also Published As

Publication number Publication date
CN111488189A (en) 2020-08-04

Similar Documents

Publication Publication Date Title
EP3754490B1 (en) User interface rendering method and apparatus, and terminal
US11768694B2 (en) Content sharing method, device, terminal and storage medium
WO2019184348A1 (en) Split-screen display and operation method and apparatus, terminal device, and storage medium
US9558016B2 (en) Platform system, method for changing support hardware configuration of universal extensible firmware interface basic input output system and computer program product
CN110968415B (en) Scheduling method and device of multi-core processor and terminal
CN108228344B (en) Multi-process memory processing method and device, computer device and readable storage medium
CN108632533A (en) A kind of control method of camera, mobile terminal and computer readable storage medium
CN111124668A (en) Memory release method and device, storage medium and terminal
CN111104178A (en) Dynamic library loading method, terminal device and storage medium
CN107506483A (en) Page loading method, device, electronic equipment and storage medium
CN115309516A (en) Application life cycle detection method and device and computer equipment
CN109739487B (en) Business logic processing method and device and computer readable storage medium
CN106610828B (en) Android system-based GIF animation playing method and device
CN111179369B (en) GPU rendering method and device based on android system
CN113885971A (en) State management method and device based on self-adaptive platform system
CN111476007B (en) Table generation method, table generation device, computer device and computer-readable storage medium
CN111488189B (en) Window display method, device, equipment and computer readable storage medium
CN109254803A (en) Application program launching control method, device, terminal and readable storage medium storing program for executing
CN110083355B (en) APP page processing method and device
CN113407254A (en) Form generation method and device, electronic equipment and storage medium
CN112203241A (en) Fast application calling and displaying method and device based on rich media message
CN112463383A (en) GPU (graphics processing Unit) distribution method, system, storage medium and equipment
CN116954384A (en) Implementation method and device of custom soft keyboard, electronic equipment and storage medium
CN110968373A (en) Page switching implementation method and device, storage medium and processor
EP3848800B1 (en) Method and apparatus for displaying message box, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant