
#define shellbuttonsinclude /*so other modules can tell we've been included*/

/*constants*/

#define maxbuttons 16 // to handle more, we'd have to change flags from short to longs

#define boldbuttonstyle bold

#define minbuttonwidth 45

#define pixelsbetweenbuttons 8

#if TARGET_API_MAC_CARBON == 1
	#define buttontextinset 9
#else
	#define buttontextinset 3
#endif

#ifdef MACVERSION
	#if TARGET_API_MAC_CARBON == 1
		#define buttonsrectheight 29
	#else
		#define buttonsrectheight 25
	#endif	
	#define buttonbackground qd.gray
	#define whitebackground qd.white
#endif

#ifdef WIN95VERSION
	#define buttonsrectheight 28
	#define buttonbackground GetStockObject (GRAY_BRUSH)
	#define whitebackground GetStockObject (WHITE_BRUSH)
#endif

#define buttonfont geneva
#define buttonsize 9

#define linepattern black

#define buttontopinset 5

#define buttonbottominset 6



/*function prototypes*/

extern void shellgetbuttonrect (short, Rect *);

extern void shelldrawbutton (short, boolean);

extern void shelldrawbuttons (void);

extern void shellbuttonhit (Point);

extern void shellgetbuttonsrect (hdlwindowinfo, Rect *);

extern void shellinvalbuttons (void);

extern boolean shellgetbuttonstring (short, bigstring);

extern void shellbuttongetoptimalwidth (short *);

extern void shellbuttonadjustcursor (Point);
