Rev 404 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 404 | Rev 439 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | ; |
|
1 | ; |
2 | ; |
2 | ; |
3 | ; |
3 | ; |
4 | ; |
4 | ; |
5 | ; |
5 | ; |
6 | ; |
Line 264... | Line 265... | ||
264 | push ebx |
265 | push ebx |
265 | call .get_n ;¯®«ã稬 ª®«-¢® ᨬ¢®«®¢ ¢ ¯ ॠॣ¨áâ஢ edx:eax |
266 | call .get_n ;¯®«ã稬 ª®«-¢® ᨬ¢®«®¢ ¢ ¯ ॠॣ¨áâ஢ edx:eax |
266 | pop ebx |
267 | pop ebx |
267 | mov edx,ebx |
268 | mov edx,ebx |
268 | add edx,eax ;ed_offset+width editbox |
269 | add edx,eax ;ed_offset+width editbox |
- | 270 | inc edx ;¥®¡å®¤¨¬® ¤«ï ®¬ «ì®£® ¯®«®¦¥¨ï ªãàá®à ¢ ªà ©¥© «¥¢®© ¯®§¨æ¨¨ |
|
269 | cmp edx,ecx |
271 | cmp edx,ecx |
270 | ja @f |
272 | ja @f |
Line 271... | Line 273... | ||
271 | 273 | ||
272 | mov edx,ed_size |
274 | mov edx,ed_size |
Line 554... | Line 556... | ||
554 | ;®¡à ¡®âª ®ç¨á⪨, ¯à¨ «¥¢®¬ - ¯à ¢®¬ ¤¢¨¦¥¨¨ ¢ë¤¥«¥¨ï |
556 | ;®¡à ¡®âª ®ç¨á⪨, ¯à¨ «¥¢®¬ - ¯à ¢®¬ ¤¢¨¦¥¨¨ ¢ë¤¥«¥¨ï |
555 | ;¤«ï ®¡à ¡®âª¨ áïâ¨ï ¢ë¤¥«¥¨ï |
557 | ;¤«ï ®¡à ¡®âª¨ áïâ¨ï ¢ë¤¥«¥¨ï |
556 | ;¢å®¤ë¥ ¯ à ¬¥âàë ebp=color ebx=ed_shift_pos |
558 | ;¢å®¤ë¥ ¯ à ¬¥âàë ebp=color ebx=ed_shift_pos |
557 | mov eax,dword ed_pos |
559 | mov eax,dword ed_pos |
558 | cmp eax,ebx |
560 | cmp eax,ebx |
- | 561 | ||
559 | jae .sh_n |
562 | jae .sh_n |
560 | push eax ;¬¥ì襥 ¢ eax |
563 | push eax ;¬¥ì襥 ¢ eax |
561 | push ebx ;¡®«ì襥 |
564 | push ebx ;¡®«ì襥 |
562 | jmp .sh_n1 |
565 | jmp .sh_n1 |
563 | ;¥á«¨ ¨ ç¥ |
566 | ;¥á«¨ ¨ ç¥ |
Line 897... | Line 900... | ||
897 | ;---------------------------------------------------------- |
900 | ;---------------------------------------------------------- |
898 | ;--- ¯à®¢¥à塞 á®áâ®ï¨¥ ---------------------------------- |
901 | ;--- ¯à®¢¥à塞 á®áâ®ï¨¥ ---------------------------------- |
899 | ;---------------------------------------------------------- |
902 | ;---------------------------------------------------------- |
900 | test eax,1 |
903 | test eax,1 |
901 | jnz .mouse_left_button |
904 | jnz .mouse_left_button |
- | 905 | and word ed_flags,ed_mouse_on_off |
|
902 | popa |
906 | popa |
903 | ret |
907 | ret |
Line 904... | Line 908... | ||
904 | 908 | ||
905 | .mouse_left_button: |
909 | .mouse_left_button: |
Line 954... | Line 958... | ||
954 | mov ebx,dword ed_shift_pos |
958 | mov ebx,dword ed_shift_pos |
955 | push eax |
959 | push eax |
956 | call .sh_cl_ |
960 | call .sh_cl_ |
957 | and word ed_flags,ed_shift_bac_cl |
961 | and word ed_flags,ed_shift_bac_cl |
958 | pop eax |
962 | pop eax |
959 | - | ||
960 | @@: call .check_shift ;¯à®¢¥à¨¬ ¦ â «¨ shift |
- | |
961 | 963 | @@: |
|
962 | test word ed_flags,ed_shift |
- | |
963 | je ._msh_exit |
- | |
964 | test word ed_flags,ed_shift_on |
964 | test word ed_flags,ed_mouse_on |
965 | jne @f |
965 | jne @f |
Line 966... | Line 966... | ||
966 | 966 | ||
967 | push dword ed_pos |
967 | mov dword ed_shift_pos,eax |
968 | pop dword ed_shift_pos |
968 | or word ed_flags,ed_mouse_on |
- | 969 | mov dword ed_pos,eax |
|
969 | or word ed_flags,ed_shift_on |
970 | jmp .m_sh |
- | 971 | @@: |
|
- | 972 | cmp eax,dword ed_shift_pos ;¥á«¨ ¯®§¨æ¨¨ ¥ ¨§¬¥¨«¨áì |
|
970 | @@: |
973 | je @f |
971 | mov ed_pos,eax |
974 | mov ed_pos,eax |
972 | mov ebp,dword shift_color |
975 | mov ebp,dword shift_color |
973 | mov ebx,dword ed_shift_pos |
976 | mov ebx,dword ed_shift_pos |
974 | call .sh_cl_ |
977 | call .sh_cl_ |
975 | or word ed_flags,ed_shift_bac ;ãáâ ®¢¨¬ ¡¨â çâ® ¬ë ¢ë¤¥«¨«¨ |
- | |
976 | jmp .m_sh |
- | |
977 | ._msh_exit: |
- | |
978 | mov ed_pos,eax |
- | |
Line 979... | Line 978... | ||
979 | mov dword ed_shift_pos,eax |
978 | or word ed_flags,ed_mous_adn_b ;ãáâ ®¢¨¬ ¡¨â çâ® ¬ë ¢ë¤¥«¨«¨ |
980 | 979 | ||
981 | .m_sh: call .draw_text |
- | |
982 | call .draw_cursor |
- | |
983 | - | ||
984 | 980 | .m_sh: call .draw_text |
|
985 | and word ed_flags,ed_shift_off ;¢ëª«î稬 ¢ «î¡®¬ á«ãç ¥ shift |
981 | call .draw_cursor |
986 | ;---------------------------------------------------------- |
982 | ;---------------------------------------------------------- |
987 | ;--- ¯à®æ¥¤ãà ãáâ ®¢ª¨ 䮪ãá --------------------------- |
983 | ;--- ¯à®æ¥¤ãà ãáâ ®¢ª¨ 䮪ãá --------------------------- |
988 | ;---------------------------------------------------------- |
984 | ;---------------------------------------------------------- |
989 | bts word ed_flags,1 |
- | |
990 | jc @f |
985 | bts word ed_flags,1 |
991 | call .draw_cursor |
986 | jc @f |
992 | jmp .drc |
987 | jmp .drc |
993 | ._blur: |
988 | ._blur: |
994 | test word ed_flags,ed_always_focus |
989 | test word ed_flags,ed_always_focus |
Line 1019... | Line 1014... | ||
1019 | } |
1014 | } |
1020 | ed_figure_only= 1000000000000000b ;®¤¨ ᨬ¢®«ë |
1015 | ed_figure_only= 1000000000000000b ;®¤¨ ᨬ¢®«ë |
1021 | ed_always_focus= 100000000000000b |
1016 | ed_always_focus= 100000000000000b |
1022 | ed_focus= 10b ;䮪ãá ¯à¨«®¦¥¨ï |
1017 | ed_focus= 10b ;䮪ãá ¯à¨«®¦¥¨ï |
1023 | ed_shift_on= 1000b ;¥á«¨ ¥ ãáâ ®¢«¥ -§ ç¨â ¢¯¥à¢ë¥ ¦ â shift,¥á«¨ ¡ë« ãáâ ®¢«¥, § ç¨â ¬ë 㦥 çâ® - â® ¤¥« «¨ 㤥ন¢ ï shift |
1018 | ed_shift_on= 1000b ;¥á«¨ ¥ ãáâ ®¢«¥ -§ ç¨â ¢¯¥à¢ë¥ ¦ â shift,¥á«¨ ¡ë« ãáâ ®¢«¥, § ç¨â ¬ë 㦥 çâ® - â® ¤¥« «¨ 㤥ন¢ ï shift |
- | 1019 | ed_shift_on_off=1111111111110111b |
|
1024 | ed_shift= 100b ;¢ª«îç ¥âáï ¯à¨ ¦ ⨨ shift â.¥. ¥á«¨ ¦¨¬ î |
1020 | ed_shift= 100b ;¢ª«îç ¥âáï ¯à¨ ¦ ⨨ shift â.¥. ¥á«¨ ¦¨¬ î |
1025 | ed_shift_off= 1111111111111011b |
1021 | ed_shift_off= 1111111111111011b |
1026 | ed_shift_bac= 10000b ;¡¨â ¤«ï ®ç¨á⪨ ¢ë¤¥«¥®£® shift â.¥. ¯à¨ ãáâ ®¢ª¥ £®¢®à¨â çâ® ¥áâì ¢ë¤¥«¥¨¥ |
1022 | ed_shift_bac= 10000b ;¡¨â ¤«ï ®ç¨á⪨ ¢ë¤¥«¥®£® shift â.¥. ¯à¨ ãáâ ®¢ª¥ £®¢®à¨â çâ® ¥áâì ¢ë¤¥«¥¨¥ |
1027 | ed_shift_bac_cl=1111111111101111b ;®ç¨á⪠¯à¨ 㤠«¥¨¨ ¢ë¤¥«¥¨ï |
1023 | ed_shift_bac_cl=1111111111101111b ;®ç¨á⪠¯à¨ 㤠«¥¨¨ ¢ë¤¥«¥¨ï |
1028 | ed_shift_cl= 1111111111100011b |
1024 | ed_shift_cl= 1111111111100011b |
Line 1030... | Line 1026... | ||
1030 | ed_right_fl= 1111111111011111b |
1026 | ed_right_fl= 1111111111011111b |
1031 | ed_offset_fl= 1000000b |
1027 | ed_offset_fl= 1000000b |
1032 | ed_offset_cl= 1111111110111111b |
1028 | ed_offset_cl= 1111111110111111b |
1033 | ed_insert= 10000000b |
1029 | ed_insert= 10000000b |
1034 | ed_insert_cl= 1111111101111111b |
1030 | ed_insert_cl= 1111111101111111b |
- | 1031 | ed_mouse_on = 100000000b |
|
- | 1032 | ed_mous_adn_b= 100001000b |
|
- | 1033 | ed_mouse_on_off=1111111011111111b |
|
1035 | ed_height=14 ; ¢ëá®â |
1034 | ed_height=14 ; ¢ëá®â |
1036 | shift_color=0x6a9480 |
1035 | shift_color=0x6a9480 |
1037 | macro draw_edit_boxes start,end |
1036 | macro draw_edit_boxes start,end |
1038 | { |
1037 | { |
1039 | mov edi,start |
1038 | mov edi,start |