home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 594b.lha / Precognition_rel1 / ListBrowser.h < prev    next >
C/C++ Source or Header  |  1991-12-12  |  1KB  |  59 lines

  1. /* ==========================================================================
  2. **
  3. **                         ListBrowser.h
  4. **
  5. ** A ListBrowser displays a list of strings, and allows the user to select
  6. ** one or more of them.
  7. **
  8. ** ©1991 WILLISoft
  9. **
  10. ** ==========================================================================
  11. */
  12.  
  13. #ifndef LISTBROWSER_H
  14. #define LISTBROWSER_H
  15.  
  16. #include "StringList.h"
  17. #include "StringLister.h"
  18. #include "Precognition3D.h"
  19. #include "EmbossedGadget.h"
  20.  
  21. typedef struct ListBrowser
  22.    {
  23.       EmbossedGadget     eg;
  24.       StringList         List;
  25.       BOOL               SelectMany;
  26.       USHORT             nRows;
  27.       USHORT             nColumns;
  28.       USHORT             YOffset;
  29.    } ListBrowser;
  30.  
  31.  
  32.  
  33.  
  34. void ListBrowser_Init( ListBrowser   *self,
  35.                        PIXELS         LeftEdge,
  36.                        PIXELS         TopEdge,
  37.                        PIXELS         Width,
  38.                        PIXELS         Height,
  39.                        pcg_3DPens     Pens,
  40.                        BOOL           SelectMany );
  41.  
  42.  
  43. USHORT ListBrowser_SetYOffset( ListBrowser *Browser,
  44.                                USHORT       YOffset );
  45.  
  46.  
  47.  
  48. /* -- Qualifiers for 'AddString()'.
  49. **
  50. ** ENTRY_SELECTED    : This element is selected.
  51. ** ENTRY_SPECIAL     : Displayed in a different pen color.
  52. ** ENTRY_DISABLED    : Displayed ghosted.
  53. */
  54. #define ENTRY_SELECTED     1
  55. #define ENTRY_SPECIAL      2
  56. #define ENTRY_DISABLED     4
  57.  
  58. #endif
  59.