home *** CD-ROM | disk | FTP | other *** search
- About the Fish Facts demo application
- -------------------------------------
- This application demonstrates several development techniques:
- * how to display Paradox style memo and graphic fields in a form
- * how to configure a Table component to control which fields are
- brought into the application
- * how to control which fields display in a DBGrid
- * how to set Panel component properties for different visual effects
- * how to implement an icon for a form and the application
-
- The program uses the BIOLIFE.DB table included in the sample data
- directory. A single line of Object Pascal code in the OnClick event
- handler for the BitBtn1 component is all that is necessary to write to
- achieve the full functionality of the application.
-
- The application is essentially an information viewer. Infomation about
- a fish species displays in various form components at runtime. The user
- changes records by scrolling a the DBGrid. As the records change, a
- picture of the fish displays in the DBImage component (this is a graphic
- BLOB stored in the table), and notes about the species displays in the
- DBMemo component (this is BLOB text stored in a memo field in the table.)
-
- The Table1 component is configured using the Data Set Designer (Dbl-click
- the Table component) to bring all data fields into the application except
- the SpeciesNo field, which is not needed.
-
- Several fields have been eliminated from display in the DBGrid1 component
- by using the Object Inspector to set the VISIBLE property of several TField
- components to False. To see an example of this, select Table1Common_Name in
- the Object Inspector component list and look at the properties.
-
- Some field formatting has been done in the same way. For example, select
- Table1Length_In and look at the Alignment, DisplayFormat and DisplayLabel
- properties.
-
- Once you are familiar with Delphi, this application should take about
- 15-20 minutes to build.
-
- Troubleshooting:
- The application uses the BIOLIFE.DB file located in the sample databse
- directory and accessed through a Borland Database Engine alias named
- DBDEMOS which points to the location of the sample database files...
- (normally \DELPHI\DEMOS\DATABASE).
-
- When compiling the application, if you get an error indicating a problem
- connecting to the database table, check the following:
- 1. Open the project.
- 2. Select the Table1 component.
- 3. Select the DatabaseName property.
- 4. Make sure the value of this property is either a path specification
- pointing to the directory where the BIOLIFE.DB file resides, or
- an alias pointing to this same directory.
- 5. Set the Active property of Table1 to True
-