Index: Description | Installing | Registration | History | Copyright | F.A.Q.
ResizerPanel v2.0 for Delphi 1, 2, 3, 4 and 5
Copyright (c) 1998 Carlos Barbosa
All Rights Reserved.
email: CarlosBarbosa@bigfoot.com
home page: http://www.bigfoot.com/~CarlosBarbosa
on-line registration: http://order.kagi.com/?KY
ResizerPanel keeps the childs controls
proportionally resized to the panel, independently of any user
resizing. With this you can easily deploy applications which resize
to the actual screen resolution.
All original VCL components are perfectly
resized by adjusting not only its size, but every other properties
that define screen dimensions. You can resize has many times as you
want and for whatever dimensions you want without losing the original
position of the components. No special coding is needed.
(These instructions assume that your copy of Delphi is installed in C:\Borland\Delphi. If not adjust the paths accordingly.)
Install the component in Delphi 2.0
1. Copy all files from
Delphi 2.0\
to the C:\Borland\Delphi\Lib
Folder.
2. Select Component|Install... to display the Install Components
dialog.
3. Select Lib\NoBDERP.pas changing the path if necessary.
4. Redo step 2 and 3 but with the file Lib\Resizer.pas.
5. The component is now installed onto the additional
tab of the component selector.
Install the help file in Delphi 2.0
1. Copy Resizer.hlp and Resizer.kwf to the C:\Borland\Delphi\Help
directory.
2. Run Helpinst from your Delphi folder.
3. Use File|Open to open C:\Borland\Delphi\Bin\Delphi.hdx.
4. Use Keywords|Add Keyword File to add Resizer.kwf changing the path if necessary.
5. Use File|Save to compile and save the new HDX file.
6. Online help is now installed.
Install the component in Delphi 3.0, 4.0 or 5.0 (Replace X with your Delphi version number)
1. Copy all files from
Delphi X.0\
to the C:\Borland\Delphi\Lib
Folder.
2. Select Component|Install Component... to display the Install
Component dialog.
3. Select Lib\NoBDERP.pas changing the path if necessary.
4. Redo step 2 and 3 but with the file Lib\Resizer.pas.
5. The component is now installed onto the additional
tab of the component selector.
Install the help file in Delphi 3.0, 4.0 or 5.0
1. Copy Resizer.hlp to the C:\Borland\Delphi\Help directory.
2. Add the following line in the "Third-Party Help" section of DelphiX.cfg:
:Link Resizer.hlp
3. Delete DelphiX.gid from the C:\Borland\Delphi\Help
directory
4. Online help is now installed.
This package is released as shareware. You may use these components inside Delphi IDE, otherwise a warning message is shown.
What registering will get you:
* Full source code sent via email.
* Free upgrades.
* Free email technical support.
* A feeling that you did the right thing.
You may register through Kagi
on-line or off-line
(register.exe).
2.08 |
99/12/02 |
Dropped Delphi 1 compatibility and added Delphi 5 version. |
2.07 |
99/06/01 |
Corrected minor bug. |
2.06 |
98/09/08 |
Launched Delphi 4 version. |
2.05 |
98/04/25 |
Fixed bug causing GPF when destroying. |
2.04 |
97/12/29 |
Commented use of ISP components to be compatible with Delphi standard. |
2.03 |
97/11/12 |
Avoided desktop refreshes when resizing. |
2.02 |
97/10/23 |
Solved memory leak in component. |
2.01 |
97/10/08 |
Moved the Warnings property from published to public and added a Warnings menu item to the context menu at design-time. |
2.00 |
97/07/15 |
TResizerPanel splitted into three
components: TCustomResizerPanel, TNoBDEResizerPanel and TResizerPanel. |
1.20 |
97/02/11 |
Launched 16 bits version. |
1.11 |
97/02/06 |
Made available MRHandle as .PAS instead of .DCU |
1.10 |
97/02/01 |
Added Active property. Added a demo executable file with sources. |
1.00 |
97/01/10 |
First release. |
There are no restrictions placed on the use
of this code in compiled DCU format or linked into an EXE or DLL.
THE INFORMATION AND CODE PROVIDED HEREUNDER
(COLLECTIVELY REFERRED TO AS "SOFTWARE") IS PROVIDED AS IS
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL CARLOS BARBOSA
(REFERRED TO AS "AUTHOR") BE LIABLE FOR ANY DAMAGES
WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL,
LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF THE AUTHOR HAS
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
This Software may be used royalty-free
subject to the following conditions:
1. You must copy all Software without
modification and must include all pages, if the Software is
distributed without inclusion in your software product. If you are
incorporating the Software in conjunction with and as a part of your
software product which adds substantial value, you may modify and
include portions of the Software.
2. Unless the Software is incorporated in
your software product which adds substantial value, you may not
distribute this Software for profit.
3. You agree to indemnify, hold harmless,
and defend the Author from and against any claims or lawsuits,
including attorneys' fees, that arise or result from the use or
distribution of your software product and any modifications to the Software.
Q: If I drop a few buttons or labels on the
left and right sides of a form in my 1024x768 res machine, then try
the program on my 800x600 machine, the labels and buttons the left
side of the form show up resizable and fine. However, the
buttons and labels I put on the right side of the form don't appear
all the way to the right like I designed, but instead 5 or 6 pixels
from the right side of the form. How can this be, and/or how may I
avoid this?
A: Probably you also change the fonts size
(small/large) which causes delphi to adapt the controls inside the
forms. To avoid this set the form's Scaled property to False.
----------------------------------------------------------------------
Q: I placed a resizer panel on the form and
aligned to client, I then placed a standard delphi 3 toolbar on the
top of the panel and added 2 buttons to the toolbar the form is set
to maximize on create when the forms runs the panel does resize but
the buttons on the bar are only a few pixels high no matter what type
of button i use - toolbutton, speedbutton etc. any ideas why??
A: You have to set the form's WindowState
property to wsNormal at design time and add into the form's OnCreate
event the line:
WindowState := wsMaximized;