/*
 * LISTBOX.H
 *
 * header-module of listbox.s (part of jet_conf.prg)
 * listbox routines to use with jet_conf.prg.
 *
 */

#ifndef __LISTBOX__H_
#define __LISTBOX__H_

/*--- includes              ---*/

/*--- defines               ---*/

#define		LIST_INIT		1
#define		LIST_DRAW		2
#define		LIST_CLICK		4

/*--- types                 ---*/

/* LISTBOX-Struktur: */
typedef struct
{
	OBJECT	*tree;
	VOID	*itemlist;
	LONG	itemsize;
	BOOLEAN	indirect;
	WORD	num_items;
	WORD	vis_items;
	WORD	width;
	WORD	first_item;
	WORD	active;
	WORD	sel_state;
	WORD	root;
	WORD	items;
	WORD	up;
	WORD	down;
	WORD	parent;
	WORD	slider;
	VOID	(*func)( VOID *list );
} LISTBOX;

/*--- variables             ---*/

/*--- prototypes            ---*/

GLOBAL VOID listbox( LISTBOX *list, MKINFO *mk, WORD flags );

/*--- End of listbox.h module  ---*/

#endif