CN102063422A - Method for embedding and displaying embedded control in table control - Google Patents

Method for embedding and displaying embedded control in table control Download PDF

Info

Publication number
CN102063422A
CN102063422A CN2010106128956A CN201010612895A CN102063422A CN 102063422 A CN102063422 A CN 102063422A CN 2010106128956 A CN2010106128956 A CN 2010106128956A CN 201010612895 A CN201010612895 A CN 201010612895A CN 102063422 A CN102063422 A CN 102063422A
Authority
CN
China
Prior art keywords
control
embedding
input
embedded control
display position
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
CN2010106128956A
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.)
DongGuan TopFer Electronic Technology Co Ltd
Original Assignee
DongGuan TopFer Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by DongGuan TopFer Electronic Technology Co Ltd filed Critical DongGuan TopFer Electronic Technology Co Ltd
Priority to CN2010106128956A priority Critical patent/CN102063422A/en
Publication of CN102063422A publication Critical patent/CN102063422A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)

Abstract

The invention relates to a method for embedding and displaying an embedded control in a table control. The method comprises the following steps of: initializing the embedded control to be embedded; setting the display position of the embedded control in a table; setting the line of effective display data of the current table to ensure that the display position of the embedded control is in the line position of the effective display data of the table; when a user inputs into the table, acquiring the position information of user input through the table control, and judging whether the input position is identical to the display position of the embedded control; if so, displaying the embedded control, and if not, not displaying the embedded control; and rejudging when the input position changes. By adopting the technical scheme, the editing of all irregular data can be ensured not to occur in illegal positions, so that the editing of irregular data becomes convenient and quick; and meanwhile, the defects of editing model loading and larger occupied memory space caused by irregular data editing can also be avoided.

Description

