CN112817505A - Software information interface display method and device, storage medium and equipment - Google Patents

Software information interface display method and device, storage medium and equipment Download PDF

Info

Publication number
CN112817505A
CN112817505A CN202110099833.8A CN202110099833A CN112817505A CN 112817505 A CN112817505 A CN 112817505A CN 202110099833 A CN202110099833 A CN 202110099833A CN 112817505 A CN112817505 A CN 112817505A
Authority
CN
China
Prior art keywords
information
software
bitmap
interface
description table
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.)
Pending
Application number
CN202110099833.8A
Other languages
Chinese (zh)
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.)
Shenzhen Biocare Bio Medical Equipment Co ltd
Original Assignee
Shenzhen Biocare Bio Medical Equipment 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 Shenzhen Biocare Bio Medical Equipment Co ltd filed Critical Shenzhen Biocare Bio Medical Equipment Co ltd
Priority to CN202110099833.8A priority Critical patent/CN112817505A/en
Publication of CN112817505A publication Critical patent/CN112817505A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a software information interface display method, which comprises the following steps: acquiring a software window equipment description table; creating a memory device description table and a bitmap compatible with the software window device description table in a memory, and selecting the bitmap into the memory device description table; acquiring an information item required to be displayed on a software information interface; drawing the information items into a bitmap according to a preset typesetting format; and copying the bitmap into a software window device description table, and displaying a software information interface through a display device. According to the method, the interface is well drawn in the bitmap of the memory device description table and then copied to the software window device description table for display through the drawing mode, so that the problems of setting and calling of a large number of controls in a common method are solved, and the development efficiency and the display speed of the software interface are improved; meanwhile, the software interface is uniformly painted, the problem of disordered color tones is solved, and the visual effect of interface display is improved. In addition, a software information interface display device, a storage medium and equipment are also provided.

Description

