00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
#ifndef _vdkxentry_h
00030
#define _vdkxentry_h
00031
#include <vdkxdb2/vdkxctrl.h>
00032
#include <vdk/entry.h>
00033
#include <vdk/colors.h>
00034
00035
00042 class VDKXEntry:
public VDKEntry,
public VDKXControl
00043 {
00044
00045
protected:
00046 GdkColor *default_color;
00047
static void RealizeSignal (GtkWidget* wid, gpointer gp );
00048
static int FocusOut(GtkWidget *, GdkEventFocus*,gpointer wid);
00049
static int FocusIn(GtkWidget *, GdkEventFocus*,gpointer wid);
00050
00051
public:
00052
00059
VDKXEntry(VDKForm* owner,
int maxLen = 0,
char* def = NULL);
00061
virtual ~VDKXEntry();
00065
virtual xbShort
Read();
00069
virtual xbShort
Write();
00080
virtual bool AssignTableField(
VDKXTable* table,
char* fname);
00081 bool AssignTableField(
VDKXDatabase* xdb,
00082
char* tablename,
00083
char* fieldname)
00084 {
00085
return VDKXControl::AssignTableField(xdb,tablename,fieldname);
00086 }
00087
00088 VDKReadWriteValueProp<VDKXEntry,VDKColor*> FocusColor;
00089 VDKReadWriteValueProp<VDKXEntry,int> DateMode;
00090
00091 };
00092
#endif