forked from KolibriOS/kolibrios
new style for cursor position in 'tree_list'
git-svn-id: svn://kolibrios.org@7508 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -220,8 +220,6 @@ macro check_boxes_set_sys_color2 start,end,color_table
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;Basic macros for use OptionBox ;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
@@ -272,6 +270,7 @@ macro option_boxes_set_sys_color color_table,group
|
||||
cmp edi,0
|
||||
jne @b
|
||||
}
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;Basic macros for use TreeList ;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
@@ -336,6 +335,7 @@ tl_on_press equ dword[edi+84] ;㪠
|
||||
tl_key_no_edit equ 1b ;í«¥¬¥â ¥«ì§ï । ªâ¨à®¢ âì ª« ¢¨ âãॠ(¨§¬¥ïâì ã஢¨, 㤠«ïâì)
|
||||
tl_draw_par_line equ 10b ;à¨á®¢ âì «¨¨¨ ª த¨â¥«ì᪮¬ã ã§«ã
|
||||
tl_list_box_mode equ 100b ;áâ¨«ì ¥ ®â®¡à ¦ ¥â ã஢¨ (ª ª ¢ ListBox ¢á¥ ®¤®£® ã஢ï)
|
||||
tl_cursor_pos_limited equ 8 ;¯¥à¥¬¥é¥¨¥ ªãàá®à ®£à ¨ç¥® áãé¥áâ¢ãî騬¨ ã§« ¬¨
|
||||
|
||||
;ª®áâ âë ¤«ï äãªæ¨©
|
||||
tl_err_save_memory_size equ 10b ;¥ å¢ â ¥â ¯ ¬ï⨠¤«ï á®åà ¥¨ï í«¥¬¥â
|
||||
|
||||
@@ -266,6 +266,12 @@ pop ebx eax
|
||||
|
||||
mov ecx,eax
|
||||
call tl_get_node_count ;eax = node count
|
||||
bt tl_style,3 ;tl_cursor_pos_limited
|
||||
jnc @f
|
||||
or eax,eax
|
||||
jz @f
|
||||
dec eax ;¥á«¨ ªãàá®à áâ ¥â áãé¥áâ¢ãî騥 ã§«ë
|
||||
@@:
|
||||
cmp eax,ecx
|
||||
jl @f
|
||||
mov eax,ecx ;¥á«¨ ªãàá®à ¥ ¢ë襫 § ¯à¥¤¥«ë ã§«®¢, ¢®ááâ ¢«¨¢ ¥¬ áâ ஥ § 票¥ eax
|
||||
@@ -1549,6 +1555,12 @@ align 4
|
||||
proc tl_cur_next uses eax ebx edi esi, tlist:dword
|
||||
mov edi,[tlist]
|
||||
call tl_get_node_count ;eax = node count
|
||||
bt tl_style,3 ;tl_cursor_pos_limited
|
||||
jnc @f
|
||||
or eax,eax
|
||||
jz @f
|
||||
dec eax ;¥á«¨ ªãàá®à áâ ¥â áãé¥áâ¢ãî騥 ã§«ë
|
||||
@@:
|
||||
cmp tl_cur_pos,eax
|
||||
jge .no_redraw
|
||||
mov esi,tl_box_top
|
||||
@@ -1700,6 +1712,12 @@ proc tl_cur_page_down uses eax ebx ecx edi esi, tlist:dword
|
||||
je .no_redraw
|
||||
mov esi,tl_p_scroll
|
||||
call tl_get_node_count ;eax = node count
|
||||
bt tl_style,3 ;tl_cursor_pos_limited
|
||||
jnc @f
|
||||
or eax,eax
|
||||
jz @f
|
||||
dec eax ;¥á«¨ ªãàá®à áâ ¥â áãé¥áâ¢ãî騥 ã§«ë
|
||||
@@:
|
||||
mov ebx,eax
|
||||
call tl_get_rows_count ;eax = rows count
|
||||
|
||||
|
||||
Reference in New Issue
Block a user