1 SHORT Col_BorderVectors1[] = {
8 struct Border Col_Border1 = {
9 -1,-1, /* XY origin relative to container TopLeft */
10 3,0,JAM1, /* front pen, back pen and drawmode */
11 5, /* number of XY vectors */
12 Col_BorderVectors1, /* pointer to XY vectors */
13 NULL /* next border in list */
16 struct IntuiText Col_IText1 = {
17 7,0,JAM1, /* front and back text pens, drawmode and fill byte */
18 13,1, /* XY origin relative to container TopLeft */
19 NULL, /* font pointer or NULL for default */
20 "Save", /* pointer to text */
21 NULL /* next IntuiText structure */
24 struct Gadget Col_Save = {
25 NULL, /* next gadget */
26 9,77, /* origin XY of hit box relative to window TopLeft */
27 58,11, /* hit box width and height */
28 NULL, /* gadget flags */
29 RELVERIFY, /* activation flags */
30 BOOLGADGET, /* gadget type flags */
31 (APTR)&Col_Border1, /* gadget border or image to be rendered */
32 NULL, /* alternate imagery for selection */
33 &Col_IText1, /* first IntuiText structure */
34 NULL, /* gadget mutual-exclude long word */
35 NULL, /* SpecialInfo structure */
36 GADCOLSAVE, /* user-definable data */
37 NULL /* pointer to user-definable data */
40 SHORT Col_BorderVectors2[] = {
47 struct Border Col_Border2 = {
48 -1,-1, /* XY origin relative to container TopLeft */
49 3,0,JAM1, /* front pen, back pen and drawmode */
50 5, /* number of XY vectors */
51 Col_BorderVectors2, /* pointer to XY vectors */
52 NULL /* next border in list */
55 struct IntuiText Col_IText2 = {
56 7,0,JAM1, /* front and back text pens, drawmode and fill byte */
57 17,1, /* XY origin relative to container TopLeft */
58 NULL, /* font pointer or NULL for default */
59 "Use", /* pointer to text */
60 NULL /* next IntuiText structure */
63 struct Gadget Col_Okay = {
64 &Col_Save, /* next gadget */
65 128,77, /* origin XY of hit box relative to window TopLeft */
66 58,11, /* hit box width and height */
67 NULL, /* gadget flags */
68 RELVERIFY, /* activation flags */
69 BOOLGADGET, /* gadget type flags */
70 (APTR)&Col_Border2, /* gadget border or image to be rendered */
71 NULL, /* alternate imagery for selection */
72 &Col_IText2, /* first IntuiText structure */
73 NULL, /* gadget mutual-exclude long word */
74 NULL, /* SpecialInfo structure */
75 GADCOLOKAY, /* user-definable data */
76 NULL /* pointer to user-definable data */
79 SHORT Col_BorderVectors3[] = {
86 struct Border Col_Border3 = {
87 -1,-1, /* XY origin relative to container TopLeft */
88 3,0,JAM1, /* front pen, back pen and drawmode */
89 5, /* number of XY vectors */
90 Col_BorderVectors3, /* pointer to XY vectors */
91 NULL /* next border in list */
94 struct IntuiText Col_IText3 = {
95 7,0,JAM1, /* front and back text pens, drawmode and fill byte */
96 6,1, /* XY origin relative to container TopLeft */
97 NULL, /* font pointer or NULL for default */
98 "Cancel", /* pointer to text */
99 NULL /* next IntuiText structure */
102 struct Gadget Col_Cancel = {
103 &Col_Okay, /* next gadget */
104 244,77, /* origin XY of hit box relative to window TopLeft */
105 58,11, /* hit box width and height */
106 NULL, /* gadget flags */
107 RELVERIFY, /* activation flags */
108 BOOLGADGET, /* gadget type flags */
109 (APTR)&Col_Border3, /* gadget border or image to be rendered */
110 NULL, /* alternate imagery for selection */
111 &Col_IText3, /* first IntuiText structure */
112 NULL, /* gadget mutual-exclude long word */
113 NULL, /* SpecialInfo structure */
114 GADCOLCANCEL, /* user-definable data */
115 NULL /* pointer to user-definable data */
118 struct PropInfo Col_Col_RedPenSInfo = {
119 AUTOKNOB+FREEHORIZ, /* PropInfo flags */
120 0,0, /* horizontal and vertical pot values */
121 -1,-1, /* horizontal and vertical body values */
124 struct Image Col_Image1 = {
125 0,0, /* XY origin relative to container TopLeft */
126 263,7, /* Image width and height in pixels */
127 0, /* number of bitplanes in Image */
128 NULL, /* pointer to ImageData */
129 0x0000,0x0000, /* PlanePick and PlaneOnOff */
130 NULL /* next Image structure */
133 struct Gadget Col_RedPen = {
134 &Col_Cancel, /* next gadget */
135 32,12, /* origin XY of hit box relative to window TopLeft */
136 271,11, /* hit box width and height */
137 NULL, /* gadget flags */
138 RELVERIFY+GADGIMMEDIATE+FOLLOWMOUSE, /* activation flags */
139 PROPGADGET, /* gadget type flags */
140 (APTR)&Col_Image1, /* gadget border or image to be rendered */
141 NULL, /* alternate imagery for selection */
142 NULL, /* first IntuiText structure */
143 NULL, /* gadget mutual-exclude long word */
144 (APTR)&Col_Col_RedPenSInfo, /* SpecialInfo structure */
145 GADREDPEN, /* user-definable data */
146 NULL /* pointer to user-definable data */
149 struct PropInfo Col_Col_GreenPenSInfo = {
150 AUTOKNOB+FREEHORIZ, /* PropInfo flags */
151 0,0, /* horizontal and vertical pot values */
152 -1,-1, /* horizontal and vertical body values */
155 struct Image Col_Image2 = {
156 0,0, /* XY origin relative to container TopLeft */
157 263,7, /* Image width and height in pixels */
158 0, /* number of bitplanes in Image */
159 NULL, /* pointer to ImageData */
160 0x0000,0x0000, /* PlanePick and PlaneOnOff */
161 NULL /* next Image structure */
164 struct Gadget Col_GreenPen = {
165 &Col_RedPen, /* next gadget */
166 32,24, /* origin XY of hit box relative to window TopLeft */
167 271,11, /* hit box width and height */
168 NULL, /* gadget flags */
169 RELVERIFY+GADGIMMEDIATE+FOLLOWMOUSE, /* activation flags */
170 PROPGADGET, /* gadget type flags */
171 (APTR)&Col_Image2, /* gadget border or image to be rendered */
172 NULL, /* alternate imagery for selection */
173 NULL, /* first IntuiText structure */
174 NULL, /* gadget mutual-exclude long word */
175 (APTR)&Col_Col_GreenPenSInfo, /* SpecialInfo structure */
176 GADGREENPEN, /* user-definable data */
177 NULL /* pointer to user-definable data */
180 struct PropInfo Col_Col_BluePenSInfo = {
181 AUTOKNOB+FREEHORIZ, /* PropInfo flags */
182 0,0, /* horizontal and vertical pot values */
183 -1,-1, /* horizontal and vertical body values */
186 struct Image Col_Image3 = {
187 0,0, /* XY origin relative to container TopLeft */
188 263,7, /* Image width and height in pixels */
189 0, /* number of bitplanes in Image */
190 NULL, /* pointer to ImageData */
191 0x0000,0x0000, /* PlanePick and PlaneOnOff */
192 NULL /* next Image structure */
195 struct Gadget Col_BluePen = {
196 &Col_GreenPen, /* next gadget */
197 32,36, /* origin XY of hit box relative to window TopLeft */
198 271,11, /* hit box width and height */
199 NULL, /* gadget flags */
200 RELVERIFY+GADGIMMEDIATE+FOLLOWMOUSE, /* activation flags */
201 PROPGADGET, /* gadget type flags */
202 (APTR)&Col_Image3, /* gadget border or image to be rendered */
203 NULL, /* alternate imagery for selection */
204 NULL, /* first IntuiText structure */
205 NULL, /* gadget mutual-exclude long word */
206 (APTR)&Col_Col_BluePenSInfo, /* SpecialInfo structure */
207 GADBLUEPEN, /* user-definable data */
208 NULL /* pointer to user-definable data */
211 #define Col_GadgetList1 Col_BluePen
213 struct IntuiText Col_IText6 = {
214 3,0,JAM1, /* front and back text pens, drawmode and fill byte */
215 17,38, /* XY origin relative to container TopLeft */
216 NULL, /* font pointer or NULL for default */
217 "B", /* pointer to text */
218 NULL /* next IntuiText structure */
221 struct IntuiText Col_IText5 = {
222 4,0,JAM1, /* front and back text pens, drawmode and fill byte */
223 16,26, /* XY origin relative to container TopLeft */
224 NULL, /* font pointer or NULL for default */
225 "G", /* pointer to text */
226 &Col_IText6 /* next IntuiText structure */
229 struct IntuiText Col_IText4 = {
230 7,0,JAM1, /* front and back text pens, drawmode and fill byte */
231 16,14, /* XY origin relative to container TopLeft */
232 NULL, /* font pointer or NULL for default */
233 "R", /* pointer to text */
234 &Col_IText5 /* next IntuiText structure */
237 #define Col_IntuiTextList1 Col_IText4
239 struct NewWindow Col_NewWindowStructure1 = {
240 175,45, /* window XY origin relative to TopLeft of screen */
241 312,93, /* window width and height */
242 0,1, /* detail and block pens */
243 MOUSEBUTTONS+MOUSEMOVE+GADGETDOWN+GADGETUP+CLOSEWINDOW+VANILLAKEY+INTUITICKS, /* IDCMP flags */
244 WINDOWDRAG+WINDOWDEPTH+WINDOWCLOSE+ACTIVATE+NOCAREREFRESH, /* other window flags */
245 &Col_BluePen, /* first gadget in gadget list */
246 NULL, /* custom CHECKMARK imagery */
247 "Edit Screen Colors", /* window title */
248 NULL, /* custom screen pointer */
249 NULL, /* custom bitmap */
250 5,5, /* minimum width and height */
251 -1,-1, /* maximum width and height */
252 CUSTOMSCREEN /* destination screen type */
256 /* end of PowerWindows source generation */