


Component:    TWinZoom
Version:      1.2
Created:      01-06-2001
Author:       Aart Gerde
Copyright:     2001 EasterEgg, Aart Gerde
Status:       FREEWARE - see conditions below

Conditions:   * You can use the TWinZoom component in any application you like -
                commercial, shareware or freeware:) - without having to give me
                any credits.
              *	However, the TWinZoom component itself (or any other component
                that is a descendant of TWinZoom!) may not be sold - you got it
                for free, so give it away for free:) to as many people as you
                like. Just don't modify the source code and claim it to be your
                own or leave out any commentary in this unit when distributing it.
                If you make a component wich has TWinZoom as an ancestor, you
                should give me proper credits.
              * When you distribute it, don't just distribute the .dcu file but
                the .pas file as well, along with the original WinZoom.dcr -
                I put a lot of work in that too;).

Disclaimer:   The TWinZoom component has been created using Delphi 4.0 professional
              on a Celeron 400 Mhz PC, Windows 98. It has not been tested with
              any other version of Windows or Delphi. The TWinZoom component is
              provided "as is", without any guarantee of any kind. By using the
              TWinZoom component you declare to have read and accept this disclaimer
              and agree to use the TWinZoom component at your own risk without ever
              holding me (or anyone else who distributed the TWinZoom component
              in its original form to you) liable for any damage or loss of any
              kind that may arise out of the use of the TWinZoom component, or
              any other component that is a descendant of the TWinZoom component.

Note:         Although the TWinZoom component has been developed using Delphi 4.0,
              it seems unlikely to me that using it with an earlier version of
              Delphi will give any trouble, except for Delphi 1.0.

Description:  This component enables the form it is dropped onto to show zoom
              animation whenever the form is minimized, maximized or restored.
              It plays the sounds that are associated with those events and also
              has event handlers for them.

              Delphi (2.0 - 4.0) strangely enough doesn't add this standard
              windows behaviour to it's forms (due to the underlying application
              window). TWinZoom does. The application window shows a button
              in the taskbar and by default, the form does not. That's why the text
              on the button in the taskbar differs from the forms caption
              (e.g. Project1 - Form1), wich is also not standard behaviour in Windows.
              TWinZoom fixes this too by hiding the application window button and
              showing only the button of the form. TWinZoom enables the form to
              show a button by setting its extended window style to WS_EX_APPWINDOW.

              TWinZoom has the following events:

              - OnMinimize
              - OnMaximize
              - OnRestoreDown
              - OnRestoreUp

              The OnMinimize, OnMaximize, OnRestoreDown and OnRestoreUp event
              handlers are ment for whatever you want to happen when the form is
              respectively minimized, maximized or restored (up or down), so
              there's no need to trap the WM_SYSCOMMAND messages send to the form
              in order to do so. 

              Enjoy:)

              Aart Gerde
              e-mail: easteregg@subdimension.com

History       1.1 - Initial release;
              1.2 - TWinZoom now executes the Application.OnMinimize and
                    Application.OnRestore event handlers (if any) when the
                    form is minimized or restored;
                  - Removed a few unnecessary lines;


