home *** CD-ROM | disk | FTP | other *** search
- /* ==========================================================================
- **
- ** ListBrowser.h
- **
- ** A ListBrowser displays a list of strings, and allows the user to select
- ** one or more of them.
- **
- ** ©1991 WILLISoft
- **
- ** ==========================================================================
- */
-
- #ifndef LISTBROWSER_H
- #define LISTBROWSER_H
-
- #include "StringList.h"
- #include "StringLister.h"
- #include "Precognition3D.h"
- #include "EmbossedGadget.h"
-
- typedef struct ListBrowser
- {
- EmbossedGadget eg;
- StringList List;
- BOOL SelectMany;
- USHORT nRows;
- USHORT nColumns;
- USHORT YOffset;
- } ListBrowser;
-
-
-
-
- void ListBrowser_Init( ListBrowser *self,
- PIXELS LeftEdge,
- PIXELS TopEdge,
- PIXELS Width,
- PIXELS Height,
- pcg_3DPens Pens,
- BOOL SelectMany );
-
-
- USHORT ListBrowser_SetYOffset( ListBrowser *Browser,
- USHORT YOffset );
-
-
-
- /* -- Qualifiers for 'AddString()'.
- **
- ** ENTRY_SELECTED : This element is selected.
- ** ENTRY_SPECIAL : Displayed in a different pen color.
- ** ENTRY_DISABLED : Displayed ghosted.
- */
- #define ENTRY_SELECTED 1
- #define ENTRY_SPECIAL 2
- #define ENTRY_DISABLED 4
-
- #endif
-