1 // This file is part of e93.
2 //
3 // e93 is free software; you can redistribute it and/or modify
4 // it under the terms of the e93 LICENSE AGREEMENT.
5 //
6 // e93 is distributed in the hope that it will be useful,
7 // but WITHOUT ANY WARRANTY; without even the implied warranty of
8 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9 // e93 LICENSE AGREEMENT for more details.
10 //
11 // You should have received a copy of the e93 LICENSE AGREEMENT
12 // along with e93; see the file "LICENSE.TXT".
13 
14 typedef void textBoxResizeFunction(EDITOR_WINDOW *dialog,EDITOR_RECT *newRect);
15 
16 typedef struct textBoxDescriptor		// describes a list box to creation routines
17 {
18 	EDITOR_BUFFER
19 		*buffer;						// the buffer on which to view
20 	textBoxResizeFunction
21 		*resizeFunction;				// function which is used to resize for this window
22 	UINT32
23 		topLine;
24 	INT32
25 		leftPixel;
26 	UINT32
27 		tabSize;
28 	EDITOR_COLOR
29 		focusBackgroundColor,			// color to use when drawing background when it has focus
30 		focusForegroundColor,			// color to use when drawing foreground when it has focus
31 		nofocusBackgroundColor,			// color to use when drawing background when it does not have focus
32 		nofocusForegroundColor;			// color to use when drawing foreground when it does not have focus
33 	char
34 		*fontName;						// name of font to use
35 } TEXT_BOX_DESCRIPTOR;
36 
37 bool CreateTextBoxItem(DIALOG_ITEM *item,void *descriptor);
38