COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

	Copyright (c) GeoWorks 1988 -- All Rights Reserved

PROJECT:	Welcome
FILE:		backgrnd.def


REVISION HISTORY:
	
	Name	Date		Description
	----	----		-----------
	atw	10/ 9/90		Initial revision


DESCRIPTION:
	This file contains descriptions/definitions for the background files.
		
	$Id: backgrnd.def,v 1.1 97/04/04 14:25:21 newdeal Exp $

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@

SetDef	__BACKGRND

BG_PROTO_MAJOR		equ	1
BG_PROTO_MINOR		equ	0

FieldBGFormatType	etype	word
;	To add/support new types, change OLFieldDrawBG

	FBGFT_STANDARD_GSTRING	enum	FieldBGFormatType
	;Just a standard graphics string.

	FBGFT_BITMAP_SLICES	enum	FieldBGFormatType
	;(Not currently supported)

FieldBGMapBlock	struct
	FBGMB_width	word			;Width of BG
	FBGMB_height	word			;Height of BG
	FBGMB_xOffset	word			;XOffset to draw BG at
	FBGMB_yOffset	word			;YOffset to draw BG at
	FBGMB_type	FieldBGFormatType	;Type of BG
	FBGMB_data	label	word
FieldBGMapBlock	ends


;
;Format of VM bitmap file:
;
;	Map Block format (FieldBGMapBlock structure):
;		word	BG width (not including any offset below)
;		word	BG height (not including any offset below)
;		word	X offset to draw bg at
;		word	Y offset to draw bg at
;		word	FieldBGFormatType enum
;
;			if FBGFT_STANDARD_GSTRING:
;		word	block handle of first block of standard VM GString
;
;			if FBGFT_BITMAP_SLICES
;		word	last line in slice (0 is first line)
;		word	block handle containing slice
;			...
;	

;
;	Descriptions of strings in the .ini file
;
BACKGROUND_DIR		equ	<"BACKGRND">
BACKGROUND_CATEGORY	equ	<"ui">
BACKGROUND_NAME_KEY	equ	<"background">
BACKGROUND_ATTR_KEY	equ	<"backgroundattr">
BACKGROUND_COLOR_KEY	equ	<"backgroundcolor">

