Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 829 → Rev 830

/programs/develop/examples/editbox/trunk/editbox.mac
818,7 → 818,7
jmp .draw_cursor_text
}
 
macro use_mouse_func scr_w
macro use_mouse_func
{
;----------------------------------------------------------
;--- Ž¡à ¡®âª  .mouse_wigwag
829,12 → 829,10
;;;;;;;;;;;;;;;;;;
;;¯à®æ¥¤ãà  ®¡à ¡®âª¨ ¯®«®¦¥­¨ï ¢ë¤¥«¥­­®£® ⥪áâ , ª®£¤  ¯à®¨á室¨â ¢ë室 §  ¯à¥¤¥«ë editbox
;;;;;;;;;;;;;;;;;;
mov ebx,dword [procinfo+34]
add ebx,ed_left
if scr_w eq
else
add ebx,dword scr_w
end if
test ax,0x8000
jnz .mleft
 
mov ebx,ed_left
cmp eax,ebx
jb .mleft
 
893,6 → 891,7
; popa
; ret
.mleft:
 
mov eax,ed_pos
cmp eax,0
jbe .mwigvag
919,7 → 918,7
jmp .mdraw
}
 
macro use_work_mause scr_h,scr_w
macro use_work_mouse
;----------------------------------------------------------
;--- € ­¥ 㤥ন¢ ¥¬ «¨ ¬ë ª« ¢¨èã ¬ë誨, ¯¥à¥¬¥é ï ªãàá®à, ¢® ¢á¥ à §­ë¥ áâ®à®­ë?
;----------------------------------------------------------
929,12 → 928,8
;----------------------------------------------------------
;--- ¯à®¢¥à塞, ¯®¯ ¤ ¥â «¨ ªãàá®à ¢ edit box -------------
;----------------------------------------------------------
mov ebx,dword [procinfo + 38]
add ebx,ed_top
if scr_h eq
else
add ebx,scr_h
end if
 
mov ebx,ed_top
cmp ax,bx
jl ._blur;.mouse_end_no_focus
 
944,18 → 939,15
 
shr eax,16
 
mov ebx,dword [procinfo + 34]
add ebx,ed_left
if scr_w eq
else
add ebx,scr_w
end if
mov ebx,ed_left
cmp ax,bx
jl ._blur;.mouse_end_no_focus
 
add ebx,ed_width
 
cmp ax,bx
jg ._blur;.mouse_end_no_focus
 
;--- ¨§¬¥­ï¥¬ ¯®§¨æ¨î ªãàá®à  ---
push eax
mov ebp,ed_color
962,15 → 954,10
call .clear_cursor
pop eax
._mvpos:
mov ebx,dword [procinfo+ 34]
xor edx,edx
sub eax,ed_left
sub eax,ebx
if scr_w eq
else
add ebx,scr_w
sub eax,2
end if
 
mov ebx,6
div bx
add eax,ed_offset
1029,7 → 1016,7
; Œ ªà®á ¢ë室 
macro edit_ex
{
popa
popad
ret
}
macro debug