

The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.mozilla.org/NPL/NPL-1_1Final.html

Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either expressed or implied. See the License for
the specific language governing rights and limitations under the License.

The Initial Developer of the Code is GTRO Informatique (gtro@gtro.com)
Portions created by GTRO Informatique are Copyright (C) 2000 GTRO Informatique.
Portions created by Microsoft are Copyright (C) 1998, 1999 Microsoft Corp.
All Rights Reserved.

This file contains three data-aware components tested with Delphi 3, Delphi 4
and Delphi 5: TGtroDBPushButtonCValendar, TGtroDBDateTimePicker and TGtroDBTreeView

*******************************************************************************

TGtroDBPushButtonCalendar

This component is a data-aware calendar with push button capabilities which adds
two published properties to the TCalendar component:

(1) DataSource: TDataSource - which identifies the datasource to which the
component is connected.

(2) DataField: string - which identifies the name of the field that the compo-
nent will modify. The field must be a ftDateTime.


*******************************************************************************

TGtroDBDateTimePicker

This compenent is a data-aware DateTimePicker component which adds two
published properties to the standard TDateTimePicker:

(1) DataSource: TDataSource - which identifies the datasource to which the
component is connected.

(2) DataField: string - which identifies the name of the field that the compo-
nent will modify. When Kind = dtkDate, the field can be of two types:
ftDateTime and ftDate. When Kind = dtkTime, the field can be either a
ftDateTime or a ftTime.

The value to be transfered to the table of the database is the content of the
component. It is made available each time the content of the component is
changed. Posting the result to the database must be done explicitely.

*******************************************************************************

TGtroDBTreeView

This compenent is a data-aware TreeView component which can let you control
the content of a table through a hierarchical view (TreeView). This requires
that the table contain four fields: (1) the Key field which must be the first
field of the table and must be keyed for unique integer values; (2) the Parent
field which is of the same type as the Key field but does not need to be
indexed; (3) the IsFolder field which is a boolean field that tells the compo-
nend if the record represents a container of nodes or not; and finally (4) the
Title field which contains the caption of the node.

GTroDBTreeView is derived  from TCustomTreeView and adds five
published properties to the standard TTreeView:

(1) DataSource: TDataSource - which identifies the datasource to which the
component is connected.

(2) KeyFieldName: string - which identifies the name of the Key field

(3) ParentFieldName: string - which identifies the name of the Parenty field

(4) IsFolderFieldName: string - which identifies the name of the IsFolder field

(5) LabelFielddName: string - which identifies the name of the node label field

(5) Home: string - which indicates the caption of the root node of the tree.

It provides public properties and methods to add, rename or delete nodes from
the tree while at the same time maintaining the table current with the tree.
The table may contain as many fields as required by the task at hand.

*******************************************************************************
For more information, contact GTRO Informatique at gtro@gtro.com