Software information interface display method and device, storage medium and equipment
Technical Field
The invention relates to the technical field of graphical user interfaces, in particular to a software information interface display method, a software information interface display device, a software information interface storage medium and software information interface equipment.
Background
Currently, many medical-assisted diagnostic analysis software require a large number of editable information items to be displayed on an interface, such as an information summary interface, a report interface, and the like, which not only display a large number of information items, but also require that the content of the information items be edited and modified.
In view of the above requirements, a large number of combinations of "text + editable box" interface controls are used in a general method. Interface controls refer to visual graphical elements, such as buttons, text edit boxes, etc., that can be placed on a form. This approach creates three problems. Firstly, because the number of the controls is large, the development is easy to be disordered, the development efficiency is low, and even the number of the controls exceeds 255 extreme values limited by an interface generating tool, so that the controls cannot be generated and adjusted by using a visual interface layout tool; secondly, because the editable control is provided with a blank editing area and a frame, the color of the text control is inconsistent with that of the background, so that the interface color is disordered, and the information viewing is influenced; thirdly, each control is a class object in program implementation, when an interface is refreshed or scrolled, a series of functions such as message control, drawing and displaying and the like of each control need to be called, when one interface control is too many, the interface is easy to flicker in a pause mode during refreshing, the interface display speed is low, and user experience is influenced.
Disclosure of Invention
In view of the above, it is necessary to provide a software information interface display method, device, storage medium and apparatus, which can improve the interface development efficiency and improve the display speed and visual effect of the interface.
A software information interface display method, the method comprising:
acquiring a software window equipment description table;
creating a memory device description table and a bitmap compatible with the software window device description table in a memory, and selecting the bitmap into the memory device description table;
acquiring information items required to be displayed on a software information interface, wherein the information items comprise information titles, edit boxes and information data, and each information item has an enumeration value which corresponds to the information item;
drawing the information items into the bitmap according to a preset typesetting format;
and copying the bitmap into the software window equipment description table, and displaying a software information interface through display equipment.
A software information interface display apparatus, the apparatus comprising:
the first acquisition module is used for acquiring a software window equipment description table;
a preparation module, configured to create a memory device description table and a bitmap compatible with the software window device description table in a memory, and select the bitmap into the memory device description table;
the second acquisition module is used for acquiring information items which need to be displayed on a software information interface, wherein the information items comprise information titles, edit boxes and information data, and each information item has an enumeration value which corresponds to the information item;
the drawing module is used for drawing the information item into the bitmap according to a preset typesetting format;
and the display module is used for copying the bitmap into the software window equipment description table and displaying a software information interface through display equipment.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
acquiring a software window equipment description table;
creating a memory device description table and a bitmap compatible with the software window device description table in a memory, and selecting the bitmap into the memory device description table;
acquiring information items required to be displayed on a software information interface, wherein the information items comprise information titles, edit boxes and information data, and each information item has an enumeration value which corresponds to the information item;
drawing the information items into the bitmap according to a preset typesetting format;
and copying the bitmap into the software window equipment description table, and displaying a software information interface through display equipment.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
acquiring a software window equipment description table;
creating a memory device description table and a bitmap compatible with the software window device description table in a memory, and selecting the bitmap into the memory device description table;
acquiring information items required to be displayed on a software information interface, wherein the information items comprise information titles, edit boxes and information data, and each information item has an enumeration value which corresponds to the information item;
drawing the information items into the bitmap according to a preset typesetting format;
and copying the bitmap into the software window equipment description table, and displaying a software information interface through display equipment.
The software information interface display method, the device, the storage medium and the equipment firstly acquire a software window equipment description table, then create a memory equipment description table and a bitmap compatible with the software window equipment description table in a memory, and select the bitmap into the memory equipment description table; then, information items needing to be displayed on a software information interface are obtained, wherein the information items comprise information titles, edit boxes and information data, and each information item has an enumeration value which corresponds to the information item; and drawing the information items into the bitmap according to a preset typesetting format, copying the bitmap into the software window equipment description table, and displaying a software information interface through display equipment. The software information interface is output and displayed in a drawing mode, the interface is drawn in a bitmap of the memory device description table and then copied to the software window device description table for display, the problems of setting and calling of a large number of controls in a common method are solved, and the development efficiency and the display speed of the software interface are improved; meanwhile, the problem of disordered color tones in a common method is solved by uniformly drawing the information items, and the visual effect of interface display is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a flowchart illustrating an implementation of a software interface display method according to an embodiment;
FIG. 2 is a sample diagram of information items in one embodiment;
FIG. 3 is a schematic diagram of a portion of a software information interface in one embodiment;
FIG. 4 is a diagram of editing informational data in one embodiment;
FIG. 5 is a block diagram showing the structure of a software information interface display device according to an embodiment;
FIG. 6 is a block diagram of a computer device in one embodiment.
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.
As shown in fig. 1, a software interface display method is proposed, which comprises the following steps:
step 102, obtaining a software window device description table.
The device description table is also called a device context (DC for short), and is a graph mode (data) structure defining a group of graph objects and their attributes, and influencing output. Windows provides a DC for interaction between applications and physical devices.
Once the Windows is created, the Windows automatically generate a corresponding DC data structure, and a user can use the structure to implement operations on the window display area, such as drawing lines, writing text, drawing bitmaps, filling and the like; therefore, the software window DC refers to a DC data structure of a Windows corresponding to software.
It can be understood that to display the software information interface, the software information interface needs to be output in the software window through the software window DC and displayed through the display device, and to achieve this purpose, the software window DC needs to be acquired first.
And 104, creating a memory device description table and a bitmap compatible with the software window device description table in a memory, and selecting the bitmap into the memory device description table.
The memory DC compatible with the software window DC is a DC which is created in a memory and has the same attribute with the software window DC, so that software can directly copy a software information interface into the software window DC after drawing the software information interface in the memory DC, and the problems of frequent refreshing and flickering caused by direct drawing of the software window DC can be avoided; because the created memory DC does not include a bitmap by default, a bitmap having the same attribute as that of the software window DC needs to be correspondingly created for drawing, so that the bitmap can be directly displayed on the display device through the software window DC after drawing on the bitmap.
And after the bitmap is selected into the memory DC, drawing on the bitmap, wherein the drawing operation is invalid before the bitmap is not selected.
In one embodiment, a buffer area is created in a memory, a memory device description table and a bitmap compatible with the software window device description table are created in the buffer area, the bitmap is selected into the memory device description table for drawing, and memory resources occupied by the buffer area are released after a software process needing software information interface display is finished.
And 106, acquiring information items required to be displayed on a software information interface, wherein the information items comprise information titles, edit boxes and information data, and each information item has an enumeration value which corresponds to the information item.
The information item refers to information content displayed on a software information interface by software, as shown in fig. 2, fig. 2 is a sample diagram of the information item in one embodiment, the left "total heart beat number" is an information title, and the right is a rectangular edit box and information data "82654" in the box.
Typically all displayed information items are held in data structure properties. In order to facilitate indexing of information items and retrieval of their data, a mapping of information items to their fields in a data structure needs to be established. In the scheme, enumeration values are used for realizing the mapping function, an independent corresponding enumeration value is defined for each information item as an ID of the enumeration value, and the ID is mapped to a data structure field to obtain information item data.
It is understood that, when defining an enumerated value of an information item, the information item is also defined in the code as an enumerated item, and an english name of the information item is defined as an enumerated name, for example: total heart beat-E _ TotalBeats (2), 2 is an enumerated value. In actual application, the enumeration name of the information item is found first, and then the corresponding enumeration value is found according to the enumeration name.
And 108, drawing the information item into the bitmap according to a preset typesetting format.
And when the bitmap is created, the bitmap is a blank bitmap, and when the blank bitmap is copied to a software window DC for display, the blank bitmap is displayed in black. Therefore, in view of the visual effect on the software information interface, when drawing the information items to the bitmap, not only are the information items arranged in order on the interface, but also the background hue, the region hue, and the information item hue of the interface are uniformly set.
In one embodiment, the software draws all information items in a memory buffer in a predetermined layout format through a GDI Graphics Device Interface (GDI Interface), which is a program Interface responsible for information exchange between the system and the drawing program. A developer can store the designed software information interface as a preset typesetting format, and the software information interface with the designed visual effect can be directly obtained when the information item is drawn to the bitmap, so that the development efficiency is improved.
Fig. 3 is a schematic diagram of a part of a software information interface in an embodiment, in which a large number of heart beat statistics are displayed on the software information interface: the numerical value displayed by the information item is editable, and the display effect of a class edit box is drawn on the interface to prompt that the numerical value can be edited and modified; the middle horizontal line is a separation line for separating different information item categories, and the top row of each area displays the major category title of the information item in the middle.
And step 110, copying the bitmap into the software window device description table, and displaying a software information interface through display equipment.
Because a large number of controls are not created, the interface is painted in the memory, the bitmap is compatible with the software window DC, when the interface is refreshed, the bitmap can be directly copied from the memory DC to the software window DC to be displayed, redrawing is not needed, a large number of control function calls and painting times are reduced, and interface display is quicker.
In one embodiment, the software has a requirement on the frame rate, 30 times of interface refreshing is needed within 1 second, if 20 information items need to be displayed on the screen, according to a general display method, the computer device is required to perform 20 × 30 to 600 drawing operations within 1 second; according to the method, firstly, 20 information items are uniformly drawn in the memory DC, when the information items are displayed, the bitmap is directly obtained from the memory DC and copied to the software window DC, and the computer equipment only needs to perform drawing operation for 30 times in 1 second.
The software information interface display method comprises the steps of firstly obtaining a software window device description table, then creating a memory device description table and a bitmap compatible with the software window device description table in a memory, and selecting the bitmap into the memory device description table; then, information items needing to be displayed on a software information interface are obtained, wherein the information items comprise information titles, edit boxes and information data, and each information item has an enumeration value which corresponds to the information item; and drawing the information items into the bitmap according to a preset typesetting format, copying the bitmap into the software window equipment description table, and displaying a software information interface through display equipment. The software information interface is output and displayed in a drawing mode, the interface is drawn in a bitmap of the memory device description table and then copied to the software window device description table for display, the problems of setting and calling of a large number of controls in a common method are solved, and the development efficiency and the display speed of the software interface are improved; meanwhile, the problem of disordered color tones in a common method is solved by uniformly drawing the information items, and the visual effect of interface display is improved.
In one embodiment, the method further comprises: acquiring the preset typesetting format; counting the total line number in the preset typesetting format according to the preset typesetting format, and defining a single corresponding line enumeration value for each line; and storing the row enumeration value and the position coordinates of the corresponding row into a preset container.
And setting the row and the column of the information item in the preset typesetting format, and determining the content displayed by each row.
After counting the total number of rows in the typesetting format, defining a single corresponding row enumeration value as a row ID for each row, defining each row as an enumeration item, and taking a row English name as a row enumeration name; calculating the position coordinates of each line according to the typesetting format, wherein the starting coordinates of the corresponding line are taken as the position coordinates, for example, when the bitmap coordinate system takes the upper left corner as an origin, the positive direction of the X axis is downward, the positive direction of the Y axis is rightward, and the X coordinates in the bitmap of a certain line are 10-20, the position coordinates of the line, namely the starting coordinates are 10; and finally, simultaneously storing the row name, the row enumeration value and the position coordinates of the corresponding row into a preset container.
In one embodiment, the header row of the group of sinus arrhythmias is defined as: SINUS _ INFO _ TITLE (10), where 10 is a line enumeration value; calculating the position coordinates 10 of the header line of the sinus arrhythmia group according to the typesetting format; the row enumeration name, the row enumeration value and the row position coordinate are all stored in a preset MAP container, so that subsequent indexes are facilitated, such as: mapLinePos [ SINUS _ INFO _ tlle ] ═ point (10,10), where the structure of the storage element in the MAP container is (key, value), in this embodiment, the key value stores the line enumeration value, and the value stores the line position coordinate.
In one embodiment, the copying the bitmap into the software windows device description table, and displaying a software information interface through a display device includes: when the information items can not be completely displayed in the software window, adding a scroll bar for scrolling display, wherein the scroll range is the total line number in the preset typesetting format; and calculating a row enumeration value of a first row in the current software window according to the position of a sliding block in the scroll bar, acquiring corresponding position coordinates of the first row from the preset container according to the row enumeration value, and copying contents of a displayable range of the software window from the bitmap according to the position coordinates of the first row to the software window for displaying.
When the information items are too many and cannot be displayed in the software window completely, the scroll bar is added for scroll display, so that the content displayed in the software window after scrolling needs to be determined; in the scheme of the application, a complete software information interface is pre-painted in a bitmap of a memory DC, when the software window is in rolling display, the rolling display can be completed only by determining the position coordinates of the first line of the software window after rolling and copying the content of the displayable range of the software window to the software window from the position coordinates of the first line on the bitmap, so that the program display efficiency can be effectively improved.
In one embodiment, the software information interface may display 20 rows of data in total, with a fixed row height of 30 for each row of data; determining the enumeration value of the first row of a current software window to be 10 according to the position of a sliding block in a scroll bar, and correspondingly determining the head row of a sinus arrhythmia group; and acquiring the position coordinates 10 of the row corresponding to the row enumeration value from the MAP container, and copying an image with the row coordinates ranging from 10 to 610 from the bitmap to the software window DC for displaying.
In one embodiment, the method further comprises: acquiring length and width data of the bitmap and row and column data in the preset typesetting format, and calculating to obtain theoretical initial coordinates of the information item on the bitmap; acquiring the information header length of the information item, calculating the display width of each row of information items, and calculating to obtain the actual initial coordinate of the information item on the bitmap according to the display width of each row of information items and the theoretical initial coordinate; calculating to obtain the area coordinates of the edit box of the information item in the bitmap according to the actual initial coordinates; and storing the area coordinates of the edit box of the information item in the bitmap and the enumeration value corresponding to the information item into the preset container.
The medical auxiliary analysis software also has the function requirement of information editing, the scheme of the application is that a software information interface is output in a drawing bitmap form, and a large number of controls are not used, so that when the information data on the interface needs to be edited, an editing frame containing the information data needs to be positioned firstly; further, it is necessary to acquire the area coordinates of the edit boxes of all the information items in order to edit any one of the information items later.
The row and column data of the typesetting format comprise parameters such as the row number, the column number, the row spacing, the column spacing and the like of the information item arrangement in the final software information interface, and the theoretical initial coordinate of the information item on the bitmap can be obtained according to the length and width data of the bitmap and the row and column data of the typesetting format; the start coordinate refers to the upper left-hand coordinate of the rectangular area where the information item is displayed on the bitmap.
The display length and width of the edit box are fixed, and after the display width of the information title character string is calculated, the display width of the whole information item in the bitmap can be obtained according to the sum of the width of the information title character string and the width of the edit box; it is understood that the display width of the information item in each column is the longest display width of the information item in the column.
In one embodiment, the width of the bitmap is 800, and the preset typesetting format is divided into 4 rows, so that the width occupied by each row of information items is preset to be 200; the information titles in the first column of information items are longer, so that the width occupied by the whole column of information items is 225, and the software is adjusted according to the display width of the 4 columns of information items; and adjusting the theoretical initial coordinate according to the adjusted display width to obtain an actual initial coordinate, and further obtaining the area coordinate of the edit box according to the actual initial coordinate and the length and width data fixed by the edit box.
In another embodiment, after the area coordinates of the edit box are obtained, a rectangular area represented by the area coordinates is recorded by a rect function, and rect data of the edit box, and corresponding information item enumeration values and enumeration names are recorded in a preset MAP container in an associated manner, so that subsequent positioning and indexing are facilitated.
In one embodiment, the method further comprises: receiving a mouse click, and acquiring the coordinate of a mouse click position on the software information interface; when the coordinate clicked by the mouse is positioned in the edit box of the information item, a preset editable control object moves to the position of the edit box to be displayed, and information data corresponding to the edit box is set in the editable control object; receiving information input from the editable control object, and finishing information editing and hiding the editable control object when mouse click is received again and the coordinate clicked by the mouse is not in the edit box; and storing the edited information data according to the enumeration value of the information item corresponding to the edit box, redrawing according to the edited information data, and updating to the software information interface.
The method comprises the steps of obtaining coordinates of a mouse click on a screen after the mouse click is received, and converting the coordinates of the mouse click on the screen into coordinates on a software information interface through a software calling system interface according to the coordinates of the mouse click on the screen.
The preset editable control object is synchronously created when the memory DC is created, is hidden and is not displayed after being created, and the editable control object can be displayed only when an editing event is triggered, namely when the coordinate clicked by the mouse is located in the edit box of the information item. In one embodiment, the construction of the editable control object is performed using the CEdit class.
In one embodiment, when the coordinate clicked by the mouse is located in the edit box of the information item, moving a preset editable control object to the position where the edit box is located for display, and setting information data corresponding to the edit box in the editable control object includes: according to the coordinate clicked by the mouse, traversing the area coordinate of the edit box of the information item in the preset container, and judging whether the coordinate clicked by the mouse is positioned in the edit box of the information item; and when the coordinate clicked by the mouse is positioned in the edit box of the information item, acquiring an information item enumeration value corresponding to the edit box from the preset container according to the area coordinate of the edit box, acquiring corresponding information data according to the information item enumeration value, and setting the information data in the editable control object.
After the editable control object is displayed, the current user input cursor is in the edit box, and the user can edit and modify the information data in the edit box; and after editing, clicking other positions outside the editing frame by a mouse, and finishing and storing the editing of the information data.
As shown in fig. 4, fig. 4 is a schematic diagram of editing information data in an embodiment, when a user mouse clicks an edit box of an information item on an interface, software displays an editable control object corresponding to the size of a drawing box at the position, and displays information data corresponding to the edit box clicked by the mouse, wherein the information data can be edited and saved by the user.
It will be appreciated that the interface enables the editing of all information items by sharing one editable control object. The editable control object can be displayed at any position to be edited on the interface, and when the editable control object is used, each information item is just like an editing control to realize the editing function. The editable control object comprises an input edit box control, a time period control and the like.
In one embodiment, after coordinates (10,10) of a mouse click on a software window are acquired, traversal is performed in a preset MAP container. The MAP container stores elements of (key, value), the key value stores the area coordinates of the information item edit box, and the value stores the enumeration value and the enumeration name of the information item. Finding that the storage element i in the MAP container has a key direct (0, 0, 20, 20) in the traversal, and if the mouse click coordinate is exactly located in the rectangular area of the information item edit box corresponding to the storage element i, obtaining the value of the storage element i, finding the corresponding enumeration name E _ TotalBeats and the enumeration value 8, and obtaining the information data 82654 of the information item through the information item name and the enumeration value. At this time, an editable control object is displayed at the position of the edit box clicked by the mouse, and the acquired information data 82654 is set in the editable control object for the user to edit.
In another embodiment, the coordinates of the mouse click in the software window are acquired, and if no key value meeting the conditions is found after the mouse click coordinates are traversed in the MAP container, the mouse click is not responded.
In one embodiment, the saving edited information data according to the enumeration value of the information item corresponding to the edit box, redrawing according to the edited information data, and updating to the software information interface includes: after the edited information data are stored and updated, redrawing all the information items according to a preset typesetting format, copying the redrawing bitmap into the software window equipment description table, and displaying a software information interface through display equipment; or after the edited information data is stored and updated, the information item corresponding to the edited information data is redrawn, the redrawn local bitmap is covered in the original bitmap, the new bitmap is copied to the software window equipment description table, and a software information interface is displayed through display equipment.
The edited information data is replaced with the original information data and is associated with the enumerated value of the information item, then the software redraws according to the updated information item, draws the bitmap of the memory DC, and copies the bitmap to the software window DC for display.
It can be understood that the software may redraw the whole software information interface according to all the updated information items, or redraw a partial interface image for overlay according to a single updated information item.
As shown in fig. 5, a software information interface display device is proposed, the device comprising:
the first obtaining module 10 is configured to obtain a software windows device description table.
A preparing module 20, configured to create a memory device description table and a bitmap compatible with the software window device description table in a memory, and select the bitmap into the memory device description table.
The second obtaining module 30 is configured to obtain information items that need to be displayed on a software information interface, where the information items include information titles, edit boxes, and information data, and each information item has an enumeration value corresponding to the information item.
And the drawing module 40 is used for drawing the information items into the bitmap according to a preset typesetting format.
And the display module 50 is used for copying the bitmap into the software window device description table and displaying a software information interface through display equipment.
In one embodiment, the method further comprises: acquiring the preset typesetting format; counting the total line number in the preset typesetting format according to the preset typesetting format, and defining a single corresponding line enumeration value for each line; and storing the row enumeration value and the position coordinates of the corresponding row into a preset container.
In one embodiment, the copying the bitmap into the software windows device description table, and displaying a software information interface through a display device includes: when the information items can not be completely displayed in the software window, adding a scroll bar for scrolling display, wherein the scroll range is the total line number in the preset typesetting format; and calculating a row enumeration value of a first row in the current software window according to the position of a sliding block in the scroll bar, acquiring corresponding position coordinates of the first row from the preset container according to the row enumeration value, and copying contents of a displayable range of the software window from the bitmap according to the position coordinates of the first row to the software window for displaying.
In one embodiment, the method further comprises: acquiring length and width data of the bitmap and row and column data in the preset typesetting format, and calculating to obtain theoretical initial coordinates of the information item on the bitmap; acquiring the information header length of the information item, calculating the display width of each row of information items, and calculating to obtain the actual initial coordinate of the information item on the bitmap according to the display width of each row of information items and the theoretical initial coordinate; calculating to obtain the area coordinates of the edit box of the information item in the bitmap according to the actual initial coordinates; and storing the area coordinates of the edit box of the information item in the bitmap and the enumeration value corresponding to the information item into the preset container.
In one embodiment, the method further comprises: receiving a mouse click, and acquiring the coordinate of a mouse click position on the software information interface; when the coordinate clicked by the mouse is positioned in the edit box of the information item, a preset editable control object moves to the position of the edit box to be displayed, and information data corresponding to the edit box is set in the editable control object; receiving information input from the editable control object, and finishing information editing and hiding the editable control object when mouse click is received again and the coordinate clicked by the mouse is not in the edit box; and storing the edited information data according to the enumeration value of the information item corresponding to the edit box, redrawing according to the edited information data, and updating to the software information interface.
In one embodiment, when the coordinate clicked by the mouse is located in the edit box of the information item, moving a preset editable control object to the position where the edit box is located for display, and setting information data corresponding to the edit box in the editable control object includes: according to the coordinate clicked by the mouse, traversing the area coordinate of the edit box of the information item in the preset container, and judging whether the coordinate clicked by the mouse is positioned in the edit box of the information item; and when the coordinate clicked by the mouse is positioned in the edit box of the information item, acquiring an information item enumeration value corresponding to the edit box from the preset container according to the area coordinate of the edit box, acquiring corresponding information data according to the information item enumeration value, and setting the information data in the editable control object.
In one embodiment, the saving edited information data according to the enumeration value of the information item corresponding to the edit box, redrawing according to the edited information data, and updating to the software information interface includes: after the edited information data are stored and updated, redrawing all the information items according to a preset typesetting format, copying the redrawing bitmap into the software window equipment description table, and displaying a software information interface through display equipment; or after the edited information data is stored and updated, the information item corresponding to the edited information data is redrawn, the redrawn local bitmap is covered in the original bitmap, the new bitmap is copied to the software window equipment description table, and a software information interface is displayed through display equipment.
FIG. 6 is a diagram illustrating an internal structure of a computer device in one embodiment. As shown in fig. 6, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the software information interface display method. The internal memory may also have a computer program stored therein, which when executed by the processor, causes the processor to perform the software information interface display method. Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is proposed, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
acquiring a software window equipment description table; creating a memory device description table and a bitmap compatible with the software window device description table in a memory, and selecting the bitmap into the memory device description table; acquiring information items required to be displayed on a software information interface, wherein the information items comprise information titles, edit boxes and information data, and each information item has an enumeration value which corresponds to the information item; drawing the information items into the bitmap according to a preset typesetting format; and copying the bitmap into the software window equipment description table, and displaying a software information interface through display equipment.
In one embodiment, the method further comprises: acquiring the preset typesetting format; counting the total line number in the preset typesetting format according to the preset typesetting format, and defining a single corresponding line enumeration value for each line; and storing the row enumeration value and the position coordinates of the corresponding row into a preset container.
In one embodiment, the copying the bitmap into the software windows device description table, and displaying a software information interface through a display device includes: when the information items can not be completely displayed in the software window, adding a scroll bar for scrolling display, wherein the scroll range is the total line number in the preset typesetting format; and calculating a row enumeration value of a first row in the current software window according to the position of a sliding block in the scroll bar, acquiring corresponding position coordinates of the first row from the preset container according to the row enumeration value, and copying contents of a displayable range of the software window from the bitmap according to the position coordinates of the first row to the software window for displaying.
In one embodiment, the method further comprises: acquiring length and width data of the bitmap and row and column data in the preset typesetting format, and calculating to obtain theoretical initial coordinates of the information item on the bitmap; acquiring the information header length of the information item, calculating the display width of each row of information items, and calculating to obtain the actual initial coordinate of the information item on the bitmap according to the display width of each row of information items and the theoretical initial coordinate; calculating to obtain the area coordinates of the edit box of the information item in the bitmap according to the actual initial coordinates; and storing the area coordinates of the edit box of the information item in the bitmap and the enumeration value corresponding to the information item into the preset container.
In one embodiment, the method further comprises: receiving a mouse click, and acquiring the coordinate of a mouse click position on the software information interface; when the coordinate clicked by the mouse is positioned in the edit box of the information item, a preset editable control object moves to the position of the edit box to be displayed, and information data corresponding to the edit box is set in the editable control object; receiving information input from the editable control object, and finishing information editing and hiding the editable control object when mouse click is received again and the coordinate clicked by the mouse is not in the edit box; and storing the edited information data according to the enumeration value of the information item corresponding to the edit box, redrawing according to the edited information data, and updating to the software information interface.
In one embodiment, when the coordinate clicked by the mouse is located in the edit box of the information item, moving a preset editable control object to the position where the edit box is located for display, and setting information data corresponding to the edit box in the editable control object includes: according to the coordinate clicked by the mouse, traversing the area coordinate of the edit box of the information item in the preset container, and judging whether the coordinate clicked by the mouse is positioned in the edit box of the information item; and when the coordinate clicked by the mouse is positioned in the edit box of the information item, acquiring an information item enumeration value corresponding to the edit box from the preset container according to the area coordinate of the edit box, acquiring corresponding information data according to the information item enumeration value, and setting the information data in the editable control object.
In one embodiment, the saving edited information data according to the enumeration value of the information item corresponding to the edit box, redrawing according to the edited information data, and updating to the software information interface includes: after the edited information data are stored and updated, redrawing all the information items according to a preset typesetting format, copying the redrawing bitmap into the software window equipment description table, and displaying a software information interface through display equipment; or after the edited information data is stored and updated, the information item corresponding to the edited information data is redrawn, the redrawn local bitmap is covered in the original bitmap, the new bitmap is copied to the software window equipment description table, and a software information interface is displayed through display equipment.
In one embodiment, a computer-readable storage medium is proposed, in which a computer program is stored which, when executed by a processor, causes the processor to carry out the steps of:
acquiring a software window equipment description table; creating a memory device description table and a bitmap compatible with the software window device description table in a memory, and selecting the bitmap into the memory device description table; acquiring information items required to be displayed on a software information interface, wherein the information items comprise information titles, edit boxes and information data, and each information item has an enumeration value which corresponds to the information item; drawing the information items into the bitmap according to a preset typesetting format; and copying the bitmap into the software window equipment description table, and displaying a software information interface through display equipment.
In one embodiment, the method further comprises: acquiring the preset typesetting format; counting the total line number in the preset typesetting format according to the preset typesetting format, and defining a single corresponding line enumeration value for each line; and storing the row enumeration value and the position coordinates of the corresponding row into a preset container.
In one embodiment, the copying the bitmap into the software windows device description table, and displaying a software information interface through a display device includes: when the information items can not be completely displayed in the software window, adding a scroll bar for scrolling display, wherein the scroll range is the total line number in the preset typesetting format; and calculating a row enumeration value of a first row in the current software window according to the position of a sliding block in the scroll bar, acquiring corresponding position coordinates of the first row from the preset container according to the row enumeration value, and copying contents of a displayable range of the software window from the bitmap according to the position coordinates of the first row to the software window for displaying.
In one embodiment, the method further comprises: acquiring length and width data of the bitmap and row and column data in the preset typesetting format, and calculating to obtain theoretical initial coordinates of the information item on the bitmap; acquiring the information header length of the information item, calculating the display width of each row of information items, and calculating to obtain the actual initial coordinate of the information item on the bitmap according to the display width of each row of information items and the theoretical initial coordinate; calculating to obtain the area coordinates of the edit box of the information item in the bitmap according to the actual initial coordinates; and storing the area coordinates of the edit box of the information item in the bitmap and the enumeration value corresponding to the information item into the preset container.
In one embodiment, the method further comprises: receiving a mouse click, and acquiring the coordinate of a mouse click position on the software information interface; when the coordinate clicked by the mouse is positioned in the edit box of the information item, a preset editable control object moves to the position of the edit box to be displayed, and information data corresponding to the edit box is set in the editable control object; receiving information input from the editable control object, and finishing information editing and hiding the editable control object when mouse click is received again and the coordinate clicked by the mouse is not in the edit box; and storing the edited information data according to the enumeration value of the information item corresponding to the edit box, redrawing according to the edited information data, and updating to the software information interface.
In one embodiment, when the coordinate clicked by the mouse is located in the edit box of the information item, moving a preset editable control object to the position where the edit box is located for display, and setting information data corresponding to the edit box in the editable control object includes: according to the coordinate clicked by the mouse, traversing the area coordinate of the edit box of the information item in the preset container, and judging whether the coordinate clicked by the mouse is positioned in the edit box of the information item; and when the coordinate clicked by the mouse is positioned in the edit box of the information item, acquiring an information item enumeration value corresponding to the edit box from the preset container according to the area coordinate of the edit box, acquiring corresponding information data according to the information item enumeration value, and setting the information data in the editable control object.
In one embodiment, the saving edited information data according to the enumeration value of the information item corresponding to the edit box, redrawing according to the edited information data, and updating to the software information interface includes: after the edited information data are stored and updated, redrawing all the information items according to a preset typesetting format, copying the redrawing bitmap into the software window equipment description table, and displaying a software information interface through display equipment; or after the edited information data is stored and updated, the information item corresponding to the edited information data is redrawn, the redrawn local bitmap is covered in the original bitmap, the new bitmap is copied to the software window equipment description table, and a software information interface is displayed through display equipment.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A software information interface display method, the method comprising:
acquiring a software window equipment description table;
creating a memory device description table and a bitmap compatible with the software window device description table in a memory, and selecting the bitmap into the memory device description table;
acquiring information items required to be displayed on a software information interface, wherein the information items comprise information titles, edit boxes and information data, and each information item has an enumeration value which corresponds to the information item;
drawing the information items into the bitmap according to a preset typesetting format;
and copying the bitmap into the software window equipment description table, and displaying a software information interface through display equipment.
2. The software information interface display method of claim 1, further comprising:
acquiring the preset typesetting format;
counting the total line number in the preset typesetting format according to the preset typesetting format, and defining a single corresponding line enumeration value for each line;
and storing the row enumeration value and the position coordinates of the corresponding row into a preset container.
3. The method for displaying the software information interface according to claim 2, wherein the copying the bitmap into the software windows device description table and displaying the software information interface through a display device comprises:
when the information items can not be completely displayed in the software window, adding a scroll bar for scrolling display, wherein the scroll range is the total line number in the preset typesetting format;
and calculating a row enumeration value of a first row in the current software window according to the position of a sliding block in the scroll bar, acquiring corresponding position coordinates of the first row from the preset container according to the row enumeration value, and copying contents of a displayable range of the software window from the bitmap according to the position coordinates of the first row to the software window for displaying.
4. The software information interface display method of claim 1, further comprising:
acquiring length and width data of the bitmap and row and column data in the preset typesetting format, and calculating to obtain theoretical initial coordinates of the information item on the bitmap;
acquiring the information header length of the information item, calculating the display width of each row of information items, and calculating to obtain the actual initial coordinate of the information item on the bitmap according to the display width of each row of information items and the theoretical initial coordinate;
calculating to obtain the area coordinates of the edit box of the information item in the bitmap according to the actual initial coordinates;
and storing the area coordinates of the edit box of the information item in the bitmap and the enumeration value corresponding to the information item into the preset container.
5. The software information interface display method of claim 4, further comprising:
receiving a mouse click, and acquiring the coordinate of a mouse click position on the software information interface;
when the coordinate clicked by the mouse is positioned in the edit box of the information item, a preset editable control object moves to the position of the edit box to be displayed, and information data corresponding to the edit box is set in the editable control object;
receiving information input from the editable control object, and finishing information editing and hiding the editable control object when mouse click is received again and the coordinate clicked by the mouse is not in the edit box;
and storing the edited information data according to the enumeration value of the information item corresponding to the edit box, redrawing according to the edited information data, and updating to the software information interface.
6. The software information interface display method of claim 5, wherein when the coordinate clicked by the mouse is located in the edit box of the information item, moving a preset editable control object to the position where the edit box is located for display, and setting information data corresponding to the edit box in the editable control object, comprises:
according to the coordinate clicked by the mouse, traversing the area coordinate of the edit box of the information item in the preset container, and judging whether the coordinate clicked by the mouse is positioned in the edit box of the information item;
and when the coordinate clicked by the mouse is positioned in the edit box of the information item, acquiring an information item enumeration value corresponding to the edit box from the preset container according to the area coordinate of the edit box, acquiring corresponding information data according to the information item enumeration value, and setting the information data in the editable control object.
7. The software information interface display method of claim 6, wherein the storing the edited information data according to the information item enumeration value corresponding to the edit box, redrawing according to the edited information data, and updating to the software information interface comprises:
after the edited information data are stored and updated, redrawing all the information items according to a preset typesetting format, copying the redrawing bitmap into the software window equipment description table, and displaying a software information interface through display equipment; or
And after the edited information data is stored and updated, redrawing the information item corresponding to the edited information data, covering the redrawn local bitmap into the original bitmap, copying the new bitmap into the software window equipment description table, and displaying a software information interface through display equipment.
8. A software information interface display apparatus, the apparatus comprising:
the first acquisition module is used for acquiring a software window equipment description table;
a preparation module, configured to create a memory device description table and a bitmap compatible with the software window device description table in a memory, and select the bitmap into the memory device description table;
the second acquisition module is used for acquiring information items which need to be displayed on a software information interface, wherein the information items comprise information titles, edit boxes and information data, and each information item has an enumeration value which corresponds to the information item;
the drawing module is used for drawing the information item into the bitmap according to a preset typesetting format;
and the display module is used for copying the bitmap into the software window equipment description table and displaying a software information interface through display equipment.
9. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.
10. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 7.
CN202110099833.8A 2021-01-25 2021-01-25 Software information interface display method and device, storage medium and equipment Pending CN112817505A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110099833.8A CN112817505A (en) 2021-01-25 2021-01-25 Software information interface display method and device, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110099833.8A CN112817505A (en) 2021-01-25 2021-01-25 Software information interface display method and device, storage medium and equipment

