Delphi's board DBEdit components located in the components of the Data Controls page, used to edit data tables in a record field of the current value. The main components DBEdit attributes and methods are as follows:
1, the main attribute
(1) DataSource
Select the data source used to make components DBEdit through the data source to connect with the data sheet. When DBEdit through the data source and data connections table after table of data shows that the field which is determined by the DataField field.
(2) DataField
Data used to select the field, if the DataField is set to TB0602, is used to display and edit DBEdit field TB0602 value.
DataSource and DataField data interface components for the data tables and fields to choose the most important attribute 2.
(3) Enabled
When Enabled to True, when the data interface components in force at this time components can be used for editing. When Enabled for False, the data interface components Invalid, running after the assembly was gray and can not use the mouse or keyboard components of the operation.
(4) ReadOnly
When ReadOnly for True, the data can only be read can not be changed; for False, readable data can be written. The default is False.
Most of these properties is a common component interface data attributes, so the following components introduced, the introduction of these attributes will not repeat them.
2, the main method
(1) OnChange
When the contents of the field changes triggered by the incident.
(2) OnClick
Click with the mouse components to trigger the incident.
(3) OnDblClick
Double-click with the mouse components to trigger the incident.
(4) OnKeyDown
When pressing the button when the trigger event.
(5) OnKeyUp
When the release button when the trigger event.
(6) OnMouseDown
When the mouse press the trigger when the incident.
(7) OnMouseUp
When the mouse when it let go of the trigger event.
Caution should be taken that approach is also more than most of the data interface components there are ways we can try to write a small point so as to grasp. |