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

  1. TdfsGrabBar v1.16
  2.  
  3. Description:
  4.   A bar that allows two TWinControl components to be resized by dragging it.
  5.  
  6.  
  7. Contact Information:
  8.   The lateset version will always be available on the web at:
  9.     http://www.delphifreestuff.com
  10.   If you have any questions, comments or suggestions, please use the Delphi
  11.   Free Stuff Support Forum at: 
  12.     http://www.delphifreestuff.com/discus/
  13.   If, for some reason, you can not use the web-based support forum, you can
  14.   email me at bstowers@delphifreestuff.com.  However, the support forum will
  15.   always take precedence over direct email since it provides a resource that
  16.   others can use when they have a problem.  Every message posted to the forum
  17.   is emailed directly to this account, so emailing me directly will not get 
  18.   your message to me any faster.  It will only make the message less important
  19.   for me to respond to since only one person (you) is benefiting from it
  20.   instead of everyone interested.  Having said all that, please do email me 
  21.   directly if it is regarding something that isn't really support related, 
  22.   i.e. just to say thanks (as novel as that idea is).  
  23.  
  24.  
  25. Installation:
  26.   Delphi 1:
  27.     * Select the 'Options | Install Components' menu item.
  28.     * In the Install Components dialog, click the Add button.
  29.     * In the Add Module dialog, enter the full path name of the component's 
  30.       registration unit (the unit that ends with 'Reg.pas', i.e. 
  31.       'BrowseDrReg.pas') and click OK.
  32.     * In the Add Module dialog, click OK.
  33.     * The component library will be rebuilt and a new tab named 'DFS' will
  34.       be available on the Component Palette.
  35.   
  36.   Delphi 2, C++Builder 1:
  37.     * Select the 'Component | Install' menu item.
  38.     * In the Install Components dialog, click the Add button.
  39.     * In the Add Module dialog, enter the full path name of the component's 
  40.       registration unit (the unit that ends with 'Reg.pas', i.e. 
  41.       'BrowseDrReg.pas') and click OK.
  42.     * In the Add Module dialog, click OK.
  43.     * The component library will be rebuilt and a new tab named 'DFS' will be 
  44.       available on the Component Palette.
  45.   
  46.   Delphi 3, 4, 5, C++Builder 3 & 4:
  47.     * Do one of the following:
  48.       + Create a new package by selecting File | New and choosing Package from
  49.         the New tab in the dialog.
  50.       + Open an existing package file.  I suggest you do this if you already 
  51.         have a package that you like to use for small, third party components.
  52.         I specifically have a package named "3rdParty.dpk" that I use for 
  53.         small components that come from other people.  Or, if you are using
  54.         several of my components, you might create a "DFS.dpk" package and 
  55.         use it for all of my DFS components.
  56.     * In the resulting package window, click the Add button.
  57.     * In the Add dialog, on the Add Unit tab, enter the full path name of the 
  58.       component's registration unit (the unit that ends with 'Reg.pas', i.e. 
  59.       'BrowseDrReg.pas') and click OK.
  60.     * You may want to add the other source files (*.pas) to the package as 
  61.       well in the same manner as you did the registration unit.  While this is
  62.       not required, not doing it will cause compiler warnings when the package
  63.       is compiled.  The component will function fine either way, but I 
  64.       personally find the warnings very irritating and am not happy until 
  65.       every compiler warning and hint is gone.
  66.     * If this package is new, or it has never been installed, click the 
  67.       Install button in the package window.  If this package is already 
  68.       installed in Delphi, click the Compile button.
  69.  
  70.   C++Builder 5 and up:
  71.     * Perform the "Delphi 3 and up, C++Builder 3 and up" steps above, except
  72.       for the last step (Compile or Install).
  73.     * Select the package the component has been added to, and choose 
  74.       Project | Edit Option Source to open the package options in the editor.
  75.     * In the entry for PFLAGS, add the "-LUvcl50" option.  For example:
  76.         <PFLAGS value="-$YD -$W -$O -v -JPHNE -M -LUvcl50"/>
  77.     * Perform the final step from above, Compile or Install.
  78.     * For Borland's official word on this situation, open the C++Builder help
  79.       file and search the index for "dsgnintf.dcu" and see the "Compiling
  80.       packages with DsgnIntf" section.
  81.  
  82.   Delphi 6 and up:
  83.     * Perform the "Delphi 3, 4, 5, C++Builder 3 & 4" steps above, except
  84.       for the last step (Compile or Install).
  85.     * Add the DesignIDE package to the Requires list of the package into which
  86.       the component is being installed.
  87.     * Perform the final step from above, Compile or Install.
  88.     * This is necessary because of changes to the design-time support units
  89.       introduced in Delphi 6.  For complete information, see the Del6New.hlp
  90.       file in your Delphi 6 Help directory.  In the index, search for
  91.       "upgrade issues" and in the resulting list of topics, select the
  92.       "DsgnIntf renamed and related changes" topic.
  93.  
  94.  
  95. Known Issues:
  96.   * Because of the DCX_PARENTCLIP in GetDCEx, moving bar over controls that
  97.     are not involved in the moving process will get a bar drawn on them.
  98.     But, in practice, the bar should never be in a position to move over
  99.     windows that it is not connected with.  Without this, couldn't see bar
  100.     over controls created after it.
  101.   * Does not get along with siblings who are alClient aligned.  Use a TPanel
  102.     as parent of bar and siblings and align the panel as alClient.
  103.   * Needs a keyboard interface.
  104.  
  105.  
  106. Revision History:
  107.   1.16:  + Updated for Delphi 6 compatibility.  See updated install directions
  108.            above.
  109.   1.15:  + Updated for C++Builder 5 compatibility.
  110.   1.14:  + George Tasker fixed a nasty recursion problem when aligning things.
  111.            Many thanks to him.
  112.   1.13:  + It's *really* D5 compatible now.  Small change between the D5 eval
  113.            version and the real, shipping D5 version broke it.
  114.   1.12   + Component classname changed.
  115.          + D5 compatibility.
  116.   1.11:  + Added GBarReg unit.  All IDE specific code (i.e. registering the
  117.            component, property editors, etc.) are contained in this unit.  This
  118.            was done for two primary reasons:  1) Using the component in a Delphi
  119.            or C++Builder expert would register the component as well.  2) Reduce
  120.            code size in some cases -- usually the smart linker removes this sort
  121.            of stuff since the app never references it, but now it's for certain
  122.            since it isn't even in the unit.  This change means that you need to
  123.            install the component using the new "registration" unit instead of
  124.            the unit containing the component.
  125.   1.10:  + SetBounds method was inadvertently redeclared in the protected
  126.            section.  It should have been, and now is, in the public section.
  127.   1.09:  + If parent of the bar was a panel, it's BorderWidth was not honored.
  128.            This was fixed by Rob Leland <leland@cais.com>, many thanks to him.
  129.   1.08:  + Added Version property.
  130.   1.07:  + Updated for new DFS.INC file, component tab name, history/comments
  131.            file.
  132.   1.06:  + Optimized painting.  Removed Paint method entirely, BorderStyle is
  133.            now drawn by Windows itself via WS_BORDER style flag (geez, I can be
  134.            dense) and Ctl3D painting is done in WM_ERASEBKGND message handler
  135.            where it is MUCH faster.  This was really bad when MS Plus! was
  136.            installed and windows were redrawn as they were resized.
  137.          + Resizing the parent window will now honor the WindowBMinSize property
  138.            as best it can.  Trying honor both WindowAMinSize and WindowBMinSize
  139.            is going to be a mess (have to handle WM_GETMINMAXINFO) and I'm just
  140.            too lazy to get into it right now.
  141.   1.05:  + Fixed small painting problem when maximizing or restoring window.
  142.          + WindowAMinSize and WindowBMinSize properties added to allow limiting
  143.            of the size a window can be shrunk to.  Most code provided by Beth
  144.            Weiss (bweiss@wpgate1.wpafb.af.mil).
  145.   1.04:  + Fixed problem that could allow bar to be moved under controls that
  146.            were not being separated by the bar.  This would hide the bar from
  147.            the user.
  148.          + Fixed bug that would, under certain conditions, cause the bar to
  149.            have an incorrect thickness.
  150.          + Fixed bug that would allow you to select the same window for both
  151.            WindowA and WindowB properties.  Caused nasty crash when the control
  152.            is removed.
  153.          + Added DragUpdate property that resizes the split windows as you drag
  154.            the grab bar.
  155.   1.03:  + Resource for 16 and 32-bit version.  This takes the place of a
  156.            DCR file, which can't be compatible with both.  See the $R directive
  157.            below. To compile the resource file, use the following
  158.              Delphi 1: BRCC.EXE -foGrabBar.r16 -31 GrabBar.rc
  159.              Delphi 2: BRCC32.EXE -foGrabBar.r32 -w32 GrabBar.rc
  160.   1.02:  + Automatically adjusts windows it owns to proper alignment in this
  161.            way:  Alignment of alNone is not adjusted.  alClient is changed to
  162.            alLeft/alRight or alTop/alBottom based on current divider style.
  163.            alLeft/alRight and alTop/alBottom are validated, i.e. if WindowA
  164.            property is aligned alRight, it is changed to be alLeft, or if
  165.            WindowB was alLeft in gbHorizonal bar, it would be changed to alTop.
  166.          + Changing the style now will now move the control to the center of
  167.            parent window.  Before it would be something silly like flush top or
  168.            left.
  169.   1.01:  + Stupid last minute optimization broke the thing.  Fixed.
  170.   1.00:  + Initial release
  171.  
  172.