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

data-aware VDKCheckButton widget. More...

#include <vdkxcheckbutton.h>

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

Public Member Functions

 VDKXCheckButton (VDKForm *owner, char *label=(char *) NULL, char *tip=(char *) NULL)
 
virtual ~VDKXCheckButton ()
 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 VDKCheckButton widget.

This control interfaces a logical xdb fields.

Constructor & Destructor Documentation

◆ VDKXCheckButton()

VDKXCheckButton::VDKXCheckButton ( VDKForm *  owner,
char *  label = (char*) NULL,
char *  tip = (char*) NULL 
)

Constructor

Parameters
ownerthe form that owns the control
labelwidget label
tipwidget tip

Member Function Documentation

◆ AssignTableField() [1/2]

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

Reimplemented from VDKXControl.

◆ AssignTableField() [2/2]

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

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.

◆ Read()

xbShort VDKXCheckButton::Read ( )
virtual

Read field to control

Reimplemented from VDKXControl.

◆ Write()

xbShort VDKXCheckButton::Write ( )
virtual

Writes control content to field.

Reimplemented from VDKXControl.


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