home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / Workshop / Disk1 / readme.txt < prev    next >
Encoding:
Text File  |  1999-01-12  |  4.0 KB  |  101 lines

  1.                ******************************
  2.                 WELCOME TO RESOURCE WORKSHOP
  3.                ******************************
  4.  
  5. This README file contains important information about 
  6. RESOURCE WORKSHOP (RW).  For the latest information
  7. about RW, read this entire file.
  8.  
  9. *****************
  10. TABLE OF CONTENTS
  11. *****************
  12. 1.  Installation
  13.  
  14. 2.  Using non-Delphi Resource Files in a Delphi Project
  15.  
  16. *********************************************
  17. 1. INSTALLATION 
  18. *********************************************
  19.  
  20. For information and advice about
  21. installation, see the INSTALL.TXT file.
  22.  
  23. ******************************************************
  24. 2. USING NON-DELPHI RESOURCE FILES IN A DELPHI PROJECT
  25. ******************************************************
  26.  
  27. Resource Workshop creates resource files with extensions
  28. such as RES, RC, BMP, and ICO.  You can use these files in
  29. your Delphi project.  They need not reside in the project
  30. directory.  When you correctly specify such files in a
  31. project, Delphi integrates them when you save or compile
  32. the project. Some of these files might be common to
  33. multiple projects. Some common examples of non-Delphi files
  34. used in Delphi projects are:
  35.  
  36. Image files    
  37.     The bitmaps (.BMP, .WMF files) that you use in TImage-type
  38.     components, or as glyphs on TBitBtn components, can reside
  39.     anywhere on your system. When specified as properties of
  40.     these graphical components, Delphi takes a "snapshot" of
  41.     the disk file and stores this in the binary form (.DFM)
  42.     file.  They are eventually compiled into the project
  43.     executable file.
  44.  
  45. Icon files    
  46.     The icons (.ICO files) that you specify in the Icon property
  47.     of forms and in the Project Options dialog box can also
  48.     reside anywhere. They are integrated into the project in the
  49.     same way as bitmap image files. .BMP and .ICO files can also
  50.     be created with the Delphi Image editor, or you can choose
  51.     from the bitmaps and icons available in the Delphi Image
  52.     Library.
  53.  
  54. Menu files
  55.     Delphi supports menus built with other applications, so
  56.     long as they are in the standard Windows resource (.RC)
  57.     file format. You can import such menus directly into your
  58.     Delphi project, saving you the time and effort of
  59.     rebuilding menus that you created elsewhere.
  60.  
  61.     To load an existing .RC menu file,
  62.  
  63.     1.    In the Menu Designer, place the cursor where you
  64.          want the menu to appear. The imported menu can be part
  65.          of a menu you are designing, or an entire menu in itself.
  66.  
  67.     2.    From the Menu Designer SpeedMenu, choose Insert From
  68.          Resource. The Insert Menu From Resource dialog box appears.
  69.  
  70.     3.    In the dialog box, select the resource file you want to 
  71.          load, and choose OK.  The menu appears in the Menu Designer 
  72.          window.
  73.  
  74.     Note:  If your resource file contains more than one
  75.            menu, you first need to save each menu as a separate
  76.            resource file before importing it.
  77.  
  78. Compiled resource files (.RES)
  79.     Use the Resource file directive {$R filename} to
  80.     include a .RES file in an application or library.
  81.  
  82.     The default extension for filename is .RES. It must be a
  83.     Windows resource file.  The resource file must reside in 
  84.     the same directory as the unit source file or DCU.
  85.  
  86.     When used in a unit, the resource file name is simply
  87.     recorded in the resulting unit file; no checks are made to
  88.     ensure that the file exists at compile time.
  89.  
  90.     When an application or library is linked, the resource files
  91.     specified in all units and in the program or library itself
  92.     are processed and each resource in each resource file is
  93.     copied to the .EXE or .DLL file being produced.
  94.  
  95.     Note: This directive allows multiple .RES files per unit.
  96.     There is no compile-time confirmation of the contents of a
  97.     .RES file, or whether it is a valid .RES file (whether it
  98.     exists). Files listed with the $R directive must be present
  99.     at link time, or you will receive the error message "File
  100.     not found (<filename>.RES)." 
  101.