Rev 2708 | Rev 2855 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2708 | Rev 2817 | ||
---|---|---|---|
Line 14... | Line 14... | ||
14 | dd file_name ; command line |
14 | dd file_name ; command line |
15 | dd sys_path |
15 | dd sys_path |
Line 16... | Line 16... | ||
16 | 16 | ||
17 | MAX_COLOR_WORD_LEN equ 40 |
17 | MAX_COLOR_WORD_LEN equ 40 |
18 | maxChars equ 100002 ;(...+2) |
18 | maxChars equ 100002 ;(...+2) |
19 | BUF_SIZE equ 1000 ;buffer for copy|paste |
19 | BUF_SIZE equ 4096 ;buffer for copy|paste |
Line 20... | Line 20... | ||
20 | maxSyntaxFileSize equ 410000 |
20 | maxSyntaxFileSize equ 410000 |
21 | 21 | ||
22 | include '../../proc32.inc' |
22 | include '../../proc32.inc' |
Line 165... | Line 165... | ||
165 | add eax,304 |
165 | add eax,304 |
166 | loop @b |
166 | loop @b |
167 | stdcall dword[tl_cur_beg],tree1 ;áâ ¢¨¬ ªãàá®à ç «® ᯨ᪠|
167 | stdcall dword[tl_cur_beg],tree1 ;áâ ¢¨¬ ªãàá®à ç «® ᯨ᪠|
168 | .end_dir_init: |
168 | .end_dir_init: |
Line -... | Line 169... | ||
- | 169 | ||
- | 170 | ;--- load ini file --- |
|
- | 171 | copy_path ini_name,sys_path,file_name,0x0 |
|
- | 172 | ;window startup pozition |
|
- | 173 | stdcall dword[ini_get_int],file_name,ini_sec_window,key_window_l,ini_def_window_l |
|
- | 174 | mov word[wnd_s_pos+2],ax |
|
- | 175 | stdcall dword[ini_get_int],file_name,ini_sec_window,key_window_w,ini_def_window_w |
|
- | 176 | mov word[wnd_s_pos],ax |
|
- | 177 | stdcall dword[ini_get_int],file_name,ini_sec_window,key_window_t,ini_def_window_t |
|
- | 178 | mov word[wnd_s_pos+6],ax |
|
- | 179 | stdcall dword[ini_get_int],file_name,ini_sec_window,key_window_h,ini_def_window_h |
|
- | 180 | mov word[wnd_s_pos+4],ax |
|
- | 181 | ;scrool type |
|
- | 182 | stdcall dword[ini_get_int],file_name,ini_sec_window,key_scroll_type,ini_def_scroll_type |
|
- | 183 | mov [wScr.type],eax |
|
- | 184 | mov [hScr.type],eax |
|
- | 185 | mov [ws_dir_lbox.type],eax |
|
- | 186 | ;symbol size |
|
- | 187 | stdcall dword[ini_get_int],file_name,ini_sec_window,key_symbol_w,ini_def_symbol_w |
|
- | 188 | mov dword[tedit0.rec.width],eax |
|
- | 189 | stdcall dword[ini_get_int],file_name,ini_sec_window,key_symbol_h,ini_def_symbol_h |
|
- | 190 | mov dword[tedit0.rec.height],eax |
|
- | 191 | lea eax,[eax+eax*2] |
|
- | 192 | mov dword[tedit0.rec.top],eax |
|
169 | 193 | ||
170 | ;--- load color option file --- |
194 | ;--- load color option file --- |
171 | mov ebx,dword[fn_col_option] |
195 | mov ebx,dword[fn_col_option] |
172 | copy_path ebx,fn_syntax_dir,file_name_rez,0x0 |
196 | copy_path ebx,fn_syntax_dir,file_name_rez,0x0 |
173 | copy_path file_name_rez,sys_path,file_name,0x0 |
197 | copy_path file_name_rez,sys_path,file_name,0x0 |
Line 180... | Line 204... | ||
180 | call strlen ;eax=strlen |
204 | call strlen ;eax=strlen |
181 | mov [edit1.size],eax |
205 | mov [edit1.size],eax |
182 | call but_no_msg_OpenFile |
206 | call but_no_msg_OpenFile |
183 | @@: |
207 | @@: |
Line -... | Line 208... | ||
- | 208 | ||
- | 209 | ||
184 | 210 | ||
185 | align 4 |
211 | align 4 |
186 | red_win: |
212 | red_win: |
Line 187... | Line 213... | ||
187 | call draw_window |
213 | call draw_window |
Line 210... | Line 236... | ||
210 | mcall 12,1 |
236 | mcall 12,1 |
Line 211... | Line 237... | ||
211 | 237 | ||
212 | mov edx,[sc.work] |
238 | mov edx,[sc.work] |
213 | or edx,0x73000000 |
239 | or edx,0x73000000 |
214 | mov edi,hed |
240 | mov edi,hed |
Line 215... | Line 241... | ||
215 | mcall 0,(10 shl 16)+485,(10 shl 16)+320 |
241 | mcall 0,dword[wnd_s_pos],dword[wnd_s_pos+4] |
216 | 242 | ||
217 | mcall 9,procinfo,-1 |
243 | mcall 9,procinfo,-1 |
Line 494... | Line 520... | ||
494 | err_message_import1 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'msgbox.obj',39,0 |
520 | err_message_import1 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'msgbox.obj',39,0 |
495 | err_message_found_lib2 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'proc_lib.obj',39,0 |
521 | err_message_found_lib2 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'proc_lib.obj',39,0 |
496 | err_message_import2 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'proc_lib.obj',39,0 |
522 | err_message_import2 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'proc_lib.obj',39,0 |
497 | err_message_found_lib_3 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'libimg.obj',39,0 |
523 | err_message_found_lib_3 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'libimg.obj',39,0 |
498 | err_message_import_3 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'libimg.obj',39,0 |
524 | err_message_import_3 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'libimg.obj',39,0 |
- | 525 | err_message_found_lib_4 db '¥ ©¤¥ ¡¨¡«¨®â¥ª ',39,'libini.obj',39,0 |
|
- | 526 | err_message_import_4 db '訡ª ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'libini.obj',39,0 |
|
499 | else |
527 | else |
500 | head_f_i: |
528 | head_f_i: |
501 | head_f_l db 'System error',0 |
529 | head_f_l db 'System error',0 |
502 | err_message_found_lib0 db 'Sorry I cannot found library ',39,'box_lib.obj',39,0 |
530 | err_message_found_lib0 db 'Sorry I cannot found library ',39,'box_lib.obj',39,0 |
503 | err_message_import0 db 'Error on load import library ',39,'box_lib.obj',39,0 |
531 | err_message_import0 db 'Error on load import library ',39,'box_lib.obj',39,0 |
Line 505... | Line 533... | ||
505 | err_message_import1 db 'Error on load import library ',39,'msgbox.obj',39,0 |
533 | err_message_import1 db 'Error on load import library ',39,'msgbox.obj',39,0 |
506 | err_message_found_lib2 db 'Sorry I cannot found library ',39,'proc_lib.obj',39,0 |
534 | err_message_found_lib2 db 'Sorry I cannot found library ',39,'proc_lib.obj',39,0 |
507 | err_message_import2 db 'Error on load import library ',39,'proc_lib.obj',39,0 |
535 | err_message_import2 db 'Error on load import library ',39,'proc_lib.obj',39,0 |
508 | err_message_found_lib_3 db 'Sorry I cannot found library ',39,'libimg.obj',39,0 |
536 | err_message_found_lib_3 db 'Sorry I cannot found library ',39,'libimg.obj',39,0 |
509 | err_message_import_3 db 'Error on load import library ',39,'libimg.obj',39,0 |
537 | err_message_import_3 db 'Error on load import library ',39,'libimg.obj',39,0 |
- | 538 | err_message_found_lib_4 db 'Sorry I cannot found library ',39,'libini.obj',39,0 |
|
- | 539 | err_message_import_4 db 'Error on load import library ',39,'libini.obj',39,0 |
|
510 | end if |
540 | end if |
Line 511... | Line 541... | ||
511 | 541 | ||
512 | ;library structures |
542 | ;library structures |
513 | l_libs_start: |
543 | l_libs_start: |
Line 517... | Line 547... | ||
517 | err_message_found_lib1, head_f_l, import_msgbox_lib, err_message_import1, head_f_i |
547 | err_message_found_lib1, head_f_l, import_msgbox_lib, err_message_import1, head_f_i |
518 | lib2 l_libs lib_name_2, sys_path, file_name, system_dir_2,\ |
548 | lib2 l_libs lib_name_2, sys_path, file_name, system_dir_2,\ |
519 | err_message_found_lib2, head_f_l, import_proclib, err_message_import2, head_f_i |
549 | err_message_found_lib2, head_f_l, import_proclib, err_message_import2, head_f_i |
520 | lib3 l_libs lib_name_3, sys_path, file_name, system_dir_3,\ |
550 | lib3 l_libs lib_name_3, sys_path, file_name, system_dir_3,\ |
521 | err_message_found_lib_3, head_f_l, import_libimg, err_message_import_3, head_f_i |
551 | err_message_found_lib_3, head_f_l, import_libimg, err_message_import_3, head_f_i |
- | 552 | lib4 l_libs lib_name_4, sys_path, file_name, system_dir_4,\ |
|
- | 553 | err_message_found_lib_4, head_f_l, import_libini, err_message_import_4, head_f_i |
|
522 | load_lib_end: |
554 | load_lib_end: |
Line 523... | Line 555... | ||
523 | 555 | ||
524 | IncludeIGlobals |
556 | IncludeIGlobals |
525 | i_end: |
557 | i_end: |