CN114527969B - Method for converting list cell into drop-down list form input - Google Patents
Method for converting list cell into drop-down list form input Download PDFInfo
- Publication number
- CN114527969B CN114527969B CN202210084755.9A CN202210084755A CN114527969B CN 114527969 B CN114527969 B CN 114527969B CN 202210084755 A CN202210084755 A CN 202210084755A CN 114527969 B CN114527969 B CN 114527969B
- Authority
- CN
- China
- Prior art keywords
- control
- cell
- drop
- down list
- cluster
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a method capable of converting list cells into a pull-down list form for input, which comprises a cluster control based on a LABVIEW programming environment; adding a floating point input control and a drop-down list control in the cluster control; when clicking the tree control unit lattice, if the numerical value type is an enumeration type, moving a drop-down list control in the cluster control to the unit lattice position, reassigning enumeration items, and converting to a display state after matching the unit lattice size; the cluster control is flexibly applied and combined with the tree control and the multi-column list control, so that each cell of the list control can be converted into a required form for input (a drop-down list, numerical value input and the like), the same principle can be adopted in the follow-up process, or the cluster control can be converted into other displays, the cluster control is not only the list control, and any form control can realize various forms of data input modes, so that the flexibility of using similar controls is greatly improved.
Description
Technical Field
The invention relates to the field of LABVEIW programming, in particular to a method capable of converting list cells into a pull-down list form for input.
Background
The graphic programming language of the creation application program with the chart replacing the text line is mainly applied to the development of an upper computer for equipment debugging in the test industry, wherein the graphic programming language is related to the setting of parameters and the editing aspect of a table;
the standard tree control and the multi-column list control unit lattice in the LABVIEW can only input character strings and cannot be input as a drop-down list or an enumeration type. When the host computer is developed, the input of different types of data, especially options, is poor in expressive performance and client experience if only the numerical value input mode is adopted.
In the prior art, parameters in parameter setting of function codes of an upper computer are numerous, and many parameter settings are option parameters, if parameter setting is only carried out in a mode of inputting numbers, a client can hardly understand the meaning of the parameter setting, and great trouble is caused to debugging.
Disclosure of Invention
The invention aims to solve the technical problem of providing a method capable of converting list cells into a pull-down list form for input, which converts the cells of the tree-shaped control, the list, the multi-column list and other controls into the pull-down list, enumeration and numerical values for input, so that the control can be used more flexibly, the limitation of the use of related controls is solved, and the control can be used more flexibly.
The method for converting the list unit lattice into the drop-down list form input is realized by the following technical scheme: cluster controls based on LABVIEW programming environments are included; adding a floating point input control and a drop-down list control in the cluster control; when clicking the tree control unit lattice, if the numerical value type is an enumeration type, moving a drop-down list control in the cluster control to the unit lattice position, reassigning enumeration items, and converting to a display state after matching the unit lattice size; if the numerical value type is common numerical value input, moving a numerical value input control in the cluster control to a cell position, assigning the numerical value input control as a current value, and converting the numerical value input control into a display state after matching the cell size; after the parameters are modified, the cluster control is re-hidden.
As a preferable technical scheme, the specific input method is as follows:
s1, each item of a list control has a unique identifier (tag), and after clicking a list control cell, the cell identifier is output;
s2: judging whether clicking is at the correct position, if so, executing the step S3, otherwise, directly ending;
s3: searching the content attribute of the cell according to the cell identification mainly comprises the following steps: cell value type (type), cell current location content (Cell string), total item content of tag (Ringstring), cell coordinates (Cell Rect Out);
s4: calculating the size (Width/Height) of the cell according to the coordinate information (right/left/bottom/top);
s5: judging the cell value type (type), if the cell value type is the enumeration type, executing the step S6, otherwise, executing the step S7;
s6: calculating the offset position between a cluster control (cluster) pull-up and pull-down list control (ring) and the upper left corner of the cluster control, and assigning all option contents of the tag to the pull-down list control;
s7: calculating the offset position between a floating point input control (float) on a cluster control (cluster) and the upper left corner of the cluster control, and converting a tag current value character string into a floating point value to be given to the floating point input control;
s8: synthesizing the final Position (Position) of the cluster control by the cell coordinates and the calculated OFFSET Position (OFFSET);
s9: the cluster control is moved to the calculated position, and the state is changed into a display state; the state of the drop-down list or the floating point input control is also converted into a display state from a hidden state;
s10: judging whether the parameter modification is completed, if so, entering a step S11, and if not, entering a step S12;
s11: issuing the modified value of the drop-down list or the floating point input control to the device;
s12: waiting for parameter modification to be completed;
s13: judging whether the enumeration type is the enumeration type again, if so, executing the step S14, otherwise, executing the step S15;
s14: the value of the modified drop-down list is used as an index to search the corresponding option content character string and display the corresponding option content character string on the cell; the cluster control and the drop-down list control are changed from display to hiding;
s15: converting the value of the floating point input box into a character string and displaying the character string on a cell; the cluster control and floating point input control states are changed from display to hidden.
As a preferred technical scheme, the floating point input control and the drop-down list control are set to be hidden by default.
The beneficial effects of the invention are as follows: the cluster control is flexibly applied and combined with the tree control and the multi-column list control, so that each cell of the list control can be converted into a required form for input (a drop-down list, numerical value input and the like), the same principle can be adopted in the follow-up process, or the cluster control can be converted into other displays, the cluster control is not only the list control, and any form control can realize various forms of data input modes, so that the flexibility of using similar controls is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of two types of inputs, drop down list/floating point input;
FIG. 2 is a flow chart of a method for converting list cells into drop-down list form input according to the present invention;
FIG. 3 is a flow chart of an enumeration type in a method of the present invention in which list cells may be converted to drop down list form input;
FIG. 4 is a flow chart of numeric types in a method of converting list cells into drop down list form input according to the present invention;
fig. 5 and 6 are diagrams of operations of the upper computer after the upper computer is completed when the invention is applied to the upper computer for debugging a frequency converter.
Detailed Description
All of the features disclosed in this specification, or all of the steps in a method or process disclosed, may be combined in any combination, except for mutually exclusive features and/or steps.
Any feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise. That is, each feature is one example only of a generic series of equivalent or similar features, unless expressly stated otherwise.
In the description of the present invention, it should be understood that the terms "one end," "the other end," "the outer side," "the upper," "the inner side," "the horizontal," "coaxial," "the center," "the end," "the length," "the outer end," and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, merely to facilitate description of the present invention and simplify the description, and do not indicate or imply that the device or element being referred to must have a specific orientation, be configured and operated in a specific orientation, and therefore should not be construed as limiting the present invention.
Furthermore, in the description of the present invention, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
Terms such as "upper," "lower," and the like used herein to refer to a spatially relative position are used for ease of description to describe one element or feature's relationship to another element or feature as illustrated in the figures. The term spatially relative position may be intended to encompass different orientations of the device in use or operation in addition to the orientation depicted in the figures. For example, if the device in the figures is turned over, elements described as "below" or "beneath" other elements or features would then be oriented "above" the other elements or features. Thus, the exemplary term "below" can encompass both an orientation of above and below. The device may be otherwise oriented (rotated 90 degrees or other orientations) and the spatially relative descriptors used herein interpreted accordingly.
In the present invention, unless explicitly specified and limited otherwise, the terms "disposed," "coupled," "connected," "plugged," and the like are to be construed broadly and may be, for example, fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly, through intermediaries, or both, may be in communication with each other or in interaction with each other, unless expressly defined otherwise. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
1-4, a method of the present invention for converting list cells into drop-down list form input includes cluster control based on LABVIEW programming environment; adding a floating point input control and a drop-down list control in the cluster control; when clicking the tree control unit lattice, if the numerical value type is an enumeration type, moving a drop-down list control in the cluster control to the unit lattice position, reassigning enumeration items, and converting to a display state after matching the unit lattice size; if the numerical value type is common numerical value input, moving a numerical value input control in the cluster control to a cell position, assigning the numerical value input control as a current value, and converting the numerical value input control into a display state after matching the cell size; after the parameters are modified, the cluster control is re-hidden.
In this embodiment, the specific input method is as follows:
s1, each item of a list control has a unique identifier (tag), and after clicking a list control cell, the cell identifier is output;
s2: judging whether clicking is at the correct position, if so, executing the step S3, otherwise, directly ending;
s3: searching the content attribute of the cell according to the cell identification mainly comprises the following steps: cell value type (type), cell current location content (Cell string), all item content (Ringstring) of the identity (tag), cell coordinates (Cell Rect Out);
s4: calculating the size (Width/Height) of the cell according to the coordinate information (right/left/bottom/top);
s5: judging the cell value type (type), if the cell value type is the enumeration type, executing the step S6, otherwise, executing the step S7;
s6: calculating the offset position between a cluster control (cluster) pull-up and pull-down list control (ring) and the upper left corner of the cluster control, and assigning all option contents of the tag to the pull-down list control;
s7: calculating the offset position between a floating point input control (float) on a cluster control (cluster) and the upper left corner of the cluster control, and converting a tag current value character string into a floating point value to be given to the floating point input control;
s8: synthesizing the final Position (Position) of the cluster control by the cell coordinates and the calculated OFFSET Position (OFFSET);
s9: the cluster control is moved to the calculated position, and the state is changed into a display state; the state of the drop-down list or the floating point input control is also converted into a display state from a hidden state;
s10: judging whether the parameter modification is completed, if so, entering a step S11, and if not, entering a step S12;
s11: issuing the modified value of the drop-down list or the floating point input control to the device;
s12: waiting for parameter modification to be completed;
s13: judging whether the enumeration type is the enumeration type again, if so, executing the step S14, otherwise, executing the step S15;
s14: the value of the modified drop-down list is used as an index to search the corresponding option content character string and display the corresponding option content character string on the cell; the cluster control and the drop-down list control are changed from display to hiding;
s15: converting the value of the floating point input box into a character string and displaying the character string on a cell; the cluster control and floating point input control states are changed from display to hiding;
through the steps S1-S15, the processes of popping up a drop-down list frame or a floating point input frame from a single click cell, modifying data and hiding a popup frame are completed; and for accurate response, the process needs to be performed in the event, responding to the cell clicking action.
In this embodiment, the floating point input control and the drop down list control are set to hidden states by default.
As shown in fig. 5 and 6, the present invention is applied to the upper computer for debugging the frequency converter, and relates to modification of option class data and numerical class data.
The beneficial effects of the invention are as follows: the cluster control is flexibly applied and combined with the tree control and the multi-column list control, so that each cell of the list control can be converted into a required form for input (a drop-down list, numerical value input and the like), the same principle can be adopted in the follow-up process, or the cluster control can be converted into other displays, the cluster control is not only the list control, and any form control can realize various forms of data input modes, so that the flexibility of using similar controls is greatly improved.
The above is merely a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that do not undergo the inventive work should be covered in the scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope defined by the claims.
Claims (2)
1. A method for converting list cells into drop-down list form input, comprising: cluster controls based on LABVIEW programming environments are included; adding a floating point input control and a drop-down list control in the cluster control; when clicking the tree control unit lattice, if the numerical value type is an enumeration type, moving a drop-down list control in the cluster control to the unit lattice position, reassigning enumeration items, and converting to a display state after matching the unit lattice size; if the numerical value type is common numerical value input, moving the numerical value input control in the cluster control to a cell position, assigning the numerical value input control as a current value, and converting the numerical value input control into a display state after matching the cell size; after the parameters are modified, the cluster control is re-hidden; the specific input method is as follows:
s1, each item of a list control has a unique identifier, and after clicking a list control cell, the cell identifier is output;
s2: judging whether clicking is at the correct position, if so, executing the step S3, otherwise, directly ending;
s3: searching the content attribute of the cell according to the cell identification mainly comprises the following steps: cell value type, cell current position content, identified total item content, cell coordinates;
s4: calculating the size of the cell according to the coordinate information;
s5: judging the cell value type, if the cell value type is the enumeration type, executing the step S6, otherwise, executing the step S7;
s6: calculating the offset position between the cluster control pull-down list control and the cluster control left upper corner, and assigning all the identified option contents to the pull-down list control;
s7: calculating the offset position between the floating point input control on the cluster control and the upper left corner of the cluster control, and converting the character string of the marked current value into a floating point value to the floating point input control;
s8: synthesizing the final position of the cluster control by the cell coordinates and the calculated offset position;
s9: the cluster control is moved to the calculated position, and the state is changed into a display state; the state of the drop-down list or the floating point input control is also converted into a display state from a hidden state;
s10: judging whether the parameter modification is completed, if so, entering a step S11, and if not, entering a step S12;
s11: issuing the modified value of the drop-down list or the floating point input control to the device;
s12: waiting for parameter modification to be completed;
s13: judging whether the enumeration type is the enumeration type again, if so, executing the step S14, otherwise, executing the step S15;
s14: the value of the modified drop-down list is used as an index to search the corresponding option content character string and display the corresponding option content character string on the cell; the cluster control and the drop-down list control are changed from display to hiding;
s15: converting the value of the floating point input box into a character string and displaying the character string on a cell; the cluster control and floating point input control states are changed from display to hidden.
2. A method for converting list cells into drop down list form input according to claim 1, characterized by: the floating point input control and the drop down list control are set to hidden states by default.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210084755.9A CN114527969B (en) | 2022-01-25 | 2022-01-25 | Method for converting list cell into drop-down list form input |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210084755.9A CN114527969B (en) | 2022-01-25 | 2022-01-25 | Method for converting list cell into drop-down list form input |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114527969A CN114527969A (en) | 2022-05-24 |
CN114527969B true CN114527969B (en) | 2023-08-18 |
Family
ID=81620819
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210084755.9A Active CN114527969B (en) | 2022-01-25 | 2022-01-25 | Method for converting list cell into drop-down list form input |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114527969B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103294654A (en) * | 2013-05-23 | 2013-09-11 | 山西大学 | Text list combobox |
CN103885943A (en) * | 2012-12-19 | 2014-06-25 | 北大方正集团有限公司 | Method for achieving drop-down list box control in webpage |
WO2018032813A1 (en) * | 2016-08-15 | 2018-02-22 | 中兴通讯股份有限公司 | Pull-down menu display method, apparatus, assembly, application, storage medium and device |
CN108733279A (en) * | 2017-04-19 | 2018-11-02 | 北京国双科技有限公司 | Drop-down list display methods and device |
CN108804483A (en) * | 2017-05-05 | 2018-11-13 | 平安科技(深圳)有限公司 | Rendering intent, server and the computer readable storage medium of the cell page |
CN109471694A (en) * | 2018-10-29 | 2019-03-15 | 恒生电子股份有限公司 | Drop-down list management method and drop-down list |
CN109634596A (en) * | 2018-12-11 | 2019-04-16 | 清华大学 | Visual programming tools based on flow chart |
CN110837366A (en) * | 2019-10-11 | 2020-02-25 | 平安科技(深圳)有限公司 | Form generation method, electronic device and computer readable storage medium |
CN111819534A (en) * | 2017-12-03 | 2020-10-23 | 托马斯·斯塔胡拉 | Spreadsheet-based software application development |
CN112800736A (en) * | 2021-02-04 | 2021-05-14 | 杉数科技(北京)有限公司 | Method, device, medium and computer equipment for generating cell editing assembly |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8205149B2 (en) * | 2001-01-05 | 2012-06-19 | Microsoft Corporation | Enhanced find and replace for electronic documents |
US20070033545A1 (en) * | 2005-08-03 | 2007-02-08 | International Business Machines Corporation | Method, system, and computer program product for providing enhanced dropdown selection lists and combination boxes |
JP5096078B2 (en) * | 2007-08-28 | 2012-12-12 | 株式会社リコー | Display control apparatus, display control method, and display control program |
US10970050B1 (en) * | 2019-09-27 | 2021-04-06 | Adp, Llc | User interface engine for miniapp development |
US11657217B2 (en) * | 2020-06-26 | 2023-05-23 | Adaptam Inc. | Methods and systems for presenting drop-down, pop-up or other presentation of a multi-value data set in a spreadsheet cell |
-
2022
- 2022-01-25 CN CN202210084755.9A patent/CN114527969B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103885943A (en) * | 2012-12-19 | 2014-06-25 | 北大方正集团有限公司 | Method for achieving drop-down list box control in webpage |
CN103294654A (en) * | 2013-05-23 | 2013-09-11 | 山西大学 | Text list combobox |
WO2018032813A1 (en) * | 2016-08-15 | 2018-02-22 | 中兴通讯股份有限公司 | Pull-down menu display method, apparatus, assembly, application, storage medium and device |
CN108733279A (en) * | 2017-04-19 | 2018-11-02 | 北京国双科技有限公司 | Drop-down list display methods and device |
CN108804483A (en) * | 2017-05-05 | 2018-11-13 | 平安科技(深圳)有限公司 | Rendering intent, server and the computer readable storage medium of the cell page |
CN111819534A (en) * | 2017-12-03 | 2020-10-23 | 托马斯·斯塔胡拉 | Spreadsheet-based software application development |
CN109471694A (en) * | 2018-10-29 | 2019-03-15 | 恒生电子股份有限公司 | Drop-down list management method and drop-down list |
CN109634596A (en) * | 2018-12-11 | 2019-04-16 | 清华大学 | Visual programming tools based on flow chart |
CN110837366A (en) * | 2019-10-11 | 2020-02-25 | 平安科技(深圳)有限公司 | Form generation method, electronic device and computer readable storage medium |
CN112800736A (en) * | 2021-02-04 | 2021-05-14 | 杉数科技(北京)有限公司 | Method, device, medium and computer equipment for generating cell editing assembly |
Also Published As
Publication number | Publication date |
---|---|
CN114527969A (en) | 2022-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101885089B1 (en) | Excel export method for bim design files | |
JP4827834B2 (en) | Method and apparatus for modifying process control data | |
KR101265851B1 (en) | Autocompleting with queries to a database | |
JP2002521746A (en) | Method and tool for visually assisting interpretation of data displayed on a display device | |
US11429253B2 (en) | Integrated drill down within a natural language interface for visual analysis | |
US20200103844A1 (en) | Bulk commissioning of field devices within a process plant | |
CN113886362A (en) | Data storage system and storage method based on workflow engine and low-code platform | |
US20070244694A1 (en) | Dictionary-content processing apparatus, content displaying system, and content displaying method | |
CN105893063B (en) | A kind of construction method of the Application Program Interface based on XML format configuration file | |
CN101776999A (en) | Platform for developing and implementing software system | |
CN111095195A (en) | Controller, control method, and control program | |
CN107615191B (en) | Debugging apparatus and adjustment method | |
US8737746B2 (en) | Method for multiple pass symbol and components-based visual object searching of documents | |
WO2018193503A1 (en) | Program creation device | |
CN114527969B (en) | Method for converting list cell into drop-down list form input | |
US20240111401A1 (en) | Information processing apparatus, information processing method, and program | |
US9395872B2 (en) | Facilities controlling device, screen displaying method, and recording medium | |
CN111596607B (en) | Upper computer general HMI interface design method capable of configuring text and operation command | |
US20170235705A1 (en) | Method of computerized presentation of a document set view for auditing information and managing sets of multiple documents and pages | |
JP2001266171A (en) | Plotting device and computer-readable recording medium with plotting program recorded thereon | |
JP2008021154A (en) | Operation screen editing method for control indicator | |
JPH08329004A (en) | Method for improving terminal operability of application program use | |
CN108073395A (en) | A kind of production programmed method | |
JP2002229612A (en) | Ladder diagram preparing program and storage medium for recording the same | |
CN105447279A (en) | Intelligent tolerance specification design method for geometric products and visual tolerance annotation system |
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 |