2007-04-20 08:19:47 +04:00
|
|
|
|
; SEE YOU File FAQ.txt and HISTORY. Good Like!
|
2007-04-13 11:03:50 +04:00
|
|
|
|
;;;;;;;;;;;;;;;;;;
|
|
|
|
|
include 'editbox.mac' ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> :) ᯥ樠<E1AFA5>쭮 <20><><EFBFBD> editbox
|
|
|
|
|
;;;;;;;;;;;;;;;;;;
|
2008-07-23 16:35:26 +04:00
|
|
|
|
macro use_edit_box
|
2006-12-13 08:18:25 +03:00
|
|
|
|
{
|
|
|
|
|
edit_box:
|
2007-04-13 11:03:50 +04:00
|
|
|
|
ed_width equ [edi] ;<3B><>ਭ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_left equ [edi+4] ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD> <20>
|
|
|
|
|
ed_top equ [edi+8] ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD> <20>
|
|
|
|
|
ed_color equ [edi+12] ;梥<> 䮭<> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2007-04-20 08:19:47 +04:00
|
|
|
|
shift_color equ [edi+16] ;=0x6a9480
|
2007-04-13 11:03:50 +04:00
|
|
|
|
ed_focus_border_color equ [edi+20] ;梥<> ࠬ<><E0A0AC> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_blur_border_color equ [edi+24] ;梥<> <20><> <20><>⨢<EFBFBD><E2A8A2><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_text_color equ [edi+28] ;梥<> ⥪<><E2A5AA><EFBFBD>
|
|
|
|
|
ed_max equ [edi+32] ;<3B><><EFBFBD>-<2D><> ᨬ<><E1A8AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ᨬ<EFBFBD><E1A8AC>쭮 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_text equ [edi+36] ;㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_flags equ [edi+40] ;䫠<><E4ABA0>
|
2008-07-23 16:35:26 +04:00
|
|
|
|
ed_size equ [edi+44] ;<3B><><EFBFBD>-<2D><> ᨬ<><E1A8AC><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_pos equ [edi+48] ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_offset equ [edi+52] ;ᬥ饭<E1ACA5><E9A5AD>
|
|
|
|
|
cl_curs_x equ [edi+56] ;<3B>।<EFBFBD><E0A5A4><EFBFBD>饥 <20><><EFBFBD>न<EFBFBD><E0A4A8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20>
|
|
|
|
|
cl_curs_y equ [edi+60] ;<3B>।<EFBFBD><E0A5A4><EFBFBD>饥 <20><><EFBFBD>न<EFBFBD><E0A4A8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20>
|
|
|
|
|
ed_shift_pos equ [edi+64] ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_shift_pos_old equ [edi+68] ;<3B><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2006-12-13 08:18:25 +03:00
|
|
|
|
;==========================================================
|
|
|
|
|
;=== <20><><EFBFBD>楤<EFBFBD><E6A5A4><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ᮢ<EFBFBD><E1AEA2> =================================
|
|
|
|
|
;==========================================================
|
|
|
|
|
.draw:
|
2008-07-23 16:35:26 +04:00
|
|
|
|
pushad
|
2006-12-13 08:18:25 +03:00
|
|
|
|
;--- <20><><EFBFBD>㥬 ࠬ<><E0A0AC> ---
|
2007-04-13 11:03:50 +04:00
|
|
|
|
call .draw_border ; <20>㭪<EFBFBD><E3ADAA><EFBFBD> <20>⠡<EFBFBD><E2A0A1>쭠
|
2006-12-13 08:18:25 +03:00
|
|
|
|
.draw_bg_cursor_text:
|
|
|
|
|
;--- <20><><EFBFBD><EFBFBD><EFBFBD>塞 ᬥ饭<E1ACA5><E9A5AD>, <20> <20><><EFBFBD><EFBFBD> ---
|
2007-04-13 11:03:50 +04:00
|
|
|
|
call .check_offset ;<3B><><EFBFBD><EFBFBD><EFBFBD><E1ABA5><EFBFBD> <20><><EFBFBD><EFBFBD>樨 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>⠡<EFBFBD><E2A0A1>쭠
|
2006-12-13 08:18:25 +03:00
|
|
|
|
;--- <20><><EFBFBD>㥬 <20><><EFBFBD><EFBFBD>७<EFBFBD><E0A5AD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ---
|
2007-04-13 11:03:50 +04:00
|
|
|
|
call .draw_bg ;<3B><><EFBFBD><EFBFBD>ᮢ<EFBFBD><E1AEA2><EFBFBD> <20><>אַ㣮<EFACAE>쭨<EFBFBD> ࠡ<>祩 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2007-03-09 09:25:26 +03:00
|
|
|
|
;---- <20><><EFBFBD>㥬 <20>뤥<EFBFBD><EBA4A5><EFBFBD><EFBFBD><EFBFBD>, <20><> shift <20> <20><><EFBFBD><EFBFBD>
|
2007-04-13 11:03:50 +04:00
|
|
|
|
call .draw_shift
|
2006-12-13 08:18:25 +03:00
|
|
|
|
.draw_cursor_text:
|
|
|
|
|
;--- <20><><EFBFBD>㥬 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ---
|
2007-04-13 11:03:50 +04:00
|
|
|
|
;--- <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><>ᮢ<EFBFBD><E1AEA2><EFBFBD> ----
|
|
|
|
|
test word ed_flags,ed_focus
|
|
|
|
|
je @f
|
|
|
|
|
call .draw_cursor
|
2006-12-13 08:18:25 +03:00
|
|
|
|
@@:
|
2007-04-13 11:03:50 +04:00
|
|
|
|
call .draw_text
|
2007-05-18 07:52:13 +04:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;<3B><>騩 <20><>室 <20><> editbox <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20>㭪権 <20> <20><><EFBFBD><EFBFBD> <20><>ࠡ<EFBFBD><E0A0A1>稪<EFBFBD><E7A8AA>
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
.editbox_exit:
|
2007-04-13 11:03:50 +04:00
|
|
|
|
edit_ex
|
2007-01-26 14:20:00 +03:00
|
|
|
|
;==========================================================
|
|
|
|
|
;=== <20><>ࠡ<EFBFBD>⪠ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> =================================
|
|
|
|
|
;==========================================================
|
|
|
|
|
.key:
|
2008-07-23 16:35:26 +04:00
|
|
|
|
pushad
|
2007-04-13 11:03:50 +04:00
|
|
|
|
test word ed_flags,ed_focus ; <20> <20><> <20> 䮪<><E4AEAA><EFBFBD>, <20><>室<EFBFBD><E5AEA4>
|
2007-05-18 07:52:13 +04:00
|
|
|
|
je .editbox_exit
|
2007-09-24 16:45:36 +04:00
|
|
|
|
test word ed_flags,ed_mouse_on
|
|
|
|
|
jne .editbox_exit
|
|
|
|
|
|
2007-05-10 08:03:05 +04:00
|
|
|
|
;<3B><EFBFBD>ઠ <20><><EFBFBD><EFBFBD><EFBFBD> shift ?
|
2007-04-13 11:03:50 +04:00
|
|
|
|
call .check_shift
|
2006-12-13 08:18:25 +03:00
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
;--- <20><EFBFBD><E0AEA2>塞, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> --------------------------------
|
|
|
|
|
;----------------------------------------------------------
|
2007-05-10 08:03:05 +04:00
|
|
|
|
use_key_process backspase,delete,left,right,home,end,insert
|
2006-12-13 08:18:25 +03:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2007-05-10 08:03:05 +04:00
|
|
|
|
;<3B><><EFBFBD><EFBFBD><EFBFBD>誠 <20><> <20><>ࠡ<EFBFBD><E0A0A1><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> <20>.<2E>. <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>㦥<EFBFBD><E3A6A5><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20>ந<EFBFBD>室<EFBFBD><E5AEA4> <20><>室 <20><> <20><>ࠡ<EFBFBD><E0A0A1>稪<EFBFBD>
|
2007-04-13 11:03:50 +04:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2009-02-13 11:46:15 +03:00
|
|
|
|
use_key_no_process up,down,esc,enter,tab,numl,capsl,scrolll
|
2006-12-13 08:18:25 +03:00
|
|
|
|
;--- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>㣠<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ---
|
2007-05-10 08:03:05 +04:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;<3B><EFBFBD>ઠ <20><>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD> <20><> 䫠<> <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20>㦭<EFBFBD> <20>뢮<EFBFBD><EBA2AE><EFBFBD><EFBFBD> ⮫쪮 <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20>㦭<EFBFBD><E3A6AD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> ⠪<><E2A0AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>室<EFBFBD><E5AEA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20>㦭<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E0AEA2><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
use_key_figures_only
|
2007-05-18 07:52:13 +04:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;<3B><EFBFBD>ઠ <20><> shift <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
are_key_shift_press
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
; <20><EFBFBD><E0AEA2>塞, <20><>室<EFBFBD><E5AEA4><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> + <20><><EFBFBD>쭥<EFBFBD><ECADA5><EFBFBD><EFBFBD> <20><>ࠡ<EFBFBD>⪠
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
are_key_cur_end
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;<3B><>ࠡ<EFBFBD>⪠ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> insert,delete.backspase,home,end,left,right
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
use_work_key
|
2006-12-13 08:18:25 +03:00
|
|
|
|
;==========================================================
|
|
|
|
|
;=== <20><>ࠡ<EFBFBD>⪠ <20><><EFBFBD><EFBFBD> =======================================
|
|
|
|
|
;==========================================================
|
|
|
|
|
.mouse:
|
2008-07-23 16:35:26 +04:00
|
|
|
|
pushad
|
2007-04-13 11:03:50 +04:00
|
|
|
|
;debug
|
2006-12-13 08:18:25 +03:00
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
;--- <20><><EFBFBD><EFBFBD>砥<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ﭨ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> -----------------------
|
2007-04-13 11:03:50 +04:00
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
mcall 37,2
|
2006-12-13 08:18:25 +03:00
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
;--- <20><EFBFBD><E0AEA2>塞 <20><><EFBFBD><EFBFBD><EFBFBD>ﭨ<EFBFBD> ----------------------------------
|
|
|
|
|
;----------------------------------------------------------
|
2007-04-13 11:03:50 +04:00
|
|
|
|
test eax,1
|
|
|
|
|
jnz .mouse_left_button
|
|
|
|
|
and word ed_flags,ed_mouse_on_off
|
|
|
|
|
xor ebx,ebx
|
|
|
|
|
mov dword [mouse_flag],ebx
|
2007-05-18 07:52:13 +04:00
|
|
|
|
jmp .editbox_exit
|
2007-04-13 11:03:50 +04:00
|
|
|
|
.mouse_left_button:
|
2007-04-04 10:40:20 +04:00
|
|
|
|
;----------------------------------------------------------
|
2007-04-13 11:03:50 +04:00
|
|
|
|
;--- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E0AEA2> <20><> 䮪<><E4AEAA><EFBFBD><EFBFBD><E0AEA2> <20> <20><>㣨<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2007-04-04 10:40:20 +04:00
|
|
|
|
;----------------------------------------------------------
|
2007-04-13 11:03:50 +04:00
|
|
|
|
mov eax,dword [mouse_flag]
|
|
|
|
|
test eax,eax
|
|
|
|
|
jz @f
|
|
|
|
|
cmp eax,edi
|
|
|
|
|
je @f
|
|
|
|
|
jmp ._blur
|
2006-12-13 08:18:25 +03:00
|
|
|
|
;----------------------------------------------------------
|
2008-07-23 16:35:26 +04:00
|
|
|
|
;--- <20><><EFBFBD><EFBFBD>砥<EFBFBD> <20><><EFBFBD>न<EFBFBD><E0A4A8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>⭮<EFBFBD><E2ADAE>⥫쭮 <20><><EFBFBD><EFBFBD>
|
2006-12-13 08:18:25 +03:00
|
|
|
|
;----------------------------------------------------------
|
2008-07-23 16:35:26 +04:00
|
|
|
|
@@: mcall 37,1
|
|
|
|
|
|
2007-05-18 07:52:13 +04:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;<3B>㭪<EFBFBD><E3ADAA><EFBFBD> <20><>ࠡ<EFBFBD>⪨ <20><>誨 <20><><EFBFBD><EFBFBD>祭<EFBFBD><E7A5AD> <20><><EFBFBD>न<EFBFBD><E0A4A8><EFBFBD> <20> <20><EFBFBD>ઠ <20><> + <20>뤥<EFBFBD><EBA4A5><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2008-07-23 16:35:26 +04:00
|
|
|
|
use_work_mouse
|
2007-05-10 08:03:05 +04:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;<3B><>騥 <20>㭪樨 <20><>ࠡ<EFBFBD>⪨
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
use_general_func
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;<3B>㭪樨 <20><><EFBFBD> ࠡ<><E0A0A1><EFBFBD> <20> key
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
use_key_func
|
2007-05-18 07:52:13 +04:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;<3B>㭪樨 <20><><EFBFBD> ࠡ<><E0A0A1><EFBFBD> <20> mouse
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2008-07-23 16:35:26 +04:00
|
|
|
|
use_mouse_func
|
2006-12-13 08:18:25 +03:00
|
|
|
|
}
|
2007-05-18 07:52:13 +04:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;Bit mask from editbox
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2007-03-07 11:35:01 +03:00
|
|
|
|
ed_figure_only= 1000000000000000b ;<3B><><EFBFBD><EFBFBD> ᨬ<><E1A8AC><EFBFBD><EFBFBD>
|
2007-03-06 16:53:45 +03:00
|
|
|
|
ed_always_focus= 100000000000000b
|
2007-03-07 11:35:01 +03:00
|
|
|
|
ed_focus= 10b ;䮪<><E4AEAA> <20>ਫ<EFBFBD><E0A8AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2007-03-06 16:53:45 +03:00
|
|
|
|
ed_shift_on= 1000b ;<3B> <20><> <20><>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD> -<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> shift,<2C> <20><><EFBFBD> <20><>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> 㦥 <20><><EFBFBD> - <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㤥ন<E3A4A5><E0A6A8><EFBFBD> shift
|
2007-03-30 09:32:17 +04:00
|
|
|
|
ed_shift_on_off=1111111111110111b
|
2007-03-06 16:53:45 +03:00
|
|
|
|
ed_shift= 100b ;<3B><><EFBFBD><EFBFBD>砥<EFBFBD><E7A0A5><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>⨨ <20><> shift <20>.<2E>. <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_shift_off= 1111111111111011b
|
|
|
|
|
ed_shift_bac= 10000b ;<3B><><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>⪨ <20>뤥<EFBFBD><EBA4A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> shift <20>.<2E>. <20><><EFBFBD> <20><>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20>뤥<EFBFBD><EBA4A5><EFBFBD><EFBFBD><EFBFBD>
|
2007-03-09 14:07:59 +03:00
|
|
|
|
ed_shift_bac_cl=1111111111101111b ;<3B><><EFBFBD><EFBFBD>⪠ <20><><EFBFBD> 㤠<><E3A4A0><EFBFBD><EFBFBD><EFBFBD> <20>뤥<EFBFBD><EBA4A5><EFBFBD><EFBFBD><EFBFBD>
|
2007-03-06 16:53:45 +03:00
|
|
|
|
ed_shift_cl= 1111111111100011b
|
2007-04-13 12:20:30 +04:00
|
|
|
|
ed_shift_mcl= 1111111111111011b
|
2007-03-06 16:53:45 +03:00
|
|
|
|
ed_left_fl= 100000b
|
|
|
|
|
ed_right_fl= 1111111111011111b
|
2007-03-07 11:35:01 +03:00
|
|
|
|
ed_offset_fl= 1000000b
|
|
|
|
|
ed_offset_cl= 1111111110111111b
|
2007-03-06 16:53:45 +03:00
|
|
|
|
ed_insert= 10000000b
|
|
|
|
|
ed_insert_cl= 1111111101111111b
|
2007-03-30 09:32:17 +04:00
|
|
|
|
ed_mouse_on = 100000000b
|
2007-04-02 15:58:44 +04:00
|
|
|
|
ed_mous_adn_b= 100011000b
|
2007-03-30 09:32:17 +04:00
|
|
|
|
ed_mouse_on_off=1111111011111111b
|
2007-03-06 16:53:45 +03:00
|
|
|
|
ed_height=14 ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2008-07-23 16:35:26 +04:00
|
|
|
|
macro draw_edit_boxes start,_end
|
2006-12-13 08:18:25 +03:00
|
|
|
|
{
|
2007-04-13 11:03:50 +04:00
|
|
|
|
mov edi,start
|
2007-04-20 08:19:47 +04:00
|
|
|
|
mov ecx,((_end-start)/ed_struc_size)
|
2006-12-13 08:18:25 +03:00
|
|
|
|
@@:
|
2007-04-13 11:03:50 +04:00
|
|
|
|
call edit_box.draw
|
|
|
|
|
add edi,ed_struc_size
|
|
|
|
|
loop @b
|
2006-12-13 08:18:25 +03:00
|
|
|
|
}
|
|
|
|
|
|
2007-04-20 08:19:47 +04:00
|
|
|
|
macro mouse_edit_boxes start,_end
|
2006-12-13 08:18:25 +03:00
|
|
|
|
{
|
2007-04-13 11:03:50 +04:00
|
|
|
|
mov edi,start
|
2007-04-20 08:19:47 +04:00
|
|
|
|
mov ecx,((_end-start)/ed_struc_size)
|
2006-12-13 08:18:25 +03:00
|
|
|
|
@@:
|
2007-04-13 11:03:50 +04:00
|
|
|
|
call edit_box.mouse
|
|
|
|
|
add edi,ed_struc_size
|
|
|
|
|
loop @b
|
2006-12-13 08:18:25 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
macro key_edit_boxes start,end
|
|
|
|
|
{
|
2007-04-13 11:03:50 +04:00
|
|
|
|
mov edi,start
|
|
|
|
|
mov ecx,((end-start)/ed_struc_size)
|
2006-12-13 08:18:25 +03:00
|
|
|
|
@@:
|
2007-04-13 11:03:50 +04:00
|
|
|
|
call edit_box.key
|
|
|
|
|
add edi,ed_struc_size
|
|
|
|
|
loop @b
|
2006-12-13 08:18:25 +03:00
|
|
|
|
}
|
2008-07-23 16:35:26 +04:00
|
|
|
|
ed_struc_size=72
|
2007-04-13 11:03:50 +04:00
|
|
|
|
struc edit_box width,left,top,color,shift_color,focus_border_color,\
|
|
|
|
|
blur_border_color,text_color,max,text,flags,size,pos
|
2006-12-13 08:18:25 +03:00
|
|
|
|
{
|
|
|
|
|
.width dd width
|
|
|
|
|
.left dd left
|
|
|
|
|
.top dd top
|
|
|
|
|
.color dd color
|
2007-04-13 11:03:50 +04:00
|
|
|
|
.shift_color dd shift_color
|
2006-12-13 08:18:25 +03:00
|
|
|
|
.focus_border_color dd focus_border_color
|
|
|
|
|
.blur_border_color dd blur_border_color
|
|
|
|
|
.text_color dd text_color
|
|
|
|
|
.max dd max
|
2007-01-19 17:36:00 +03:00
|
|
|
|
.text dd text
|
2008-07-23 16:35:26 +04:00
|
|
|
|
.flags dd flags+0
|
2007-03-09 11:41:43 +03:00
|
|
|
|
.size dd size+0
|
2007-04-13 11:03:50 +04:00
|
|
|
|
.pos dd pos+0
|
2006-12-13 08:18:25 +03:00
|
|
|
|
.offset dd 0
|
|
|
|
|
.cl_curs_x dd 0
|
|
|
|
|
.cl_curs_y dd 0
|
2007-03-06 16:53:45 +03:00
|
|
|
|
.shift dd 0
|
|
|
|
|
.shift_old dd 0
|
2006-12-13 08:18:25 +03:00
|
|
|
|
}
|
|
|
|
|
|
2007-03-09 09:25:26 +03:00
|
|
|
|
|
2006-12-13 08:18:25 +03:00
|
|
|
|
macro edit_boxes_set_sys_color start,end,color_table
|
|
|
|
|
{
|
2007-04-13 11:03:50 +04:00
|
|
|
|
mov edi,start
|
|
|
|
|
mov ecx,((end-start)/ed_struc_size)
|
|
|
|
|
mov esi,color_table
|
2006-12-13 08:18:25 +03:00
|
|
|
|
@@:
|
2007-04-13 11:03:50 +04:00
|
|
|
|
mov eax,[esi+36]
|
|
|
|
|
mov ebx,[esi+20]
|
|
|
|
|
mov ed_focus_border_color,eax
|
|
|
|
|
shr bh,1
|
|
|
|
|
shr bl,1
|
|
|
|
|
shr ah,1
|
|
|
|
|
shr al,1
|
|
|
|
|
add ah,bh
|
|
|
|
|
add al,bl
|
|
|
|
|
ror eax,16
|
|
|
|
|
ror ebx,16
|
|
|
|
|
shr bl,1
|
|
|
|
|
shr al,1
|
|
|
|
|
add al,bl
|
|
|
|
|
ror eax,16
|
|
|
|
|
mov ed_blur_border_color,eax
|
|
|
|
|
add edi,ed_struc_size
|
|
|
|
|
loop @b
|
2007-02-01 10:20:59 +03:00
|
|
|
|
}
|
|
|
|
|
|
2008-07-23 16:35:26 +04:00
|
|
|
|
macro draw_edit_box ed_ptr
|
2007-02-01 10:20:59 +03:00
|
|
|
|
{
|
|
|
|
|
mov edi,ed_ptr
|
|
|
|
|
call edit_box.draw
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
macro mouse_edit_box ed_ptr
|
|
|
|
|
{
|
|
|
|
|
mov edi,ed_ptr
|
|
|
|
|
call edit_box.mouse
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
macro key_edit_box ed_ptr
|
|
|
|
|
{
|
|
|
|
|
mov edi,ed_ptr
|
|
|
|
|
call edit_box.key
|
2007-04-20 08:19:47 +04:00
|
|
|
|
}
|
|
|
|
|
macro default_box ed_ptr
|
|
|
|
|
{
|
|
|
|
|
pusha
|
2007-05-10 08:03:05 +04:00
|
|
|
|
; xor eax,eax
|
|
|
|
|
; mov ed_shift_pos,eax
|
|
|
|
|
; mov ed_shift_pos_old,eax
|
|
|
|
|
and word ed_flags,ed_shift_cl
|
|
|
|
|
; mov ed_offset,eax
|
2007-04-20 08:19:47 +04:00
|
|
|
|
popa
|
2006-12-13 08:18:25 +03:00
|
|
|
|
}
|