home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
324.lha
/
Gone
/
poplist.hxx
< prev
Wrap
Text File
|
1989-12-12
|
1KB
|
46 lines
#ifndef POPLIST_HXX
#define POPLIST_HXX
struct ListNode {
struct ListNode *next;
};
// this routine provided by the programmer
//void displayroutine(struct RastPort *DRrastport,struct ListNode *list,short y)
//{
//struct Window *DRwindow;
//DRwindow = (struct Window *)list;
// if (DRwindow->Title)
// {
// SetAPen(DRrastport,2);
// Move(DRrastport,2,y+6);
// Text(DRrastport,DRwindow->Title,strlen(DRwindow->Title));
// }
//}
class PopUpList
{
public :
struct RastPort *rastport;
struct ListNode *list;
WORD height;
WORD itemheight,itemwidth,count,position;
StdPort *ioport;
IOStdReq *ioreq;
struct InputEvent *Pevent;
BOOL openflag;
BOOL arrowflag;
PopUpList();
~PopUpList();
void draw_arrows();
void draw_list(struct ListNode *lnode);
LONG list_len(struct ListNode *mtop);
void complement_item();
void sendfalse();
struct ListNode *item_in_list(struct ListNode *mtop,LONG index);
struct ListNode *ScrollingPopUpMenu(struct Screen *screen,struct ListNode *list,WORD Aitemheight,WORD Aitemwidth,WORD icount);
};
#endif