home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 324.lha / Gone / poplist.hxx < prev   
Text File  |  1989-12-12  |  1KB  |  46 lines

  1. #ifndef POPLIST_HXX
  2. #define POPLIST_HXX
  3.  
  4. struct ListNode {
  5.     struct ListNode *next;
  6. };
  7.  
  8.  
  9. // this routine provided by the programmer
  10. //void displayroutine(struct RastPort *DRrastport,struct ListNode *list,short y)
  11. //{
  12. //struct Window *DRwindow;
  13. //DRwindow = (struct Window *)list;
  14. //    if (DRwindow->Title) 
  15. //      {
  16. //      SetAPen(DRrastport,2);
  17. //      Move(DRrastport,2,y+6);
  18. //      Text(DRrastport,DRwindow->Title,strlen(DRwindow->Title));
  19. //      }
  20. //}
  21.  
  22.  
  23. class PopUpList
  24. {
  25. public :
  26.    struct RastPort *rastport;
  27.    struct ListNode *list;
  28.    WORD height;
  29.    WORD itemheight,itemwidth,count,position;
  30.     StdPort *ioport;
  31.     IOStdReq *ioreq;
  32.     struct InputEvent *Pevent;
  33.     BOOL openflag;
  34.     BOOL arrowflag;
  35.    PopUpList();
  36.    ~PopUpList();
  37.    void draw_arrows();
  38.    void draw_list(struct ListNode *lnode);
  39.    LONG list_len(struct ListNode *mtop);
  40.    void complement_item();
  41.    void sendfalse();
  42.    struct ListNode *item_in_list(struct ListNode *mtop,LONG index);
  43.    struct ListNode *ScrollingPopUpMenu(struct Screen *screen,struct ListNode *list,WORD Aitemheight,WORD Aitemwidth,WORD icount);
  44. };
  45.  
  46. #endif