vdkxdb 2.4.0
Public Member Functions | List of all members
VDKXEntry Class Reference

data-aware VDKEntry widget. More...

#include <vdkxentry.h>

Inheritance diagram for VDKXEntry:
VDKXControl

Public Member Functions

 VDKXEntry (VDKForm *owner, int maxLen=0, char *def=NULL)
 
virtual ~VDKXEntry ()
 Destructor.
 
virtual xbShort Read ()
 
virtual xbShort Write ()
 
virtual bool AssignTableField (VDKXTable *table, char *fname)
 
bool AssignTableField (VDKXDatabase *xdb, char *tablename, char *fieldname)
 
- Public Member Functions inherited from VDKXControl
 VDKXControl ()
 Constructor.
 
virtual ~VDKXControl ()
 Destructor.
 

Additional Inherited Members

- Protected Attributes inherited from VDKXControl
VDKXTabletable
 table that owns field
 
VDKString field_name
 field name
 
xbShort field_id
 field number
 
xbShort field_type
 

Detailed Description

data-aware VDKEntry widget.

This control interfaces a table field.

Constructor & Destructor Documentation

VDKXEntry::VDKXEntry ( VDKForm *  owner,
int  maxLen = 0,
char *  def = NULL 
)

Constructor

Parameters
ownerforms that owns the widget
maxLenmax editable chars
defdefault value

Member Function Documentation

bool VDKXEntry::AssignTableField ( VDKXTable table,
char *  fname 
)
virtual

Assign a table field to the control

Parameters
tabletable that owns the field
fnamefield name as in table VDKXRecordTemplate descriptor structure (see it into xdb/dbf.h) It can hold:
  • character type
  • numeric types
  • date types

Reimplemented from VDKXControl.

bool VDKXEntry::AssignTableField ( VDKXDatabase xdb,
char *  tablename,
char *  fieldname 
)
inlinevirtual

Assign a table field to the control

Parameters
xdbthe xdatabase
tablenamefilename of the table that owns the field
fieldnamefield 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 from VDKXControl.

xbShort VDKXEntry::Read ( )
virtual

Read field to control

Reimplemented from VDKXControl.

xbShort VDKXEntry::Write ( )
virtual

Writes control content to field.

Reimplemented from VDKXControl.


The documentation for this class was generated from the following files: