Subversion Repositories Kolibri OS

Rev

Rev 1041 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1041 Rev 1068
Line 1... Line 1...
1
;---------------------------------------------------------------------
1
;---------------------------------------------------------------------
2
;---  ÄÀÍÍÛÅ ÏÐÎÃÐÀÌÌÛ  ----------------------------------------------
2
;---  ÄÀÍÍÛÅ ÏÐÎÃÐÀÌÌÛ  ----------------------------------------------
3
;---------------------------------------------------------------------
3
;---------------------------------------------------------------------
-
 
4
	@use_library
4
header_1 db 'Box_lib Control Demo by Mario79',0
5
header_1 db 'Box_lib Control Demo by Mario79',0
Line 5... Line 6...
5
 
6
 
6
ok_btn db 'Ok',0
7
ok_btn db 'Ok',0
7
	
8
        
8
labelt3 db 'About program',0
9
labelt3 db 'About program',0
9
;---------------------------------------------------------------------
10
;---------------------------------------------------------------------
10
icons_file_name: db 'reload_16x16_8b.bmp',0
-
 
-
 
11
icons_file_name: db 'reload_16x16_8b.bmp',0
11
 
12
system_dir1      db '/sys/lib/'
12
plugin_BMP_name db 'cnv_bmp.obj',0
-
 
Line -... Line 13...
-
 
13
plugin_BMP_name db 'cnv_bmp.obj',0
-
 
14
 
-
 
15
system_dir      db '/sys/lib/'
13
boxlib_name db 'box_lib.obj',0
16
boxlib_name     db 'box_lib.obj',0
-
 
17
; Åñëè åñòü æåëàíèå ðàçúåäèíèòü, òî íóæíî èñïîëüçîâàòü ñëåäóþùèþ êîíñòðóêöèþ
-
 
18
;system_path      db '/sys/lib/box_lib.obj',0
-
 
19
;... ëþáàÿ ïîñëåäîâàòåëüíîñòü äðóãèõ êîìàíä è îïðåäåëåíèé.
-
 
20
;library_name     db 'box_lib.obj',0
-
 
21
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
 
22
ihead_f_i:
-
 
23
ihead_f_l        db 'System error',0
-
 
24
 
-
 
25
er_message_found_lib   db 'Sorry I cannot load library box_lib.obj',0
-
 
26
er_message_import      db 'Error on load import library box_lib.obj',0
-
 
27
 
-
 
28
er_message_found_lib2   db 'Sorry I cannot load library cnv_bmp.obj',0
-
 
29
er_message_import2      db 'Error on load import library cnv_bmp.obj',0
-
 
30
 
-
 
31
align 4
-
 
32
l_libs_start:
-
 
33
library01  l_libs boxlib_name, path, file_name, system_dir, \
-
 
34
er_message_found_lib, ihead_f_l, myimport, er_message_import, ihead_f_i
-
 
35
 
-
 
36
;library02  l_libs plugin_BMP_name, path, file_name, system_dir1,\
-
 
37
;er_message_found_lib2, ihead_f_l, myimport, er_message_import2, ihead_f_i
-
 
38
 
14
 
39
end_l_libs:
15
system_dir db '/sys/lib/box_lib.obj',0
40
 
16
;---------------------------------------------------------------------
41
;---------------------------------------------------------------------
17
fileinfo:
42
fileinfo:
18
     dd 5
43
     dd 5
19
     dd 0
44
     dd 0
20
     dd 0
45
     dd 0
21
     dd 0
46
     dd 0
22
     dd file_info
47
     dd file_info
23
string:
48
string:
24
    db 0
49
    db 0
25
	dd	file_name
50
        dd      file_name
26
	
51
        
27
plugin       dd 0
52
plugin       dd 0
28
;---------------------------------------------------------------------
53
;---------------------------------------------------------------------
29
; not change this section!!!
54
; not change this section!!!
Line 39... Line 64...
39
;---------------------------------------------------------------------
64
;---------------------------------------------------------------------
Line 40... Line 65...
40
 
65
 
41
;---------------------------------------------------------------------
66
;---------------------------------------------------------------------
42
align 4
67
align 4
-
 
68
myimport:   
-
 
69
init_lib            dd      a_init
-
 
70
version_lib         dd      a_version
Line 43... Line 71...
43
myimport:   
71
 
44
 
72
 
45
edit_box_draw   dd      aEdit_box_draw
73
edit_box_draw   dd      aEdit_box_draw
46
edit_box_key    dd      aEdit_box_key
74
edit_box_key    dd      aEdit_box_key
Line 53... Line 81...
53
 
81
 
54
option_box_draw  dd      aOption_box_draw
82
option_box_draw  dd      aOption_box_draw
55
option_box_mouse dd      aOption_box_mouse
83
option_box_mouse dd      aOption_box_mouse
Line 56... Line 84...
56
version_op       dd      aVersion_op
84
version_op       dd      aVersion_op
57
 
85
 
58
scrollbar_ver_draw		dd aScrollbar_ver_draw
86
scrollbar_ver_draw              dd aScrollbar_ver_draw
59
scrollbar_ver_mouse		dd aScrollbar_ver_mouse
87
scrollbar_ver_mouse             dd aScrollbar_ver_mouse
60
scrollbar_hor_draw		dd aScrollbar_hor_draw
88
scrollbar_hor_draw              dd aScrollbar_hor_draw
61
scrollbar_hor_mouse		dd aScrollbar_hor_mouse
89
scrollbar_hor_mouse             dd aScrollbar_hor_mouse
62
version_scrollbar		dd aVersion_scrollbar
90
version_scrollbar               dd aVersion_scrollbar
63
 
91
 
64
dinamic_button_draw		dd	aDbutton_draw
92
dinamic_button_draw             dd      aDbutton_draw
65
dinamic_button_mouse	dd	aDbutton_mouse
93
dinamic_button_mouse            dd      aDbutton_mouse
66
version_dbutton			dd	aVersion_dbutton
94
version_dbutton                 dd      aVersion_dbutton
67
 
95
 
68
menu_bar_draw			dd	aMenu_bar_draw
96
menu_bar_draw                   dd      aMenu_bar_draw
69
menu_bar_mouse			dd	aMenu_bar_mouse
97
menu_bar_mouse                  dd      aMenu_bar_mouse
70
version_menu_bar		dd	aVersion_menu_bar
98
version_menu_bar                dd      aVersion_menu_bar
Line -... Line 99...
-
 
99
                dd      0
-
 
100
                dd      0
-
 
101
 
71
                dd      0
102
a_init          db 'lib_init',0
72
                dd      0
103
a_version       db 'version',0
73
 
104
 
74
aEdit_box_draw  db 'edit_box',0
105
aEdit_box_draw  db 'edit_box',0
Line 82... Line 113...
82
 
113
 
83
aOption_box_draw  db 'option_box_draw',0
114
aOption_box_draw  db 'option_box_draw',0
84
aOption_box_mouse db 'option_box_mouse',0
115
aOption_box_mouse db 'option_box_mouse',0
Line 85... Line 116...
85
aVersion_op       db 'version_op',0
116
aVersion_op       db 'version_op',0
86
 
117
 
87
aScrollbar_ver_draw		db 'scrollbar_v_draw',0
118
aScrollbar_ver_draw             db 'scrollbar_v_draw',0
88
aScrollbar_ver_mouse	db 'scrollbar_v_mouse',0
119
aScrollbar_ver_mouse            db 'scrollbar_v_mouse',0
89
aScrollbar_hor_draw		db 'scrollbar_h_draw',0
120
aScrollbar_hor_draw             db 'scrollbar_h_draw',0
90
aScrollbar_hor_mouse	db 'scrollbar_h_mouse',0
121
aScrollbar_hor_mouse            db 'scrollbar_h_mouse',0
91
aVersion_scrollbar		db 'version_scrollbar',0
122
aVersion_scrollbar              db 'version_scrollbar',0
92
 