Publications (1)

Publication Number Publication Date
CN112817505A true CN112817505A (en) 2021-05-18

Family

ID=75859159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110099833.8A Pending CN112817505A (en) 2021-01-25 2021-01-25 Software information interface display method and device, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN112817505A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116048708A (en) * 2023-03-31 2023-05-02 成都大前研软件开发有限公司 Software window adjusting method, system, equipment and medium based on artificial intelligence

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030120A (en) * 2002-09-30 2007-09-05 卡西欧计算机株式会社 Graphic display control apparatus and program
CN101882077A (en) * 2010-05-19 2010-11-10 广东威创视讯科技股份有限公司 Method and device for efficiently drawing and rendering basic graphic
CN103455973A (en) * 2012-05-28 2013-12-18 方正国际软件(北京)有限公司 Method and device for drawing screen images
CN105224163A (en) * 2014-06-17 2016-01-06 北京新媒传信科技有限公司 Interface display method and device
CN108595151A (en) * 2017-03-14 2018-09-28 长沙博为软件技术股份有限公司 A kind of acquisition methods intercepting printing content based on GDI
CN111381752A (en) * 2020-03-02 2020-07-07 安徽文香信息技术有限公司 Screen capturing method and device, storage medium and terminal
US20200410044A1 (en) * 2019-06-28 2020-12-31 Baidu Online Network Technology (Beijing) Co., Ltd. Visualized edition method, device and apparatus, and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030120A (en) * 2002-09-30 2007-09-05 卡西欧计算机株式会社 Graphic display control apparatus and program
CN101882077A (en) * 2010-05-19 2010-11-10 广东威创视讯科技股份有限公司 Method and device for efficiently drawing and rendering basic graphic
CN103455973A (en) * 2012-05-28 2013-12-18 方正国际软件(北京)有限公司 Method and device for drawing screen images
CN105224163A (en) * 2014-06-17 2016-01-06 北京新媒传信科技有限公司 Interface display method and device
CN108595151A (en) * 2017-03-14 2018-09-28 长沙博为软件技术股份有限公司 A kind of acquisition methods intercepting printing content based on GDI
US20200410044A1 (en) * 2019-06-28 2020-12-31 Baidu Online Network Technology (Beijing) Co., Ltd. Visualized edition method, device and apparatus, and storage medium
CN111381752A (en) * 2020-03-02 2020-07-07 安徽文香信息技术有限公司 Screen capturing method and device, storage medium and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
XCHSP: "对Windows程序中设备上下文DC(device context)的理解", 《HTTPS://BLOG.51CTO.COM/FREEBIRD/97546》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116048708A (en) * 2023-03-31 2023-05-02 成都大前研软件开发有限公司 Software window adjusting method, system, equipment and medium based on artificial intelligence
CN116048708B (en) * 2023-03-31 2024-02-23 成都齐之之知识产权运营有限公司 Software window adjusting method, system, equipment and medium based on artificial intelligence