A kind of method that in grid control, embeds and show the embedding control
Technical field:
The present invention relates to the data editing module in the field tests, relate in particular to the edit methods of anomaly number certificate, refer in particular to a kind of method that in grid control, embeds and show the embedding control.
Background technology:
In actual applications, particularly in grid control, show anomaly number according to the time, under many circumstances, each ranks in form not necessarily equate, these ranks have been deposited different information respectively, and the user does not often need to use all column informations in this form in order to realize a certain specific purpose, and only need use the wherein information of part row, therefore, how show that according to user's different demands anomaly numbers are according to the thing that has become people's common concern.
In the prior art, a lot of at the situation of form, the mode that adopts mainly contains at present:
1. all ranks numbers equate from the programming angle, to have only a grid control, and programming model is simple, save internal memory, but the form ranks number in the reality does not wait, therefore need to use the mode that embeds control to realize.
2. use the mode of single control to carry out the editor of routine data, from the programming angle, the programming model load, memory headroom takies and becomes big, and independent mutually between each space, is unfavorable for the editor of data.
Therefore, though realized viewing or editing the purpose of list data in the prior art, form ranks number does not wait, and is unfavorable for programming, or adopts a plurality of controls, programming model complexity, memory headroom to take the characteristics that become big, can not satisfy actual needs.
Summary of the invention:
The objective of the invention is to solve the problems referred to above of prior art, a kind of method that embeds and show the embedding control in grid control is provided.
The present invention realizes that the technical scheme that its purpose adopts is: a kind of method that in grid control, embeds and show the embedding control, and this method comprises following steps:
A. the embedding control that will embed is carried out initial setting up, embed the final show state of control to determine this;
B. be provided with embedding the display position of control in form;
C. the ranks of the effective video data of active sheet are provided with, and the display position of guaranteeing described embedding control is within the ranks position of effective video data of form;
D. when the user imported in form, grid control obtained the positional information of user's input, and judges whether input position is identical with the display position of described embedding control, in this way, then shows described embedding control; As not, then do not show the embedding control; The input position change then rejudges.
Described input is to finish by keyboard or mouse.
Adopt technical solutions according to the invention, can guarantee that the editor of all anomaly number certificates can not appear at illegal position, make editor's anomaly number according to becoming convenient, fast; Programming model load, the memory headroom of simultaneously also having avoided the irregular editor of data to cause takies the shortcoming that becomes big.Compared with prior art, the invention solves because use increasing of single control, the programming mode complexity that causes, thus guaranteed the accuracy of data, also saved internal memory simultaneously.
Description of drawings:
Fig. 1 is the process flow diagram of the inventive method;
Fig. 2 is the process flow diagram in conjunction with keyboard operation of an embodiment of the present invention;
Fig. 3 is to embedding the synoptic diagram that control carries out initial setting up in the embodiment of the invention;
Fig. 4 is the synoptic diagram that in the embodiment of the invention ranks display position that embeds control is provided with;
Fig. 5 is the synoptic diagram that in the embodiment of the invention ranks of effective video data of form is provided with;
Fig. 6 is a direction keyboard method of operating synoptic diagram in the embodiment of the invention;
Fig. 7 is the net result displayed map of the embodiment of the invention.
Embodiment:
In conjunction with Fig. 1, shown in Figure 2, of the present inventionly in grid control, embed and show that the method that embeds control mainly comprises following steps:
A. the embedding control that will embed is carried out initial setting up, embed the final show state of control to determine this;
B. be provided with embedding the display position of control in form;
C. the ranks of the effective video data of active sheet are provided with, and the display position of guaranteeing described embedding control is within the ranks position of effective video data of form;
D. when the user imported in form, employing keyboard operation for example shown in Figure 2 was imported, and grid control obtains the positional information of user's input, and judges whether input position is identical with the display position of described embedding control, in this way, then shows described embedding control; As not, then do not show the embedding control; The input position change then rejudges.
Described input also can be to finish by mouse.
Adopt technical solutions according to the invention, can guarantee that the editor of all anomaly number certificates can not appear at illegal position, make editor's anomaly number according to becoming convenient, fast; Programming model load, the memory headroom of simultaneously also having avoided the irregular editor of data to cause takies the shortcoming that becomes big.Compared with prior art, the invention solves because use increasing of single control, the programming mode complexity that causes, thus guaranteed the accuracy of data, also saved internal memory simultaneously.
The present invention is further described below in conjunction with specific embodiments and the drawings.
At first, carry out initial setting up: for example, suppose that the parameter information of form input has numeric type, character type, drop-down list type, the original state that these embed control can be set by mode shown in Figure 3 to embedding control;
Then, be example with the embedding control of character type, by mode shown in Figure 4 display position or the stowed position of this embedding control in form is provided with;
Then, be provided with by mode shown in Figure 5 ranks to the effective video data of active sheet, the display position of guaranteeing described embedding control is within the ranks position of effective video data of form;
At last, when the user imports in form, import by employing keyboard operation shown in Figure 2, grid control obtains the positional information of user's input, and judge whether input position is identical with the display position of described embedding control, in this way, then show described embedding control, the show state of net result as shown in Figure 7; As not, then do not show the embedding control; Can change input position by direction keyboard method of operating shown in Figure 6, after input position changes, grid control obtains input position information again, and whether rejudge input position identical with the display position of described embedding control, to determine whether to show corresponding embedding control.
Perhaps, when the user need edit parameter (Fig. 7) in the current interface, also can use some positions of click form, as input operation, if the position of this form is to be in valid data display position and identical with the display position that embeds control, then can show this position corresponding controls; If invalid data display position or different with the display position that embeds control, then program is not carried out any function, the state before keeping.
After the embedding control showed, if the character type control, the user only needed input character, if the numeric type control, the user only needs input value, if list control, the user only need select some values from tabulation, can be filled up to the required value of user in the active sheet.
When the keyboard operation of user's service orientation, the next position after keyboard is pressed judged in program record, judges this position then whether in the valid data indication range, if not, then keep preceding state; If then show corresponding embedding control.
The explanation of above embodiment just is used for helping to understand method of the present invention and thought thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, outside all can changing in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (2)

