#ifndef REZ
/*===============================
|	PopupMenuContentHandler.h
|
|	Blugs 1.1 handler for a pop-up menu
|	www.blugs.com
|
|	Copyright © 1998-2001 Kyle Hammond, Brian Hall
|
|===============================*/
#include "Blugs.h"


pascal UInt32 PopupMenuContentHandler(	BLMessage			message,
										BLHandlerParamPtr	param		);


typedef struct
{	MenuRef		menu;
	SInt16		value;
	SInt16		fontNumber;
	SInt16		fontSize;
} BLPopupMenuRec, **BLPopupMenuHdl;

/*
	menu			- A menu that has been inserted in the hierarchical part of the menu list.
					Use InsertMenu( menu, -1 ) to achieve this effect.

	value		- The value of the popup menu.  1 based, just like Menu Manager.

	fontNumber	- The font to use when drawing the value.  Use 0 for system font, 1 for app font.

	fontSize		- The size of the text to draw.
*/

// To load from resource pass a structure like this:
typedef struct
{	SInt16		menuID;
	SInt16		value;
	SInt16		fontNumber;
	SInt16		fontSize;
} BLPopupMenuResRec, **BLPopupMenuResHdl;
// The handler will load the menu and insert it

#endif // REZ

#define	kPopupMenuHandler_DataFlavor			'PoCD'
#define	kPopupMenuHandler_ResourceDataFlavor	'PoRD'