2013-02-15 01:09:13 +04:00
|
|
|
|
;
|
|
|
|
|
; <EFBFBD> <EFBFBD>⮬ 䠩<EFBFBD><EFBFBD> ᮡ࠭<EFBFBD> <EFBFBD>㭪樨 <EFBFBD>㦭<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> ᮧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>
|
|
|
|
|
; ࠡ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD>祢<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
prop_wnd_width equ 350 ;<EFBFBD><EFBFBD>ਭ<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
SIZE_ONE_FLOAT equ 14
|
|
|
|
|
|
|
|
|
|
IMAGE_TOOLBAR_ICON_SIZE equ 20*20*3
|
|
|
|
|
|
|
|
|
|
wnd_k_words_run db 0 ;<EFBFBD><EFBFBD>६<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> ⥬ <EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>᪠<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1-<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>६<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
|
|
|
|
if lang eq ru
|
|
|
|
|
txt_caption db '<27><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD>祢<EFBFBD><E7A5A2> <><E1ABAE><EFBFBD>',0
|
|
|
|
|
else
|
|
|
|
|
txt_caption db 'Search in keywords',0
|
|
|
|
|
end if
|
|
|
|
|
|
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>) <EFBFBD><EFBFBD><EFBFBD>뢠<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>㭪樥<EFBFBD> but_wnd_coords
|
|
|
|
|
align 4
|
|
|
|
|
prop_start:
|
|
|
|
|
pushad
|
2016-01-22 01:22:11 +03:00
|
|
|
|
mcall SF_SET_EVENTS_MASK,0xC0000027 ;<EFBFBD><EFBFBD>᪠ <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᮡ<EFBFBD>⨩
|
2013-02-15 01:09:13 +04:00
|
|
|
|
inc byte[wnd_k_words_run]
|
|
|
|
|
|
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ன<EFBFBD><EFBFBD> ᯨ᪠ <EFBFBD><EFBFBD>ꥪ⮢
|
|
|
|
|
mov dword[tree3.info_max_count],2
|
|
|
|
|
mov edi,tedit0
|
|
|
|
|
mov edx,ted_key_words_count
|
|
|
|
|
add dword[tree3.info_max_count],edx ;<EFBFBD>⠢<EFBFBD><EFBFBD> <EFBFBD><EFBFBD> 㧫<EFBFBD><EFBFBD>, ࠢ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>祢<EFBFBD><EFBFBD> <EFBFBD> <EFBFBD> 䠩<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>ᢥ⪨ (+2 <EFBFBD><EFBFBD> <EFBFBD><EFBFBD>砫<EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᯨ᪠)
|
|
|
|
|
stdcall dword[tl_data_init], tree3
|
|
|
|
|
mov eax,dword[icon_tl_sys]
|
|
|
|
|
mov dword[tree3.data_img],eax
|
|
|
|
|
mov eax,dword[tree1.data_img_sys]
|
|
|
|
|
mov dword[tree3.data_img_sys],eax
|
|
|
|
|
|
|
|
|
|
edit_boxes_set_sys_color edit3,editboxes_end,sc ;<EFBFBD><EFBFBD>⠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>⥬<EFBFBD><EFBFBD><EFBFBD> 梥⮢
|
|
|
|
|
;stdcall [edit_box_set_text], edit3, txt_q
|
|
|
|
|
popad
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
prop_red_win:
|
|
|
|
|
pushad
|
2016-01-22 01:22:11 +03:00
|
|
|
|
mcall SF_REDRAW,SSF_BEGIN_DRAW
|
2013-02-15 01:09:13 +04:00
|
|
|
|
|
|
|
|
|
mov bx,word[procinfo.box.left]
|
|
|
|
|
add bx,5 ;word[buf_0.l]
|
|
|
|
|
shl ebx,16
|
|
|
|
|
mov bx,prop_wnd_width
|
|
|
|
|
mov cx,word[procinfo.box.top]
|
2015-09-16 14:22:17 +03:00
|
|
|
|
add cx,42 ;word[buf_0.t]
|
2013-02-15 01:09:13 +04:00
|
|
|
|
shl ecx,16
|
|
|
|
|
mov cx,250
|
2016-01-22 01:22:11 +03:00
|
|
|
|
mcall SF_CREATE_WINDOW,,,0x33ffffd0,,txt_caption
|
2013-02-15 01:09:13 +04:00
|
|
|
|
|
2016-01-22 01:22:11 +03:00
|
|
|
|
mcall SF_DEFINE_BUTTON,(5 shl 16)+19,(5 shl 16)+19,3,[sc.work_button]
|
2013-02-15 01:09:13 +04:00
|
|
|
|
add ebx,(25 shl 16)
|
2016-01-22 01:22:11 +03:00
|
|
|
|
mcall ,,,4
|
2013-02-15 01:09:13 +04:00
|
|
|
|
|
|
|
|
|
mov ebx,[bmp_icon]
|
|
|
|
|
add ebx,7*IMAGE_TOOLBAR_ICON_SIZE
|
2016-01-22 01:22:11 +03:00
|
|
|
|
mcall SF_PUT_IMAGE,,(20 shl 16)+20,(5 shl 16)+5 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2013-02-15 01:09:13 +04:00
|
|
|
|
|
|
|
|
|
sub ebx,2*IMAGE_TOOLBAR_ICON_SIZE
|
|
|
|
|
mov edx,(30 shl 16)+5 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
int 0x40
|
|
|
|
|
|
|
|
|
|
mov dword[w_scr_t3.all_redraw],1
|
2016-01-22 01:22:11 +03:00
|
|
|
|
stdcall [scrollbar_ver_draw], w_scr_t3
|
2013-02-15 01:09:13 +04:00
|
|
|
|
stdcall [tl_draw], tree3
|
|
|
|
|
stdcall [edit_box_draw], edit3
|
2016-01-22 01:22:11 +03:00
|
|
|
|
mcall SF_REDRAW,SSF_END_DRAW
|
2013-02-15 01:09:13 +04:00
|
|
|
|
popad
|
|
|
|
|
|
|
|
|
|
;<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>뢠<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>㭪<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD>।<EFBFBD><EFBFBD><EFBFBD>饩
|
|
|
|
|
align 4
|
|
|
|
|
prop_still:
|
2016-01-22 01:22:11 +03:00
|
|
|
|
mcall SF_WAIT_EVENT
|
2013-02-15 01:09:13 +04:00
|
|
|
|
|
|
|
|
|
cmp al,1 ;<EFBFBD><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
jz prop_red_win
|
|
|
|
|
cmp al,2
|
|
|
|
|
jne @f
|
|
|
|
|
call prop_key
|
|
|
|
|
@@:
|
|
|
|
|
cmp al,3
|
|
|
|
|
jne @f
|
|
|
|
|
call prop_button
|
|
|
|
|
@@:
|
|
|
|
|
cmp al,6
|
|
|
|
|
jne @f
|
|
|
|
|
call prop_mouse
|
|
|
|
|
@@:
|
|
|
|
|
jmp prop_still
|
|
|
|
|
.exit:
|
|
|
|
|
mov dword[tree3.data_img],0 ;<EFBFBD><EFBFBD><EFBFBD>⨬ 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD> 㤠<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov dword[tree3.data_img_sys],0 ;<EFBFBD>. <EFBFBD>. <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>ᯮ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>㣨<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
stdcall dword[tl_data_clear], tree3
|
|
|
|
|
mov byte[wnd_k_words_run],0 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>塞 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>稪 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2016-01-22 01:22:11 +03:00
|
|
|
|
mcall SF_TERMINATE_PROCESS
|
2013-02-15 01:09:13 +04:00
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
prop_key:
|
|
|
|
|
push eax
|
2016-01-22 01:22:11 +03:00
|
|
|
|
mcall SF_GET_KEY
|
2013-02-15 01:09:13 +04:00
|
|
|
|
stdcall [edit_box_key], edit3
|
|
|
|
|
stdcall [tl_key], tree3
|
|
|
|
|
pop eax
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
prop_mouse:
|
|
|
|
|
;push ecx edi
|
|
|
|
|
stdcall [tl_mouse], tree3
|
|
|
|
|
stdcall [edit_box_mouse], edit3
|
|
|
|
|
;pop edi ecx
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
prop_button:
|
|
|
|
|
pushad
|
2016-01-22 01:22:11 +03:00
|
|
|
|
mcall SF_GET_BUTTON
|
2013-02-15 01:09:13 +04:00
|
|
|
|
|
|
|
|
|
cmp ah,1
|
|
|
|
|
je prop_still.exit
|
|
|
|
|
|
|
|
|
|
cmp ah,3
|
|
|
|
|
jne @f
|
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>
|
|
|
|
|
mov edi,tedit0
|
|
|
|
|
cmp ted_syntax_file,0
|
|
|
|
|
je @f
|
|
|
|
|
stdcall dword[tl_info_clear], tree3
|
|
|
|
|
|
|
|
|
|
mov ebx,ted_key_words_data
|
|
|
|
|
mov ecx,ted_key_words_count
|
|
|
|
|
cld
|
|
|
|
|
.cycle_0:
|
|
|
|
|
stdcall str_instr, ebx,[edit3.text]
|
|
|
|
|
test al,al
|
|
|
|
|
jnz .end_add
|
2016-01-22 01:22:11 +03:00
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD>祢<EFBFBD><EFBFBD> <EFBFBD><EFBFBD>
|
|
|
|
|
stdcall dword[tl_node_add], tree3, (1 shl 16), ebx
|
2013-02-15 01:09:13 +04:00
|
|
|
|
stdcall dword[tl_cur_next], tree3
|
2016-01-22 01:22:11 +03:00
|
|
|
|
mov edx,[ebx+MAX_COLOR_WORD_LEN]
|
|
|
|
|
or edx,edx
|
|
|
|
|
jz .end_add
|
|
|
|
|
;<EFBFBD><EFBFBD>ࠢ<EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>祢<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>
|
|
|
|
|
add edx,ted_help_text_f1
|
|
|
|
|
stdcall dword[tl_node_add], tree3, 1, edx
|
|
|
|
|
stdcall dword[tl_cur_next], tree3
|
2013-02-15 01:09:13 +04:00
|
|
|
|
.end_add:
|
|
|
|
|
add ebx,MAX_COLOR_WORD_LEN+8 ;sizeof.TexColViv
|
|
|
|
|
loop .cycle_0
|
|
|
|
|
|
|
|
|
|
stdcall dword[tl_cur_beg], tree3
|
|
|
|
|
stdcall dword[tl_draw], tree3
|
2016-01-22 01:22:11 +03:00
|
|
|
|
jmp .no_select_0
|
2013-02-15 01:09:13 +04:00
|
|
|
|
@@:
|
|
|
|
|
cmp ah,4
|
|
|
|
|
jne @f
|
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
stdcall [tl_node_get_data],tree3
|
2015-11-11 02:11:17 +03:00
|
|
|
|
or eax,eax
|
2015-09-16 14:22:17 +03:00
|
|
|
|
jz .no_select_0
|
2015-11-11 02:11:17 +03:00
|
|
|
|
mov esi,eax
|
2013-02-15 01:09:13 +04:00
|
|
|
|
mov edi,[tedit0.buffer]
|
2015-09-16 14:22:17 +03:00
|
|
|
|
mov dword[edi],MAX_COLOR_WORD_LEN
|
|
|
|
|
mov dword[edi+4],0 ;text data
|
|
|
|
|
mov dword[edi+8],1 ;code 866
|
|
|
|
|
add edi,12 ;system buffer header size
|
2013-02-15 01:09:13 +04:00
|
|
|
|
mov byte[edi+MAX_COLOR_WORD_LEN],0
|
|
|
|
|
mov ecx,MAX_COLOR_WORD_LEN
|
|
|
|
|
cld
|
|
|
|
|
rep movsb
|
2016-01-22 01:22:11 +03:00
|
|
|
|
mcall SF_CLIPBOARD,SSF_WRITE_CB,12+MAX_COLOR_WORD_LEN,[tedit0.buffer]
|
2013-02-15 01:09:13 +04:00
|
|
|
|
.no_select_0:
|
|
|
|
|
@@:
|
|
|
|
|
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;<EFBFBD><EFBFBD>ॢ<EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>ꥪ⠬<EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD>짮<EFBFBD><EFBFBD>⥫<EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD>
|
|
|
|
|
align 4
|
2016-01-22 01:22:11 +03:00
|
|
|
|
tree3 tree_list MAX_COLOR_WORD_LEN,3,tl_key_no_edit,\
|
|
|
|
|
16,16, 0x8080ff,0x0000ff,0xffffff, 5,30,300,160, 16, 0,0, el_focus, w_scr_t3,0
|
2013-02-15 01:09:13 +04:00
|
|
|
|
|
|
|
|
|
align 4
|
2016-02-19 16:41:27 +03:00
|
|
|
|
edit3 edit_box 80, 70, 8, 0xffffff, 0xff, 0x80ff, 0, 0x8000, MAX_COLOR_WORD_LEN+2, string1, mouse_dd, ed_focus
|
2013-02-15 01:09:13 +04:00
|
|
|
|
editboxes_end:
|
|
|
|
|
|
|
|
|
|
string1 rb MAX_COLOR_WORD_LEN
|
|
|
|
|
|
|
|
|
|
align 4
|
2015-11-11 02:11:17 +03:00
|
|
|
|
w_scr_t3 scrollbar 16,0, 3,0, 15, 100, 0,0, 0xeeeeee, 0xbbddff, 0, 1
|