TdblookUpComboBoxeh's summary of the EHLIB component package

xiaoxiao2021-03-06  168

TDBLOOKUPCOMBOXEH is as strong as TDBGrideh, you can make ComboBox pull down the GRID.

Here are some of some important properties (I have a half-day kung fu, too little document .......)

(1) ListSource and DataSource properties, this is better understood that DataSource is the TDataSource where this ComboBox itself corresponds to the field of the database. ListSource corresponds to the datag set (comparative 拗) associated with this ComboBox itself.

For example, adotable1 is a product form. DataSource1 is the corresponding adotable1, and the adotable2 is a commodity classification table. DataSource2 is corresponding to adotable2. Now you need to have a TDBlookUpComboBoxeh on the interface. The effect you need is the item classification of TDBlookUpComboBoxeh associated product table, and you want users to choose product categories, then his ListSource should choose DataSource2, his Datasource corresponds to DataSource1.

(2) DataField properties. Should be the field name of the primary table.

(3) Keyfield properties. It should be the name of the corresponding field corresponding to the coding table;

(4) Listfield properties. This is a very critical attribute. If you want to pull out a table's effect rather than just a list effect, then this place can fill in multiple field names, intermediate ";" Capture (with a semicolum).

(5) ListfieldIndex properties. This property is also critical. It decides what you are selected, what content is displayed in the control, although the product class and commodity classification are associated, but you know that you want to display the product classification name, this time this parameter is very important. For example, the previous listField property is set to "FLBM; FLMC; SJFL" (Note: Classification Code; Classification Name; Super Level Classification), then if the user selects the ComboBox drop-down menu, you want to display the category name rather than classified encoding, you need to set up ListfieldIndex is 1 instead of 0. This is just the content displayed, the content of the actual library is still the content corresponding to the DataField.

(6) STYLE properties. This property is set to CSDropDownListeh to ensure that users can only select and cannot enter characters. If set to csdropdowneh, you can enter characters (feeling that it is impossible to enter content yourself, unless the table is very uncomfortable, use this feature to quickly locate, but to legally verify the input content)

(7) DROPDOWNBOX.SHOWTITE properties. This property is set to TRUE to display the title of the drop-down table.

(8) DROPDOWNBOX.COLUMN properties. This property is similar to the COLUMN attribute of DBGRIDEH. You can set the displayed title (otherwise the default title is the field name), or some parameters of the drop-down table can also be set, such as the number of lines displayed.

(9) DROPDOWNBOX.SIZABLE properties. Determines whether the drop-down table can allow the user to change the size.

(10) EditButton properties. You can allow users to set the type of the small button on the right, is the drop-down icon or a custom icon or other style.

------------------------ I hope that later people can walk less, huh, huh ~

转载请注明原文地址:https://www.9cbs.com/read-101772.html

New Post(0)