23,7 → 23,7 |
mov al,1 |
call Clear |
call draw_but_toolbar |
stdcall draw_main_win, tedit0 |
call draw_main_win |
pop eax |
ret |
|
83,12 → 83,13 |
call [mb_create] ;message: Can-t open text file! |
jmp .ret_f |
@@: |
mov [err_opn],1 |
cmp ebx,-1 |
je .ret_f |
;if open file |
call OpenFile |
call draw_but_toolbar |
stdcall draw_main_win, tedit0 |
call draw_main_win |
cmp ebx,maxChars-2 |
jl .ret_f |
push thread |
193,7 → 194,7 |
call GetTexCoords |
mov [sel.x0],ebx |
mov [sel.y0],eax |
stdcall draw_main_win, tedit0 |
call draw_main_win |
jmp .end_find |
@@: |
push thread |
240,11 → 241,12 |
but_OpenSyntax: |
cmp byte[panel_id],TE_PANEL_SYNTAX |
jne @f |
stdcall dword[tl_node_get_data], dword tree1 |
push dword tree1 |
call dword [tl_node_get_data] |
pop dword[fn_col_option] |
call InitColText |
call CmColored |
stdcall draw_main_win, tedit0 |
call draw_main_win |
@@: |
ret |
|
270,7 → 272,7 |
@@: |
pop edx ecx ebx eax |
call draw_but_toolbar |
stdcall draw_main_win, tedit0 |
call draw_main_win |
jmp still |
|
but_cut: |
283,7 → 285,7 |
cmp al,1 |
jne @f |
call draw_but_toolbar |
stdcall draw_main_win, tedit0 |
call draw_main_win |
@@: |
jmp still |
|
291,7 → 293,7 |
; al = 1 if copy text |
but_Copy: |
push ax |
stdcall IsSel, tedit0 |
call IsSel |
cmp al,0 |
jne @f |
pop ax |
334,7 → 336,7 |
cmp ecx,0 |
je @f |
call draw_but_toolbar |
stdcall draw_bufer, tedit0 |
call draw_bufer |
@@: |
pop esi edx ecx ebx ax |
ret |
352,29 → 354,24 |
mov edi,buf |
call TextAdd |
call draw_but_toolbar |
stdcall draw_main_win, tedit0 |
call draw_main_win |
@@: |
pop edi esi bx eax |
jmp still |
|
proc but_find, edit:dword ;¢ë§®¢/áªàë⨥ ¯ ¥«¨ ¯®¨áª |
push edi |
mov edi,[edit] |
|
but_find: |
cmp byte[panel_id],TE_PANEL_NULL |
je @f |
mov byte[panel_id],TE_PANEL_NULL |
mov ted_wnd_l,0 |
mov word[wndMain.left],0 |
jmp .e_if |
@@: |
mov byte[panel_id],TE_PANEL_FIND |
mov ted_wnd_l,TE_PANEL_WIDTH |
mov word[wndMain.left],TE_PANEL_WIDTH |
.e_if: |
stdcall EvSize,edi |
stdcall draw_main_win,edi |
pop edi |
ret |
endp |
call EvSize |
call draw_main_win |
jmp still |
|
but_replace: |
jmp still |
388,7 → 385,7 |
call ConvertSelText |
cmp edi,0 |
je @f |
stdcall draw_main_win, tedit0 |
call draw_main_win |
@@: |
pop edi |
jmp still |
399,7 → 396,7 |
call ConvertSelText |
cmp edi,0 |
je @f |
stdcall draw_main_win, tedit0 |
call draw_main_win |
@@: |
pop edi |
jmp still |
406,7 → 403,7 |
|
but_reverse: |
push eax ebx |
stdcall IsSel, tedit0 |
call IsSel |
cmp al,0 |
je @f |
call SelNormalize |
430,7 → 427,7 |
call Revers |
@@: |
pop ebx eax |
stdcall draw_main_win, tedit0 |
call draw_main_win |
jmp still |
|
but_undo: |
504,27 → 501,22 |
mov [hScr.position],0 |
|
call draw_but_toolbar |
stdcall draw_main_win, tedit0 |
call draw_main_win |
ret |
|
proc but_synt_show, edit:dword |
push edi |
mov edi,[edit] |
|
but_synt_show: |
cmp byte[panel_id],TE_PANEL_NULL |
je @f |
mov byte[panel_id],TE_PANEL_NULL |
mov ted_wnd_l,0 |
mov word[wndMain.left],0 |
jmp .e_if |
@@: |
mov byte[panel_id],TE_PANEL_SYNTAX |
mov ted_wnd_l,TE_PANEL_WIDTH |
mov word[wndMain.left],TE_PANEL_WIDTH |
.e_if: |
stdcall EvSize,edi |
stdcall draw_main_win,edi |
pop edi |
ret |
endp |
call EvSize |
call draw_main_win |
jmp still |
|
sel_KeyUp: |
cmp [dragk],1 |
540,7 → 532,7 |
@@: |
pop dx |
call SelMove |
stdcall draw_main_win, tedit0 |
call draw_main_win |
ret |
|
sel_KeyDown: |
557,7 → 549,7 |
@@: |
pop dx |
call SelMove |
stdcall draw_main_win, tedit0 |
call draw_main_win |
ret |
|
sel_KeyLeft: |
576,10 → 568,10 |
cmp dl,8 |
jne @f |
call OnInitialUpdate |
stdcall draw_main_win, tedit0 |
call draw_main_win |
jmp .end_f |
@@: |
stdcall draw_cur_line, tedit0 |
call draw_cur_line |
.end_f: |
pop dx |
ret |
600,10 → 592,10 |
cmp dl,8 |
jne @f |
call OnInitialUpdate |
stdcall draw_main_win, tedit0 |
call draw_main_win |
jmp .end_f |
@@: |
stdcall draw_cur_line, tedit0 |
call draw_cur_line |
.end_f: |
pop dx |
ret |