Subversion Repositories Kolibri OS

Rev

Rev 7903 | Rev 7905 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7903 Rev 7904
Line 82... Line 82...
82
        mov     ed_height,eax
82
        mov     ed_height,eax
83
        call    .draw_border
83
        call    .draw_border
84
.draw_bg_cursor_text:
84
.draw_bg_cursor_text:
85
        call    .check_offset
85
        call    .check_offset
86
        call    .draw_bg
86
        call    .draw_bg
-
 
87
        test    word ed_flags,ed_focus ; for unfocused controls =>
-
 
88
        jz      .draw_cursor_text      ; do not draw selection(named shift)
87
        call    .draw_shift
89
        call    .draw_shift
88
.draw_cursor_text:
90
.draw_cursor_text:
89
        call    .draw_text
91
        call    .draw_text
90
        test    word ed_flags,ed_focus
92
        test    word ed_flags,ed_focus ; and dosn`t draw cursor
91
        jz      .editbox_exit
93
        jz      .editbox_exit
92
        call    .draw_cursor
94
        call    .draw_cursor
93
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
95
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
94
;Ž¡é¨© ¢ë室 ¨§ editbox ¤«ï ¢á¥å ä㭪権 ¨ ¯®áâ ®¡à ¡®â稪®¢;;
96
;Ž¡é¨© ¢ë室 ¨§ editbox ¤«ï ¢á¥å ä㭪権 ¨ ¯®áâ ®¡à ¡®â稪®¢;;
95
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
97
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 165... Line 167...
165
        cmp     ah,SCAN_RWIN_RELEASE
167
        cmp     ah,SCAN_RWIN_RELEASE
166
        jz      edit_box.editbox_exit
168
        jz      edit_box.editbox_exit
167
; restore ascii code
169
; restore ascii code
168
        rol     eax,8
170
        rol     eax,8
169
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
171
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
170
;‡ £«ã誠 ­  ®¡à ¡®âªã ª« ¢¨è ¢¢¥àå ¨ ¢­¨§ â.¥. ¯à¨ ®¡­ à㦥­¨¨ íâ¨å ª®¤®¢ ¯à®¨á室¨â ¢ë室 ¨§ ®¡à ¡®â稪 
172
;‡ £«ã誠 ­  ®¡à ¡®âªã ª« ¢¨è ¢¢¥àå ¨ ¢­¨§ â.¥. ¯à¨ ®¡­ à㦥­¨¨
-
 
173
;íâ¨å ª®¤®¢ ¯à®¨á室¨â ¢ë室 ¨§ ®¡à ¡®â稪 
171
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
174
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
172
use_key_no_process   up,down,esc,enter,tab,numl,capsl,scrolll,pgup,pgdown
175
use_key_no_process   up,down,esc,enter,tab,numl,capsl,scrolll,pgup,pgdown
173
;--- ­ ¦ â  ¤àã£ ï ª« ¢¨è  ---
176
;--- ­ ¦ â  ¤àã£ ï ª« ¢¨è  ---
174
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
177
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
175
;à®¢¥àª  ãáâ ­®¢«¥­ «¨ ä« £ ¯à¨ ª®â®à®¬ ­ã¦­® ¢ë¢®¤¨âì ⮫쪮 æ¨äàë ¢ ­ã¦­®¬ ¡®ªá¥
178
;à®¢¥àª  ãáâ ­®¢«¥­ «¨ ä« £ ¯à¨ ª®â®à®¬ ­ã¦­® ¢ë¢®¤¨âì 
-
 
179
;⮫쪮 æ¨äàë ¢ ­ã¦­®¬ ¡®ªá¥
176
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
180
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
177
        test    word ed_flags,ed_figure_only  ; ⮫쪮 æ¨äàë?
181
        test    word ed_flags,ed_figure_only  ; ⮫쪮 æ¨äàë?
178
        jz      @f
182
        jz      @f
179
        cmp     ah,'0'
183
        cmp     ah,'0'
180
        jb      edit_box.editbox_exit
184
        jb      edit_box.editbox_exit
Line 717... Line 721...
717
        call    edit_box.draw_text
721
        call    edit_box.draw_text
718
        call    edit_box.draw_cursor
722
        call    edit_box.draw_cursor
719
; ¯à®æ¥¤ãà  ãáâ ­®¢ª¨ 䮪ãá 
723
; ¯à®æ¥¤ãà  ãáâ ­®¢ª¨ 䮪ãá 
720
        jmp     edit_box_mouse.drc
724
        jmp     edit_box_mouse.drc
Line -... Line 725...
-
 
725
        
-
 
726
edit_box_mouse._remove_selection:
-
 
727
        and     word ed_flags,ed_shift_cl
-
 
728
        jmp     edit_box.draw_bg_cursor_text
721
 
729
 
722
edit_box_mouse._blur:
730
edit_box_mouse._blur:
723
        test    word ed_flags,ed_always_focus
731
        test    word ed_flags,ed_always_focus
724
        jne     edit_box.editbox_exit
732
        jne     edit_box_mouse._remove_selection
725
        btr     word ed_flags,1 ; ¥á«¨ ­¥ ¢ 䮪ãá¥, ¢ë室¨¬
733
        btr     ed_flags, bsf ed_focus ;if focused then remove focus, otherwise exit
726
        jnc     edit_box.editbox_exit
734
        jnc     edit_box_mouse._remove_selection
727
        mov     ebp,ed_color
735
        mov     ebp,ed_color
728
        call    edit_box.clear_cursor
736
        call    edit_box.clear_cursor
729
edit_box_mouse.drc:
737
edit_box_mouse.drc:
730
        call    edit_box.draw_border
738
        call    edit_box.draw_border
Line 731... Line 739...
731
        jmp     edit_box.editbox_exit
739
        jmp     edit_box_mouse._remove_selection
732
 
740
 
733
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
741
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
734
;Ž¡é¨¥ ä㭪樨 ®¡à ¡®âª¨
742
;Ž¡é¨¥ ä㭪樨 ®¡à ¡®âª¨