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

data-aware VDKText widget. More...

#include <vdkxmemo.h>

Inheritance diagram for VDKXMemo:
Inheritance graph
[legend]
Collaboration diagram for VDKXMemo:
Collaboration graph
[legend]

Public Member Functions

 VDKXMemo (VDKForm *owner)
 Constructor.
 
virtual ~VDKXMemo ()
 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 VDKText widget.

This control uses an underlying xdb memo field.

Member Function Documentation

◆ AssignTableField() [1/2]

bool VDKXMemo::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:
  • memo field type. Returns false on failure.

Reimplemented from VDKXControl.

◆ AssignTableField() [2/2]

bool VDKXMemo::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.

◆ Read()

xbShort VDKXMemo::Read ( )
virtual

Read field to control

Reimplemented from VDKXControl.

◆ Write()

xbShort VDKXMemo::Write ( )
virtual

Writes control content to field.

Reimplemented from VDKXControl.


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