VfwGrabX ActiveX-panel for view/grab video by VFW:AviCap functions ******************

The capture-window types can be:
   AutoSize: panel resize itself after connecting or changing video format
   Stretch : to the given size
   AsIs    : use the original frame-size
User can zoom to the movie by simply clicking the mouse
   a MapPanel will show the original frame and the position of the selected rectangle
   SaveFrame() method will save the selected rectangle
Algorithm try use overlay capabilities if can
   or use preview (slower)
   or copy frame in CallbackOnFrame directly / viaClipboard(slowest)
Normally You only need to use
   StartView()
   SaveFrame(filename)
   StopView() methods in code
Needed: using NViewLib.dll the SaveFrame() method can save in BMP,JPG,GIF,.. formats 
   !!!!!!!!!! this NVIEWLIB.DLL is not part of the package !!!!!!!!!!!!!!!
   !!!!!!!!!! Author of NVIEWLIB.DLL: K. Nishita           !!!!!!!!!!!!!!!
   !!!!!!!!!!    email: nviewlib@freeware.freeservers.com  !!!!!!!!!!!!!!!
   !!!!!!!!!!    http://freeware.freeservers.com           !!!!!!!!!!!!!!!
Bug-report:
   running in certain C-Builer IDE: StartView() generates "OutOfResources" exception
   CBuilder 3.0 bug: after importing OCX, source will contain an error:
      __property IFontDisp* Font = {read = get_Font, write = _set_Font};
      solution: change set-method to: set_Font
Licence:
   Without runtime licence-key it works in demo mode (means, that frames can't be saved)
   Personal licence-key can order for 120 USD fee from the following adresses:

 Developed by Firtha Ferenc, Budapest, 2000 *****************************
  *            EMail:   ffirtha@omega.kee.hu                             *
  *            HomeWeb: http://physics2.kee.hu/ffirtha                   *
  ************ HomeFtp: ftp://physics2.kee.hu/ffirtha ********************

public methods and properties of VfwGrabX component: *********************
class PACKAGE VfwGrab : public TPanel
__public:
        Boolean __fastcall      StartView(void);			// start
        Boolean __fastcall      FreezeView(void);			// restart by Start
        Boolean __fastcall      SaveFrame(AnsiString FileName);		// bmp/jpg/gif/...
        Boolean __fastcall      ShowMap(Boolean show);			// show/hide
        void __fastcall         ResetView(void);                	// Zoom=1, no Map
        void __fastcall         StopView(void);				// stop

        Boolean __fastcall      ShowDlgSource(void);			// dialogs of driver
        Boolean __fastcall      ShowDlgFormat(void);
        Boolean __fastcall      ShowDlgDisplay(void);

        Boolean __fastcall      ConnectDriver(void);			// no need to use
        Boolean __fastcall      GetFrameSize(int *Width, int *Height);
        Boolean __fastcall      ChkSizes(Boolean force_reset);
        void __fastcall         ShowInfo(void);
        void __fastcall         DisconnectDriver(void);

__published:
        // my properties:
        __property int        acWinType;		// 0:AutoSize / 1:Stretch / 2:AsIs
        __property Boolean    acTryOverlay;		// try if it has the capabilities
        __property Boolean    acDoOvlDebug;		// some card has bug in FreezeView()
        __property Boolean    acForceCallback;		// even if no need
        __property Boolean    acCanZoom;		// by left/right mouse-button
        __property Boolean    acAutoMap;		// if zoom>1
        __property Boolean    acShowWarnings;

        __property Boolean    acHasOverlay;		// readonly driver:capabilities ****
        __property Boolean    acHasFormatOk;            // can copy directly (not via Clipboard)
        __property Boolean    acHasDlgSource;
        __property Boolean    acHasDlgFormat;
        __property Boolean    acHasDlgDisplay;

        __property int        acDrvID;			// readonly description ************
        __property AnsiString acDrvName;
        __property AnsiString acDrvVer;

        __property Boolean    acIsDriver;		// readonly state ******************
        __property Boolean    acIsWindowOn;		// capture window opened
        __property Boolean    acIsConnected;            // driver connected
        __property Boolean    acIsStarted;              // preview started
        __property Boolean    acIsFreezed;              // preview freezed
        __property Boolean    acIsCallbackOn;           // display via callback function
        __property Boolean    acIsOverlayOn;            // display overlay

        // my events:
        __property TNotifyEvent _OnFrame;		// after CallbackOnFrame:frame ready
        __property TNotifyEvent _OnAutoSize;		// after autosize panel