Similar Documents

Publication Publication Date Title
US20220147701A1 (en) Extended data grid components with multi-level navigation
US4739477A (en) Implicit creation of a superblock data structure
KR101794373B1 (en) Temporary formatting and charting of selected data
US4723210A (en) Superblock structure in a multiple in a data editor
EP0173124A2 (en) Multiple data editor using flow attributes for text objects
JPH0719294B2 (en) How to create a graph using a computer
CN111291533B (en) Sentence segment to be displayed display method and device, computer equipment and storage medium
CN111694493B (en) Webpage screenshot method, computer equipment and readable storage medium
CN118095206B (en) Batch updating method, device, equipment and medium for text layer formats in video
CN1051440A (en) The link method of application program and conversion program
CN112817505A (en) Software information interface display method and device, storage medium and equipment
CN111596989B (en) Histogram display method, terminal and storage medium
DE69018731T2 (en) Window display setup and method.
DE68927327T2 (en) DEVICE FOR VOICE COMMENTATION AND MANIPULATION USING IMAGES OF A WINDOW SOURCE
CN109800039B (en) User interface display method and device, electronic equipment and storage medium
KR102704596B1 (en) Rendering method and apparatus, electronic device and storage medium
CN108647198B (en) Unity-based character editing method and terminal
CN112416503A (en) Applet icon display method, device and equipment and computer readable storage medium
JPH0376491B2 (en)
JP2958927B2 (en) Document processing device
JP3715431B2 (en) Typesetting method, typesetting device, and recording medium recording a program for executing the processing
JP2842511B2 (en) Form creation device
JP3144792B2 (en) Table editing device
CN116502619A (en) Form designer, form generation method and form analysis method
JP2990764B2 (en) Document processing device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210518