1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
|
{
fpGUI - Free Pascal GUI Toolkit
Copyright (C) 2006 - 2010 See the file AUTHORS.txt, included in this
distribution, for details of the copyright.
See the file COPYING.modifiedLGPL, included in this distribution,
for details about redistributing fpGUI.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Description:
Standard fpGUI images that will be used in things like Message,
FileOpen, FileSave dialogs, Buttons, etc..
}
unit fpg_stdimages;
{$mode objfpc}{$H+}
interface
uses
fpg_main;
procedure fpgCreateStandardImages;
implementation
{$I stdimages.inc}
Const
// 60x12 pixel 4bpp bitmap
(*
RadioBitmapData: array[0..359] of Byte = (
$00, $00, $22, $22, $00, $00, $00, $00, $22, $22, $00, $00, $00, $00, $22, $22, $00, $00, $00, $00, $22, $22, $00, $00, $00, $00, $22, $22, $00, $00,
$00, $22, $11, $11, $22, $00, $00, $22, $11, $11, $22, $00, $00, $22, $11, $11, $22, $00, $00, $22, $11, $11, $22, $00, $00, $22, $11, $11, $22, $00,
$02, $11, $77, $77, $11, $50, $02, $11, $77, $77, $11, $50, $02, $11, $33, $33, $11, $50, $02, $11, $33, $33, $11, $50, $02, $11, $33, $33, $11, $50,
$02, $17, $77, $77, $74, $50, $02, $17, $77, $77, $74, $50, $02, $13, $33, $33, $34, $50, $02, $13, $33, $33, $34, $50, $02, $13, $33, $33, $34, $50,
$21, $77, $77, $77, $77, $45, $21, $77, $76, $67, $77, $45, $21, $33, $33, $33, $33, $45, $21, $33, $36, $63, $33, $45, $21, $33, $32, $23, $33, $45,
$21, $77, $77, $77, $77, $45, $21, $77, $66, $66, $77, $45, $21, $33, $33, $33, $33, $45, $21, $33, $66, $66, $33, $45, $21, $33, $22, $22, $33, $45,
$21, $77, $77, $77, $77, $45, $21, $77, $66, $66, $77, $45, $21, $33, $33, $33, $33, $45, $21, $33, $66, $66, $33, $45, $21, $33, $22, $22, $33, $45,
$21, $77, $77, $77, $77, $45, $21, $77, $76, $67, $77, $45, $21, $33, $33, $33, $33, $45, $21, $33, $36, $63, $33, $45, $21, $33, $32, $23, $33, $45,
$02, $17, $77, $77, $74, $50, $02, $17, $77, $77, $74, $50, $02, $13, $33, $33, $34, $50, $02, $13, $33, $33, $34, $50, $02, $13, $33, $33, $34, $50,
$02, $44, $77, $77, $44, $50, $02, $44, $77, $77, $44, $50, $02, $44, $33, $33, $44, $50, $02, $44, $33, $33, $44, $50, $02, $44, $33, $33, $44, $50,
$00, $55, $44, $44, $55, $00, $00, $55, $44, $44, $55, $00, $00, $55, $44, $44, $55, $00, $00, $55, $44, $44, $55, $00, $00, $55, $44, $44, $55, $00,
$00, $00, $55, $55, $00, $00, $00, $00, $55, $55, $00, $00, $00, $00, $55, $55, $00, $00, $00, $00, $55, $55, $00, $00, $00, $00, $55, $55, $00, $00
);
*)
// 12x12 pixel monochrome bitmap
RadioMaskData: array[0..23] of Byte = ($0f, $00, $3f, $c0, $7f, $e0, $7f,
$e0, $ff, $f0, $ff, $f0, $ff, $f0, $ff, $f0, $7f, $e0, $7f, $e0, $3f, $c0,
$0f, $00);
// 64x8 pixel 4bpp bitmap
ArrowBitmapData: array[0..255] of Byte = (
$33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $13, $33, $33, $31, $33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $23, $33, $33, $23, $33, $33,
$33, $33, $33, $33, $33, $33, $33, $33, $33, $31, $13, $33, $33, $31, $13, $33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $32, $25, $33, $33, $22, $33, $33,
$33, $31, $33, $33, $11, $11, $11, $13, $33, $11, $13, $33, $33, $31, $11, $33, $33, $32, $33, $33, $22, $22, $22, $23, $33, $22, $25, $33, $33, $22, $23, $33,
$33, $11, $13, $33, $31, $11, $11, $33, $31, $11, $13, $33, $33, $31, $11, $13, $33, $22, $23, $33, $32, $22, $22, $55, $32, $22, $25, $33, $33, $22, $22, $33,
$31, $11, $11, $33, $33, $11, $13, $33, $33, $11, $13, $33, $33, $31, $11, $33, $32, $22, $22, $33, $33, $22, $25, $53, $33, $22, $25, $33, $33, $22, $25, $53,
$11, $11, $11, $13, $33, $31, $33, $33, $33, $31, $13, $33, $33, $31, $13, $33, $22, $22, $22, $23, $33, $32, $55, $33, $33, $32, $25, $33, $33, $22, $55, $33,
$33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $13, $33, $33, $31, $33, $33, $35, $55, $55, $55, $33, $33, $53, $33, $33, $33, $25, $33, $33, $25, $53, $33,
$33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $33, $35, $33, $33, $35, $33, $33
);
procedure fpgCreateStandardImages;
begin
// system images. Change these to the composite arrow bmp that includes
// disabled state
fpgImages.AddMaskedBMP( // 7x4 image
'sys.sb.up',
@stdimg_arrow_up,
sizeof(stdimg_arrow_up), 0, 0);
fpgImages.AddMaskedBMP( // 7x4 image
'sys.sb.down',
@stdimg_arrow_down,
sizeof(stdimg_arrow_down), 0, 3);
fpgImages.AddMaskedBMP( // 4x7 image
'sys.sb.left',
@stdimg_arrow_left,
sizeof(stdimg_arrow_left), 0, 0);
fpgImages.AddMaskedBMP( // 4x7 image
'sys.sb.right',
@stdimg_arrow_right,
sizeof(stdimg_arrow_right), 3, 0);
fpgImages.AddMaskedBMP( // 60x12 in total. 5 images of 12x12 each.
'sys.radiobuttons',
@stdimg_radiobuttons,
sizeof(stdimg_radiobuttons), 0,0);
fpgImages.AddBMP( // 65x13 pixels. 5 images of 13x13 each.
'sys.checkboxes',
@stdimg_checkboxes,
sizeof(stdimg_checkboxes));
fpgImages.AddMaskedBMP(
'stdimg.ellipse',
@stdimg_ellipse,
sizeof(stdimg_ellipse), 0,0);
// General purpose images:
fpgImages.AddMaskedBMP(
'stdimg.ok',
@stdimg_btn_ok_16,
sizeof(stdimg_btn_ok_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.cancel',
@stdimg_btn_cancel_16,
sizeof(stdimg_btn_cancel_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.yes',
@stdimg_choice_yes_16,
sizeof(stdimg_choice_yes_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.no',
@stdimg_choice_no_16,
sizeof(stdimg_choice_no_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.close',
@stdimg_btn_close_16,
sizeof(stdimg_btn_close_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.quit',
@stdimg_menu_quit_16,
sizeof(stdimg_menu_quit_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.exit',
@stdimg_menu_exit_16,
sizeof(stdimg_menu_exit_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.configure',
@stdimg_menu_preferences_16,
sizeof(stdimg_menu_preferences_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.check',
@stdimg_menu_check_16,
sizeof(stdimg_menu_check_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.document',
@stdimg_document,
sizeof(stdimg_document), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.search',
@stdimg_search_16,
sizeof(stdimg_search_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.refresh',
@stdimg_refresh_16,
sizeof(stdimg_refresh_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.font',
@stdimg_font_16,
sizeof(stdimg_font_16), 15,0);
fpgImages.AddMaskedBMP(
'stdimg.copy',
@stdimg_edit_copy_16,
sizeof(stdimg_edit_copy_16), 15,0);
fpgImages.AddMaskedBMP(
'stdimg.cut',
@stdimg_edit_cut_16,
sizeof(stdimg_edit_cut_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.paste',
@stdimg_edit_paste_16,
sizeof(stdimg_edit_paste_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.delete',
@stdimg_edit_delete_16,
sizeof(stdimg_edit_delete_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.edit',
@stdimg_edit,
sizeof(stdimg_edit), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.folder',
@stdimg_folder_16,
sizeof(stdimg_folder_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.foldernew',
@stdimg_folder_new_16,
sizeof(stdimg_folder_new_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.folderopen',
@stdimg_folder_open_16,
sizeof(stdimg_folder_open_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.folderup',
@stdimg_folder_up_16,
sizeof(stdimg_folder_up_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.folderfile',
@stdimg_folder_open_file_16,
sizeof(stdimg_folder_open_file_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.folderhome',
@stdimg_folder_home_16,
sizeof(stdimg_folder_home_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.bookmark',
@stdimg_bookmark_16,
sizeof(stdimg_bookmark_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.open',
@stdimg_folder_open_16,
sizeof(stdimg_folder_open_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.save',
@stdimg_menu_save_16,
sizeof(stdimg_menu_save_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.saveas',
@stdimg_menu_saveas_16,
sizeof(stdimg_menu_saveas_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.saveall',
@stdimg_menu_save_all_16,
sizeof(stdimg_menu_save_all_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.help',
@stdimg_help_16,
sizeof(stdimg_help_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.about',
@stdimg_about_16,
sizeof(stdimg_about_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.hidden',
@stdimg_hidden,
sizeof(stdimg_hidden), 0,0);
fpgImages.AddBMP(
'stdimg.link',
@stdimg_link,
sizeof(stdimg_link));
fpgImages.AddMaskedBMP(
'stdimg.add',
@stdimg_list_add_16,
sizeof(stdimg_list_add_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.remove',
@stdimg_list_remove_16,
sizeof(stdimg_list_remove_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.executable',
@stdimg_executable_16,
sizeof(stdimg_executable_16), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.colpicker',
@stdimg_colpicker,
sizeof(stdimg_colpicker), 0,0);
// Dialog icons
fpgImages.AddMaskedBMP(
'stdimg.dlg.help',
@stdimg_dialog_confirmation_32,
sizeof(stdimg_dialog_confirmation_32), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.dlg.info',
@stdimg_dialog_information_32,
sizeof(stdimg_dialog_information_32), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.dlg.warning',
@stdimg_dialog_warning_32,
sizeof(stdimg_dialog_warning_32), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.dlg.critical',
@stdimg_dialog_error_32,
sizeof(stdimg_dialog_error_32), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.print',
@stdimg_print,
sizeof(stdimg_print), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.Adobe_pdf',
@stdimg_Adobe_pdf,
sizeof(stdimg_Adobe_pdf), 0,0);
fpgImages.AddMaskedBMP(
'stdimg.preview',
@stdimg_preview,
sizeof(stdimg_preview), 0,0);
{
Here is a template for more images
fpgImages.AddMaskedBMP(
'stdimg.',
@stdimg_,
sizeof(stdimg_), 0,0);
}
end;
end.
|