1. one kind embeds in grid control and shows the method that embeds control, and it is characterized in that: this method comprises following steps:
A. the embedding control that will embed is carried out initial setting up, embed the final show state of control to determine this;
B. be provided with embedding the display position of control in form;
C. the ranks of the effective video data of active sheet are provided with, and the display position of guaranteeing described embedding control is within the ranks position of effective video data of form;
D. when the user imported in form, grid control obtained the positional information of user's input, and judges whether input position is identical with the display position of described embedding control, in this way, then shows described embedding control; As not, then do not show the embedding control; The input position change then rejudges.
2. a kind of method that embeds control in form according to claim 1, it is characterized in that: described input is to finish by keyboard or mouse.
CN2010106128956A 2010-12-29 2010-12-29 Method for embedding and displaying embedded control in table control Pending CN102063422A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010106128956A CN102063422A (en) 2010-12-29 2010-12-29 Method for embedding and displaying embedded control in table control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010106128956A CN102063422A (en) 2010-12-29 2010-12-29 Method for embedding and displaying embedded control in table control

Publications (1)

Publication Number Publication Date
CN102063422A true CN102063422A (en) 2011-05-18

Family

ID=43998703

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010106128956A Pending CN102063422A (en) 2010-12-29 2010-12-29 Method for embedding and displaying embedded control in table control

Country Status (1)

Country Link
CN (1) CN102063422A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992750A (en) * 2017-12-29 2019-07-09 珠海金山办公软件有限公司 Table objects screening technique, device, electronic equipment and storage medium
CN112097789A (en) * 2014-10-27 2020-12-18 深圳市大疆创新科技有限公司 Unmanned aerial vehicle flight display

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101539905A (en) * 2009-04-27 2009-09-23 浙江大学 Embedded multi-format electronic document marking method
CN102004723A (en) * 2009-09-02 2011-04-06 英业达股份有限公司 Electronic form system with dynamic display and method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101539905A (en) * 2009-04-27 2009-09-23 浙江大学 Embedded multi-format electronic document marking method
CN102004723A (en) * 2009-09-02 2011-04-06 英业达股份有限公司 Electronic form system with dynamic display and method thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
章立民: "《ASP.NET3.5 AJAX开发范例精讲精析 客户端篇 VB版》", 28 February 2009 *
谭浩强等: "《怎样使用internet》", 31 December 1999 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112097789A (en) * 2014-10-27 2020-12-18 深圳市大疆创新科技有限公司 Unmanned aerial vehicle flight display
CN112097789B (en) * 2014-10-27 2023-02-28 深圳市大疆创新科技有限公司 Unmanned vehicles flight display
CN109992750A (en) * 2017-12-29 2019-07-09 珠海金山办公软件有限公司 Table objects screening technique, device, electronic equipment and storage medium
CN109992750B (en) * 2017-12-29 2023-12-01 珠海金山办公软件有限公司 Table object screening method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN103019595B (en) Terminal device and method for switching theme thereof
US8977077B2 (en) Techniques for presenting user adjustments to a digital image
US20150143272A1 (en) Method for performing batch management on desktop icon and digital mobile device
CN102710900B (en) A kind of video matrix output display implement device, method and video matrix equipment
CN103092551B (en) The method of adjustment display effect and device
CN103294402A (en) Method and device for switching application interface of smart terminal
KR20140133807A (en) Drawing method, apparatus, and terminal
CN103605804A (en) Method and system for ranking desktop objects
US8913014B2 (en) Information processing apparatus and method of controlling same
CN102800045A (en) Image processing method and device
CN101727288A (en) Method and device for displaying interface
CN105354138A (en) Method for determining specific control attribute of mobile phone page
CN104272245A (en) Overscan support
CN102929529B (en) The multiselect control method of list interface, device and mobile terminal
CN111737221A (en) Data read-write method, device and equipment of cluster file system and storage medium
CN105117404B (en) Based on the chart display defect optimization method under subtype and data feature scene
CN104808959A (en) Information processing method and electronic device
CN106154853A (en) A kind of control method and mobile terminal
CN103218135A (en) Screen shot method and screen shot device on mobile terminal and mobile terminal
CN106610881A (en) Method and device for extracting function stack during no program response
CN102063422A (en) Method for embedding and displaying embedded control in table control
JP2008096725A (en) Display control unit, display control method, and program
CN106535002B (en) Desktop starter template layout updating method and device
CN105824631A (en) Control method of application program and terminal
CN104375835A (en) Information processing method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110518