home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 September / Chip_2001-09_cd1.bin / zkuste / delphi / kolekce / d123456 / DFS.ZIP / DlgTest.txt < prev    next >
Text File  |  2001-06-28  |  3KB  |  71 lines

  1. DlgTest v1.04
  2.  
  3. Description:
  4.   A component editor that allows testing of the TCommonDialog descendants
  5.   at design time.  This allows you to set the varios options and then view
  6.   the results without having to compile and run your application.  The name
  7.   "Component Editor" is a bit of a misnomer for this, but that's what it's
  8.   called.  We add a menu item, 'Test Dialog', to the context menu (right
  9.   click) the displays the dialog, and add the same functionality for double
  10.   clicking on the component.  If the TCommonDialog class had a pure virtual
  11.   method "Execute" that each descendant overrode like it should, this would
  12.   be much easier.  Because Execute is not defined in the ancestor, we have
  13.   register for each component type we want to add this to instead of just
  14.   registering it for TCommonDialog.  Beginning object oriented programmers
  15.   learn from this:  Just because you can't see a need for it, doesn't mean
  16.   that there isn't one.
  17.  
  18.   Update:  Delphi 3 got it right, so we do it the easy way if we are compiling
  19.     undering it.
  20.  
  21. Contact Information:
  22.   Feel free to contact me if you have any questions, comments or suggestions
  23.   at bstowers@pobox.com.
  24.   The lateset version will always be available on the web at:
  25.     http://www.pobox.com/~bstowers/delphi/
  26.  
  27. Installation:  Simply compile this into your component library (a package in
  28.   Delphi 3) as you would any component.  Afterwards, you will have a new menu
  29.   item when you right click on any component that descends from TCommonDialog
  30.   (TOpenDialog, TColorDialog, etc).
  31.  
  32. C++Builder 5 and up:
  33.   * Add the unit to the design-time package of your choice.
  34.   * Select the package the component has been added to, and choose
  35.     Project | Edit Option Source to open the package options in the editor.
  36.   * In the entry for PFLAGS, add the "-LUvcl50" option.  For example:
  37.       <PFLAGS value="-$YD -$W -$O -v -JPHNE -M -LUvcl50"/>
  38.   * Recompile the package.
  39.   * For Borland's official word on this situation, open the C++Builder help
  40.     file and search the index for "dsgnintf.dcu" and see the "Compiling
  41.     packages with DsgnIntf" section.
  42.  
  43. Delphi 6 and up:
  44.   * Add the unit to the design-time package of your choice.
  45.   * Add the DesignIDE package to the Requires list of the package into which
  46.     the component is being installed.
  47.   * Recompile the package.
  48.   * This is necessary because of changes to the design-time support units
  49.     introduced in Delphi 6.  For complete information, see the Del6New.hlp
  50.     file in your Delphi 6 Help directory.  In the index, search for
  51.     "upgrade issues" and in the resulting list of topics, select the
  52.     "DsgnIntf renamed and related changes" topic.
  53.  
  54.  
  55. Known Issues:
  56.  * There are no known issues at this time.
  57.  
  58.  
  59. Revision History:
  60.  1.04:  + Updated for Delphi 6 compatibility.  See updated install directions
  61.           above.
  62.  1.03:  + Updated for C++Builder 5 compatibility.
  63.  1.02:  + Updated for Delphi 3 compatibility.  If using with Delphi 3, the
  64.           "Test" item will now show up on all TCommonDialog descendant
  65.           components because Borland finally added an abstract Execute
  66.           method to it.
  67.  1.01:  + Changed 'AnsiString' to 'String'.  Will now compile with no
  68.           changes under Delphi 1.x.
  69.  1.00:  + Initial release
  70.  
  71.