home *** CD-ROM | disk | FTP | other *** search
/ PC Format Collection 48 / SENT14D.ISO / tech / delphi / disk15 / fishfact.pak / FISHFACT.TXT < prev   
Encoding:
Text File  |  1995-08-24  |  2.6 KB  |  55 lines

  1. About the Fish Facts demo application
  2. -------------------------------------
  3. This application demonstrates several development techniques:
  4.    * how to display Paradox style memo and graphic fields in a form
  5.    * how to configure a Table component to control which fields are
  6.      brought into the application
  7.    * how to control which fields display in a DBGrid
  8.    * how to set Panel component properties for different visual effects
  9.    * how to implement an icon for a form and the application
  10.  
  11. The program uses the BIOLIFE.DB table included in the sample data
  12. directory. A single line of Object Pascal code in the OnClick event
  13. handler for the BitBtn1 component is all that is necessary to write to
  14. achieve the full functionality of the application.
  15.  
  16. The application is essentially an information viewer. Infomation about
  17. a fish species displays in various form components at runtime. The user
  18. changes records by scrolling a the DBGrid. As the records change, a
  19. picture of the fish displays in the DBImage component (this is a graphic
  20. BLOB stored in the table), and notes about the species displays in the
  21. DBMemo component (this is BLOB text stored in a memo field in the table.)
  22.  
  23. The Table1 component is configured using the Data Set Designer (Dbl-click
  24. the Table component) to bring all data fields into the application except
  25. the SpeciesNo field, which is not needed.
  26.  
  27. Several fields have been eliminated from display in the DBGrid1 component
  28. by using the Object Inspector to set the VISIBLE property of several TField
  29. components to False. To see an example of this, select Table1Common_Name in
  30. the Object Inspector component list and look at the properties.
  31.  
  32. Some field formatting has been done in the same way. For example, select
  33. Table1Length_In and look at the Alignment, DisplayFormat and DisplayLabel
  34. properties.
  35.  
  36. Once you are familiar with Delphi, this application should take about
  37. 15-20 minutes to build.
  38.  
  39. Troubleshooting:
  40. The application uses the BIOLIFE.DB file located in the sample databse
  41. directory and accessed through a Borland Database Engine alias named
  42. DBDEMOS which points to the location of the sample database files...
  43. (normally \DELPHI\DEMOS\DATABASE).
  44.  
  45. When compiling the application, if you get an error indicating a problem
  46. connecting to the database table, check the following:
  47.    1. Open the project.
  48.    2. Select the Table1 component.
  49.    3. Select the DatabaseName property.
  50.    4. Make sure the value of this property is either a path specification
  51.       pointing to the directory where the BIOLIFE.DB file resides, or
  52.       an alias pointing to this same directory.
  53.    5. Set the Active property of Table1 to True
  54.  
  55.