home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 377a.lha / libraries / intuition / IO / quartzwindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1980-02-04  |  2.4 KB  |  55 lines

  1.  
  2. /* quartzWindow.h -- This file implements a rather small window that */
  3. /*                    appears in the right half of the screen.       */
  4. /* Copyright (c) 1990 Commodore-Amiga, Inc.
  5.  *
  6.  * This example is provided in electronic form by Commodore-Amiga, Inc. for
  7.  * use with the 1.3 revisions of the Addison-Wesley Amiga reference manuals. 
  8.  * The 1.3 Addison-Wesley Amiga Reference Manual series contains additional
  9.  * information on the correct usage of the techniques and operating system
  10.  * functions presented in this example.  The source and executable code of
  11.  * this example may only be distributed in free electronic form, via bulletin
  12.  * board or as part of a fully non-commercial and freely redistributable
  13.  * diskette.  Both the source and executable code (including comments) must
  14.  * be included, without modification, in any copy.  This example may not be
  15.  * published in printed form or distributed with any commercial product.
  16.  * However, the programming techniques and support routines set forth in
  17.  * this example may be used in the development of original executable
  18.  * software products for Commodore Amiga computers.
  19.  * All other rights reserved.
  20.  * This example is provided "as-is" and is subject to change; no warranties
  21.  * are made.  All use is at your own risk.  No liability or responsibility
  22.  * is assumed.
  23.  */
  24.  
  25. #include "sysgads.h"
  26.  
  27. #define QUAR_LEFTEDGE 300
  28. #define QUAR_TOPEDGE  50
  29. #define QUAR_WIDTH    200
  30. #define QUAR_HEIGHT   75
  31.  
  32. struct NewWindow quartzWindow =
  33.     {
  34.         QUAR_LEFTEDGE,
  35.         QUAR_TOPEDGE,
  36.         QUAR_WIDTH,
  37.         QUAR_HEIGHT,
  38.         -1,-1,       /* Plain vanilla DetailPen and BlockPen.       */
  39.         CLOSEWINDOW, /* Tell program when close gadget has been hit */
  40.         WINDOWCLOSE | SMART_REFRESH | ACTIVATE | WINDOWDRAG |
  41.         WINDOWDEPTH | WINDOWSIZING | NOCAREREFRESH,
  42.         NULL,          /* Pointer to the first gadget -- */
  43.                        /*   may be initialized later.    */
  44.         NULL,          /* No checkmark.          */
  45.         "quartzWindow",   /* A silly title.      */
  46.         NULL,          /* Attach a screen later. */
  47.         NULL,          /* No bitmap.             */
  48.         SYSGADSWIDTH,  /* Minimum width.         */
  49.         SYSGADSHEIGHT, /* Minimum height.        */
  50.         0xFFFF,        /* Maximum width.         */
  51.         0xFFFF,        /* Maximum height.        */
  52.         CUSTOMSCREEN   /* A screen of our own.   */
  53.     };
  54.  
  55.