Class TDBButton (unit Dabtn) |
Inherits from
TButton
TDBButton } { Data Aware Button
constructor Create(AOwner: TComponent);
- TDBButton } { Data Aware Button } { Override the constructor to initialize variables
destructor Destroy;
Override the destructor to destroy variables
procedure DataChange(Sender: TObject);
Set caption when data changes
function GetDataField: string;
Procedures for setting property values Get database field
function GetDataSource: TDataSource;
Get datasource
procedure SetDataField(const Value: string);
Set database field
procedure SetDataSource(Value: TDataSource);
Set datasource
property About : TDBBtnAboutBox
AboutBox
property DataField : string
Field in the database table
property DataSource : TDataSource
Datasource attached to the database table
FButtonAbout : TDBBtnAboutBox;
FDataLink : TFieldDataLink;
Variables for properties
constructor Create(AOwner: TComponent);
TDBButton } { Data Aware Button } { Override the constructor to initialize variables
destructor Destroy;
Override the destructor to destroy variables
procedure DataChange(Sender: TObject);
Set caption when data changes
function GetDataField: string;
Procedures for setting property values
Get database field
function GetDataSource: TDataSource;
Get datasource
procedure SetDataField(const Value: string);
Set database field
procedure SetDataSource(Value: TDataSource);
Set datasource
property About : TDBBtnAboutBox
AboutBox
property DataField : string
Field in the database table
property DataSource : TDataSource
Datasource attached to the database table
FButtonAbout : TDBBtnAboutBox;
FDataLink : TFieldDataLink;
Variables for properties