123
 
93
aDbutton_draw			db 'dbutton_draw',0
124
aDbutton_draw                   db 'dbutton_draw',0
94
aDbutton_mouse			db 'dbutton_mouse',0
125
aDbutton_mouse                  db 'dbutton_mouse',0
95
aVersion_dbutton		db 'version_dbutton',0
126
aVersion_dbutton                db 'version_dbutton',0
96
 
127
 
97
aMenu_bar_draw			db 'menu_bar_draw',0
128
aMenu_bar_draw                  db 'menu_bar_draw',0
98
aMenu_bar_mouse			db 'menu_bar_mouse',0
129
aMenu_bar_mouse                 db 'menu_bar_mouse',0
Line 99... Line 130...
99
aVersion_menu_bar		db 'version_menu_bar',0
130
aVersion_menu_bar               db 'version_menu_bar',0
100
;---------------------------------------------------------------------
131
;---------------------------------------------------------------------
101
 
132
 
102
;---------------------------------------------------------------------	 
133
;---------------------------------------------------------------------   
103
align 4
134
align 4
104
scroll_bar_data_vertical:
135
scroll_bar_data_vertical:
Line 130... Line 161...
130
.m_keys     dd 0 ;+64
161
.m_keys     dd 0 ;+64
131
.run_size   dd 0 ;+68
162
.run_size   dd 0 ;+68
132
.position2  dd 0 ;+72
163
.position2  dd 0 ;+72
133
.work_size  dd 0 ;+76
164
.work_size  dd 0 ;+76
134
.all_redraw dd 0 ;+80
165
.all_redraw dd 0 ;+80
135
.ar_offset	dd 10 ;+84
166
.ar_offset      dd 10 ;+84
136
;---------------------------------------------------------------------
167
;---------------------------------------------------------------------
137
align 4
168
align 4
138
scroll_bar_data_horizontal:
169
scroll_bar_data_horizontal:
139
.x:
170
.x:
140
.size_x     dw 300  ;0 ;+0
171
.size_x     dw 300  ;0 ;+0
Line 164... Line 195...
164
.m_keys     dd 0 ;+64
195
.m_keys     dd 0 ;+64
165
.run_size   dd 0 ;+68
196
.run_size   dd 0 ;+68
166
.position2  dd 0 ;+72
197
.position2  dd 0 ;+72
167
.work_size  dd 0 ;+76
198
.work_size  dd 0 ;+76
168
.all_redraw dd 0 ;+80
199
.all_redraw dd 0 ;+80
169
.ar_offset	dd 10 ;+84
200
.ar_offset      dd 10 ;+84
170
;---------------------------------------------------------------------
201
;---------------------------------------------------------------------
171
align 4
202
align 4
172
menu_data_1:
203
menu_data_1:
173
.type:			dd 0   ;+0
204
.type:                  dd 0   ;+0
174
.x:
205
.x:
175
.size_x			dw 40  ;+4
206
.size_x                 dw 40  ;+4
176
.start_x		dw 20   ;+6
207
.start_x                dw 20   ;+6
177
.y:
208
.y:
178
.size_y			dw 15   ;+8
209
.size_y                 dw 15   ;+8
179
.start_y		dw 25  ;+10
210
.start_y                dw 25  ;+10
180
.text_pointer:	dd menu_text_area  ;0 ;+12
211
.text_pointer:  dd menu_text_area  ;0 ;+12
181
.pos_pointer:	dd menu_text_area.1 ;0 ;+16
212
.pos_pointer:   dd menu_text_area.1 ;0 ;+16
182
.text_end		dd menu_text_area.end ;0 ;+20
213
.text_end               dd menu_text_area.end ;0 ;+20
183
.mouse_pos		dd 0  ;+24
214
.mouse_pos              dd 0  ;+24
184
.mouse_keys		dd 0  ;+28
215
.mouse_keys             dd 0  ;+28
185
.x1:
216
.x1:
186
.size_x1		dw 40  ;+32
217
.size_x1                dw 40  ;+32
187
.start_x1		dw 20   ;+34
218
.start_x1               dw 20   ;+34
188
.y1:
219
.y1:
189
.size_y1		dw 100   ;+36
220
.size_y1                dw 100   ;+36
190
.start_y1		dw 40  ;+38
221
.start_y1               dw 40  ;+38
191
.bckg_col       dd 0xeeeeee ;+40
222
.bckg_col       dd 0xeeeeee ;+40
192
.frnt_col       dd 0xff ;+44
223
.frnt_col       dd 0xff ;+44
193
.menu_col       dd 0xffffff ;+48
224
.menu_col       dd 0xffffff ;+48
194
.select         dd 0 ;+52
225
.select         dd 0 ;+52
195
.out_select     dd 0 ;+56
226
.out_select     dd 0 ;+56
196
.buf_adress		dd 0 ;+60
227
.buf_adress             dd 0 ;+60
197
.procinfo		dd 0 ;+64
228
.procinfo               dd 0 ;+64
198
.click			dd 0 ;+68
229
.click                  dd 0 ;+68
199
.cursor			dd 0 ;+72
230
.cursor                 dd 0 ;+72
200
.cursor_old		dd 0 ;+76
231
.cursor_old             dd 0 ;+76
201
.interval		dd 16 ;+80
232
.interval               dd 16 ;+80
202
.cursor_max		dd 0 ;+84
233
.cursor_max             dd 0 ;+84
203
.extended_key   dd 0 ;+88
234
.extended_key   dd 0 ;+88
204
.menu_sel_col	dd 0x00cc00 ;+92
235
.menu_sel_col   dd 0x00cc00 ;+92
205
.bckg_text_col	dd 0 ; +96
236
.bckg_text_col  dd 0 ; +96
206
.frnt_text_col  dd 0xffffff ;+100
237
.frnt_text_col  dd 0xffffff ;+100
207
.mouse_keys_old dd 0 ;+104
238
.mouse_keys_old dd 0 ;+104
208
.font_height	dd 8 ;+108
239
.font_height    dd 8 ;+108
209
.cursor_out		dd 0 ;+112
240
.cursor_out             dd 0 ;+112
210
.get_mouse_flag	dd 0 ;+116
241
.get_mouse_flag dd 0 ;+116
211
;-------------------------
242
;-------------------------
212
menu_text_area:
243
menu_text_area:
213
db 'File',0
244
db 'File',0
214
.1:
245
.1:
215
db 'Test1',0
246
db 'Test1',0
Line 218... Line 249...
218
.end:
249
.end:
219
db 0
250
db 0
220
;---------------------------------------------------------------------
251
;---------------------------------------------------------------------
221
align 4
252
align 4
222
menu_data_2:
253
menu_data_2:
223
.type:			dd 0   ;+0
254
.type:                  dd 0   ;+0
224
.x:
255
.x:
225
.size_x			dw 40  ;+4
256
.size_x                 dw 40  ;+4
226
.start_x		dw 60   ;+6
257
.start_x                dw 60   ;+6
227
.y:
258
.y:
228
.size_y			dw 15   ;+8
259
.size_y                 dw 15   ;+8
229
.start_y		dw 25  ;+10
260
.start_y                dw 25  ;+10
230
.text_pointer:	dd menu_text_area_2  ;0 ;+12
261
.text_pointer:  dd menu_text_area_2  ;0 ;+12
231
.pos_pointer:	dd menu_text_area_2.1 ;0 ;+16
262
.pos_pointer:   dd menu_text_area_2.1 ;0 ;+16
232
.text_end		dd menu_text_area_2.end ;0 ;+20
263
.text_end               dd menu_text_area_2.end ;0 ;+20
233
.mouse_pos		dd 0  ;+24
264
.mouse_pos              dd 0  ;+24
234
.mouse_keys		dd 0  ;+28
265
.mouse_keys             dd 0  ;+28
235
.x1:
266
.x1:
236
.size_x1		dw 50  ;+32
267
.size_