2007-04-20 06:19:47 +02:00
|
|
|
|
; SEE YOU File FAQ.txt and HISTORY. Good Like!
|
2007-04-13 09:03:50 +02:00
|
|
|
|
;;;;;;;;;;;;;;;;;;
|
|
|
|
|
include 'editbox.mac' ;<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> editbox
|
|
|
|
|
;;;;;;;;;;;;;;;;;;
|
2008-07-23 14:35:26 +02:00
|
|
|
|
macro use_edit_box
|
2006-12-13 06:18:25 +01:00
|
|
|
|
{
|
|
|
|
|
edit_box:
|
2007-04-13 09:03:50 +02:00
|
|
|
|
ed_width equ [edi] ;<EFBFBD><EFBFBD>ਭ<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_left equ [edi+4] ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>
|
|
|
|
|
ed_top equ [edi+8] ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>
|
|
|
|
|
ed_color equ [edi+12] ;梥<EFBFBD> 䮭<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2007-04-20 06:19:47 +02:00
|
|
|
|
shift_color equ [edi+16] ;=0x6a9480
|
2007-04-13 09:03:50 +02:00
|
|
|
|
ed_focus_border_color equ [edi+20] ;梥<EFBFBD> ࠬ<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_blur_border_color equ [edi+24] ;梥<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⨢<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_text_color equ [edi+28] ;梥<EFBFBD> ⥪<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_max equ [edi+32] ;<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>
|
|
|
|
|
ed_text equ [edi+36] ;㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_flags equ [edi+40] ;䫠<EFBFBD><EFBFBD>
|
2008-07-23 14:35:26 +02:00
|
|
|
|
ed_size equ [edi+44] ;<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD> ᨬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_pos equ [edi+48] ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_offset equ [edi+52] ;ᬥ饭<EFBFBD><EFBFBD>
|
|
|
|
|
cl_curs_x equ [edi+56] ;<EFBFBD>।<EFBFBD><EFBFBD><EFBFBD>饥 <EFBFBD><EFBFBD><EFBFBD>न<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD>
|
|
|
|
|
cl_curs_y equ [edi+60] ;<EFBFBD>।<EFBFBD><EFBFBD><EFBFBD>饥 <EFBFBD><EFBFBD><EFBFBD>न<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD>
|
|
|
|
|
ed_shift_pos equ [edi+64] ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_shift_pos_old equ [edi+68] ;<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2006-12-13 06:18:25 +01:00
|
|
|
|
;==========================================================
|
|
|
|
|
;=== <EFBFBD><EFBFBD><EFBFBD>楤<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᮢ<EFBFBD><EFBFBD> =================================
|
|
|
|
|
;==========================================================
|
|
|
|
|
.draw:
|
2008-07-23 14:35:26 +02:00
|
|
|
|
pushad
|
2006-12-13 06:18:25 +01:00
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD>㥬 ࠬ<EFBFBD><EFBFBD> ---
|
2007-04-13 09:03:50 +02:00
|
|
|
|
call .draw_border ; <EFBFBD>㭪<EFBFBD><EFBFBD><EFBFBD> <EFBFBD>⠡<EFBFBD><EFBFBD>쭠
|
2006-12-13 06:18:25 +01:00
|
|
|
|
.draw_bg_cursor_text:
|
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>塞 ᬥ饭<EFBFBD><EFBFBD>, <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> ---
|
2007-04-13 09:03:50 +02:00
|
|
|
|
call .check_offset ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>樨 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>⠡<EFBFBD><EFBFBD>쭠
|
2006-12-13 06:18:25 +01:00
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD>㥬 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>७<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ---
|
2007-04-13 09:03:50 +02:00
|
|
|
|
call .draw_bg ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᮢ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>אַ㣮<EFBFBD>쭨<EFBFBD> ࠡ<EFBFBD>祩 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2007-03-09 07:25:26 +01:00
|
|
|
|
;---- <EFBFBD><EFBFBD><EFBFBD>㥬 <EFBFBD>뤥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD> shift <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2007-04-13 09:03:50 +02:00
|
|
|
|
call .draw_shift
|
2006-12-13 06:18:25 +01:00
|
|
|
|
.draw_cursor_text:
|
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD>㥬 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ---
|
2007-04-13 09:03:50 +02:00
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ᮢ<EFBFBD><EFBFBD><EFBFBD> ----
|
|
|
|
|
test word ed_flags,ed_focus
|
|
|
|
|
je @f
|
|
|
|
|
call .draw_cursor
|
2006-12-13 06:18:25 +01:00
|
|
|
|
@@:
|
2007-04-13 09:03:50 +02:00
|
|
|
|
call .draw_text
|
2007-05-18 05:52:13 +02:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;<EFBFBD><EFBFBD>騩 <EFBFBD><EFBFBD>室 <EFBFBD><EFBFBD> editbox <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>㭪権 <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ࠡ<EFBFBD><EFBFBD>稪<EFBFBD><EFBFBD>
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
.editbox_exit:
|
2007-04-13 09:03:50 +02:00
|
|
|
|
edit_ex
|
2007-01-26 12:20:00 +01:00
|
|
|
|
;==========================================================
|
|
|
|
|
;=== <EFBFBD><EFBFBD>ࠡ<EFBFBD>⪠ <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> =================================
|
|
|
|
|
;==========================================================
|
|
|
|
|
.key:
|
2008-07-23 14:35:26 +02:00
|
|
|
|
pushad
|
2007-04-13 09:03:50 +02:00
|
|
|
|
test word ed_flags,ed_focus ; <EFBFBD> <EFBFBD><EFBFBD> <EFBFBD> 䮪<EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD>室<EFBFBD><EFBFBD>
|
2007-05-18 05:52:13 +02:00
|
|
|
|
je .editbox_exit
|
2007-09-24 14:45:36 +02:00
|
|
|
|
test word ed_flags,ed_mouse_on
|
|
|
|
|
jne .editbox_exit
|
|
|
|
|
|
2007-05-10 06:03:05 +02:00
|
|
|
|
;<EFBFBD><EFBFBD>ઠ <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> shift ?
|
2007-04-13 09:03:50 +02:00
|
|
|
|
call .check_shift
|
2006-12-13 06:18:25 +01:00
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD>塞, <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> --------------------------------
|
|
|
|
|
;----------------------------------------------------------
|
2007-05-10 06:03:05 +02:00
|
|
|
|
use_key_process backspase,delete,left,right,home,end,insert
|
2006-12-13 06:18:25 +01:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2007-05-10 06:03:05 +02: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>㦥<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>
|
2007-04-13 09:03:50 +02:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2009-02-13 09:46:15 +01:00
|
|
|
|
use_key_no_process up,down,esc,enter,tab,numl,capsl,scrolll
|
2006-12-13 06:18:25 +01:00
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>㣠<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ---
|
2007-05-10 06:03:05 +02: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><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>
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
use_key_figures_only
|
2007-05-18 05:52:13 +02:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;<EFBFBD><EFBFBD>ઠ <EFBFBD><EFBFBD> shift <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
are_key_shift_press
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
; <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>⪠
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
are_key_cur_end
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;<EFBFBD><EFBFBD>ࠡ<EFBFBD>⪠ <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> insert,delete.backspase,home,end,left,right
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
use_work_key
|
2006-12-13 06:18:25 +01:00
|
|
|
|
;==========================================================
|
|
|
|
|
;=== <EFBFBD><EFBFBD>ࠡ<EFBFBD>⪠ <EFBFBD><EFBFBD><EFBFBD><EFBFBD> =======================================
|
|
|
|
|
;==========================================================
|
|
|
|
|
.mouse:
|
2008-07-23 14:35:26 +02:00
|
|
|
|
pushad
|
2007-04-13 09:03:50 +02:00
|
|
|
|
;debug
|
2006-12-13 06:18:25 +01:00
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ﭨ<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> -----------------------
|
2007-04-13 09:03:50 +02:00
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
mcall 37,2
|
2006-12-13 06:18:25 +01:00
|
|
|
|
;----------------------------------------------------------
|
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD>塞 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ﭨ<EFBFBD> ----------------------------------
|
|
|
|
|
;----------------------------------------------------------
|
2007-04-13 09:03:50 +02: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 05:52:13 +02:00
|
|
|
|
jmp .editbox_exit
|
2007-04-13 09:03:50 +02:00
|
|
|
|
.mouse_left_button:
|
2007-04-04 08:40:20 +02:00
|
|
|
|
;----------------------------------------------------------
|
2007-04-13 09:03:50 +02: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><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2007-04-04 08:40:20 +02:00
|
|
|
|
;----------------------------------------------------------
|
2007-04-13 09:03:50 +02:00
|
|
|
|
mov eax,dword [mouse_flag]
|
|
|
|
|
test eax,eax
|
|
|
|
|
jz @f
|
|
|
|
|
cmp eax,edi
|
|
|
|
|
je @f
|
|
|
|
|
jmp ._blur
|
2006-12-13 06:18:25 +01:00
|
|
|
|
;----------------------------------------------------------
|
2008-07-23 14:35:26 +02:00
|
|
|
|
;--- <EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>न<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>⭮<EFBFBD><EFBFBD>⥫쭮 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2006-12-13 06:18:25 +01:00
|
|
|
|
;----------------------------------------------------------
|
2008-07-23 14:35:26 +02:00
|
|
|
|
@@: mcall 37,1
|
|
|
|
|
|
2007-05-18 05:52:13 +02: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>
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2008-07-23 14:35:26 +02:00
|
|
|
|
use_work_mouse
|
2007-05-10 06:03:05 +02:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;<EFBFBD><EFBFBD>騥 <EFBFBD>㭪樨 <EFBFBD><EFBFBD>ࠡ<EFBFBD>⪨
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
use_general_func
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;<EFBFBD>㭪樨 <EFBFBD><EFBFBD><EFBFBD> ࠡ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD> key
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
use_key_func
|
2007-05-18 05:52:13 +02:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;<EFBFBD>㭪樨 <EFBFBD><EFBFBD><EFBFBD> ࠡ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD> mouse
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2008-07-23 14:35:26 +02:00
|
|
|
|
use_mouse_func
|
2006-12-13 06:18:25 +01:00
|
|
|
|
}
|
2007-05-18 05:52:13 +02:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;Bit mask from editbox
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2007-03-07 09:35:01 +01:00
|
|
|
|
ed_figure_only= 1000000000000000b ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᨬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2007-03-06 14:53:45 +01:00
|
|
|
|
ed_always_focus= 100000000000000b
|
2007-03-07 09:35:01 +01:00
|
|
|
|
ed_focus= 10b ;䮪<EFBFBD><EFBFBD> <EFBFBD>ਫ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2007-03-06 14:53:45 +01:00
|
|
|
|
ed_shift_on= 1000b ;<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> shift,<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> shift
|
2007-03-30 07:32:17 +02:00
|
|
|
|
ed_shift_on_off=1111111111110111b
|
2007-03-06 14:53:45 +01:00
|
|
|
|
ed_shift= 100b ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>⨨ <EFBFBD><EFBFBD> shift <EFBFBD>.<EFBFBD>. <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
ed_shift_off= 1111111111111011b
|
|
|
|
|
ed_shift_bac= 10000b ;<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>⪨ <EFBFBD>뤥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> shift <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>
|
2007-03-09 12:07:59 +01:00
|
|
|
|
ed_shift_bac_cl=1111111111101111b ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>⪠ <EFBFBD><EFBFBD><EFBFBD> 㤠<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>뤥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2007-03-06 14:53:45 +01:00
|
|
|
|
ed_shift_cl= 1111111111100011b
|
2007-04-13 10:20:30 +02:00
|
|
|
|
ed_shift_mcl= 1111111111111011b
|
2007-03-06 14:53:45 +01:00
|
|
|
|
ed_left_fl= 100000b
|
|
|
|
|
ed_right_fl= 1111111111011111b
|
2007-03-07 09:35:01 +01:00
|
|
|
|
ed_offset_fl= 1000000b
|
|
|
|
|
ed_offset_cl= 1111111110111111b
|
2007-03-06 14:53:45 +01:00
|
|
|
|
ed_insert= 10000000b
|
|
|
|
|
ed_insert_cl= 1111111101111111b
|
2007-03-30 07:32:17 +02:00
|
|
|
|
ed_mouse_on = 100000000b
|
2007-04-02 13:58:44 +02:00
|
|
|
|
ed_mous_adn_b= 100011000b
|
2007-03-30 07:32:17 +02:00
|
|
|
|
ed_mouse_on_off=1111111011111111b
|
2007-03-06 14:53:45 +01:00
|
|
|
|
ed_height=14 ; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2008-07-23 14:35:26 +02:00
|
|
|
|
macro draw_edit_boxes start,_end
|
2006-12-13 06:18:25 +01:00
|
|
|
|
{
|
2007-04-13 09:03:50 +02:00
|
|
|
|
mov edi,start
|
2007-04-20 06:19:47 +02:00
|
|
|
|
mov ecx,((_end-start)/ed_struc_size)
|
2006-12-13 06:18:25 +01:00
|
|
|
|
@@:
|
2007-04-13 09:03:50 +02:00
|
|
|
|
call edit_box.draw
|
|
|
|
|
add edi,ed_struc_size
|
|
|
|
|
loop @b
|
2006-12-13 06:18:25 +01:00
|
|
|
|
}
|
|
|
|
|
|
2007-04-20 06:19:47 +02:00
|
|
|
|
macro mouse_edit_boxes start,_end
|
2006-12-13 06:18:25 +01:00
|
|
|
|
{
|
2007-04-13 09:03:50 +02:00
|
|
|
|
mov edi,start
|
2007-04-20 06:19:47 +02:00
|
|
|
|
mov ecx,((_end-start)/ed_struc_size)
|
2006-12-13 06:18:25 +01:00
|
|
|
|
@@:
|
2007-04-13 09:03:50 +02:00
|
|
|
|
call edit_box.mouse
|
|
|
|
|
add edi,ed_struc_size
|
|
|
|
|
loop @b
|
2006-12-13 06:18:25 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
macro key_edit_boxes start,end
|
|
|
|
|
{
|
2007-04-13 09:03:50 +02:00
|
|
|
|
mov edi,start
|
|
|
|
|
mov ecx,((end-start)/ed_struc_size)
|
2006-12-13 06:18:25 +01:00
|
|
|
|
@@:
|
2007-04-13 09:03:50 +02:00
|
|
|
|
call edit_box.key
|
|
|
|
|
add edi,ed_struc_size
|
|
|
|
|
loop @b
|
2006-12-13 06:18:25 +01:00
|
|
|
|
}
|
2008-07-23 14:35:26 +02:00
|
|
|
|
ed_struc_size=72
|
2007-04-13 09:03:50 +02: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 06:18:25 +01:00
|
|
|
|
{
|
|
|
|
|
.width dd width
|
|
|
|
|
.left dd left
|
|
|
|
|
.top dd top
|
|
|
|
|
.color dd color
|
2007-04-13 09:03:50 +02:00
|
|
|
|
.shift_color dd shift_color
|
2006-12-13 06:18:25 +01: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 15:36:00 +01:00
|
|
|
|
.text dd text
|
2008-07-23 14:35:26 +02:00
|
|
|
|
.flags dd flags+0
|
2007-03-09 09:41:43 +01:00
|
|
|
|
.size dd size+0
|
2007-04-13 09:03:50 +02:00
|
|
|
|
.pos dd pos+0
|
2006-12-13 06:18:25 +01:00
|
|
|
|
.offset dd 0
|
|
|
|
|
.cl_curs_x dd 0
|
|
|
|
|
.cl_curs_y dd 0
|
2007-03-06 14:53:45 +01:00
|
|
|
|
.shift dd 0
|
|
|
|
|
.shift_old dd 0
|
2006-12-13 06:18:25 +01:00
|
|
|
|
}
|
|
|
|
|
|
2007-03-09 07:25:26 +01:00
|
|
|
|
|
2006-12-13 06:18:25 +01:00
|
|
|
|
macro edit_boxes_set_sys_color start,end,color_table
|
|
|
|
|
{
|
2007-04-13 09:03:50 +02:00
|
|
|
|
mov edi,start
|
|
|
|
|
mov ecx,((end-start)/ed_struc_size)
|
|
|
|
|
mov esi,color_table
|
2006-12-13 06:18:25 +01:00
|
|
|
|
@@:
|
2007-04-13 09:03:50 +02: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 08:20:59 +01:00
|
|
|
|
}
|
|
|
|
|
|
2008-07-23 14:35:26 +02:00
|
|
|
|
macro draw_edit_box ed_ptr
|
2007-02-01 08:20:59 +01: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 06:19:47 +02:00
|
|
|
|
}
|
|
|
|
|
macro default_box ed_ptr
|
|
|
|
|
{
|
|
|
|
|
pusha
|
2007-05-10 06:03:05 +02: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 06:19:47 +02:00
|
|
|
|
popa
|
2006-12-13 06:18:25 +01:00
|
|
|
|
}
|