Class TDBButton (unit Dabtn)

Inherits from

TButton

TDBButton } { Data Aware Button

Constructors


constructor Create(AOwner: TComponent);

TDBButton } { Data Aware Button } { Override the constructor to initialize variables


Functions

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

Properties

property About : TDBBtnAboutBox

AboutBox

property DataField : string

Field in the database table

property DataSource : TDataSource

Datasource attached to the database table

Events

Variables

FButtonAbout : TDBBtnAboutBox;


FDataLink : TFieldDataLink;

Variables for properties


Constructors


constructor Create(AOwner: TComponent);

TDBButton } { Data Aware Button } { Override the constructor to initialize variables


Functions


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


Properties


property About : TDBBtnAboutBox

AboutBox


property DataField : string

Field in the database table


property DataSource : TDataSource

Datasource attached to the database table


Events


Variables


FButtonAbout : TDBBtnAboutBox;


FDataLink : TFieldDataLink;

Variables for properties