1,6 → 1,6 |
; ¬ ªà®á ¤«ï á¨á⥬®© ¡¨¡«¨®â¥ª¨ box_lib.obj |
; í«¥¬¥â TreeList ¤«ï Kolibri OS |
; ä ©« ¯®á«¥¤¨© à § ¨§¬¥ï«áï 10.11.2015 IgorA |
; ä ©« ¯®á«¥¤¨© à § ¨§¬¥ï«áï 14.11.2015 IgorA |
; ª®¤ ¯à¨¬¥¥ GPL2 «¨æ¥§¨ï |
|
|
208,6 → 208,48 |
jl .test_scroll |
|
push eax ebx |
mcall 37,7 ;®¡à ¡®âª ª®«¥á ¬ëè¨ |
mov edx,eax |
xor ecx,ecx |
test eax,eax |
jz .mouse_next |
test ax,0x8000 |
jnz .decr |
shr eax,16 |
test ax,0x8000 |
jnz .decr_1 |
|
mov cx,dx ;dx = mouse scroll data vertical |
test ecx,ecx |
jnz @f |
shr edx,16 |
mov cx,dx ;dx = mouse scroll data horizontal |
test ecx,ecx |
jz .mouse_next |
@@: |
stdcall tl_cur_next, edi |
dec ecx |
jnz @r |
jmp .mouse_next |
;---------------------------------------- |
.decr: ;¢¥à⨪ «ì ï ¯à®ªàã⪠®âà¨æ ⥫ì ï |
mov bx,ax ;ax = mouse scroll data vertical |
jmp @f |
.decr_1: ;£®à¨§®â «ì ï ¯à®ªàã⪠®âà¨æ ⥫ì ï |
mov bx,ax ;ax = mouse scroll data horizontal |
@@: |
mov ecx,0xffff |
sub ecx,ebx |
inc ecx |
@@: |
stdcall tl_cur_perv, edi |
dec ecx |
jnz @r |
;--------------------------------------------------- |
.mouse_next: |
pop ebx eax |
|
push eax ebx |
mcall 37,2 |
|
bt eax,0 ;left mouse button press |
1412,17 → 1454,17 |
;output: |
; eax - pointer to node info |
align 4 |
proc tl_node_poi_get_info uses ebx ecx edi, tlist:dword, node_ind:dword |
proc tl_node_poi_get_info uses ebx ecx edx edi, tlist:dword, node_ind:dword |
mov edi,dword[tlist] |
mov ebx,dword[node_ind] |
|
;cycle to nodes |
mov eax,tl_data_nodes |
mov ecx,eax |
mov edx,tl_data_nodes |
mov ecx,edx |
add ecx,sizeof.TreeList |
@@: |
call tl_iterat_next_all |
cmp eax,ecx |
cmp edx,ecx |
jle @f |
dec ebx |
cmp ebx,0 |
1429,8 → 1471,9 |
jg @b |
jmp .find |
@@: |
xor eax,eax |
xor edx,edx |
.find: |
mov eax,edx |
ret |
endp |
|
1832,7 → 1875,8 |
|
;¯¥à¥¬¥é ¥¬ 㧥« ¢¢¥àå |
align 4 |
proc tl_node_move_up uses eax ebx ecx edx edi esi, tlist:dword |
proc tl_node_move_up tlist:dword |
pushad |
mov edi,dword[tlist] |
call tl_get_cur_node_index ;eax=po_t |
cmp eax,2 |
1861,12 → 1905,14 |
push dword edi |
call tl_draw |
@@: |
popad |
ret |
endp |
|
;¯¥à¥¬¥é ¥¬ 㧥« ¢¨§ |
align 4 |
proc tl_node_move_down uses eax ebx ecx edx edi esi, tlist:dword |
proc tl_node_move_down tlist:dword |
pushad |
mov edi,dword[tlist] |
call tl_get_cur_node_index ;eax=po_t |
cmp eax,2 |
1896,6 → 1942,7 |
stdcall tl_draw, edi |
@@: |
ret |
popad |
endp |
|
align 4 |