Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

VDKXControl Class Reference

VDK data-aware widgets base class. More...

#include <vdkxctrl.h>

Inheritance diagram for VDKXControl:

VDKXCheckButton VDKXCustomList VDKXEntry VDKXMemo List of all members.

Public Methods

Protected Attributes


Detailed Description

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.


Member Function Documentation

bool VDKXControl::AssignTableField VDKXDatabase   xdb,
char *    tablename,
char *    fieldname
[virtual]
 

Assign a table field to the control

Parameters:
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.

bool VDKXControl::AssignTableField VDKXTable   table,
char *    fieldname
[virtual]
 

Assign a table field to the control

Parameters:
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 VDKXCheckButton, VDKXEntry, and VDKXMemo.


Member Data Documentation

xbShort VDKXControl::field_type [protected]
 

Field type. Can be:

  • 'C' character
  • 'D' date
  • 'L' logical
  • 'M' memo
  • 'N' numeric
  • 'F' float


The documentation for this class was generated from the following files:
Generated on Fri Apr 5 09:41:22 2002 for vdkxdb 0.0.4 by doxygen1.2.15