|
vdkxdb 2.4.0
|
VDK data-aware widgets base class. More...
#include <vdkxctrl.h>
Public Member Functions | |
| VDKXControl () | |
| Constructor. | |
| virtual | ~VDKXControl () |
| Destructor. | |
| virtual bool | AssignTableField (VDKXTable *table, char *fieldname) |
| virtual bool | AssignTableField (VDKXDatabase *xdb, char *tablename, char *fieldname) |
| virtual xbShort | Read () |
| Read form field to control. | |
| virtual xbShort | Write () |
| Writes from control to field. | |
Protected Attributes | |
| VDKXTable * | table |
| table that owns field | |
| VDKString | field_name |
| field name | |
| xbShort | field_id |
| field number | |
| xbShort | field_type |
VDK data-aware widgets base class.
This class provides common behaviours for VDKXControls that are interface widgets with a database field. VDKXControls provides to read/write their value to/from database fields. In order to make them operate correctly user must assign a field to the control using AssignTableField() method. All data-aware widget are subclasses of this class.
|
virtual |
Assign a table field to the control
| table | table that owns the field |
| fieldname | field name as in table VDKXRecordTemplate descriptor structure (see it into xdb/dbf.h) Note: not all controls can hold all types, see subclasses for detailed informations. |
Reimplemented in VDKXEntry, VDKXCheckButton, and VDKXMemo.
|
virtual |
Assign a table field to the control
| xdb | the xdatabase |
| tablename | filename of the table that owns the field |
| fieldname | field name as in table VDKXRecordTemplate descriptor structure (see it into xdb/dbf.h) Note: not all controls can hold all types, see subclasses for detailed informations. |
Reimplemented in VDKXCheckButton, VDKXEntry, and VDKXMemo.
|
protected |
Field type. Can be:
1.8.2