DOCKY: add "ashow" - always show (do not hide) flag support
git-svn-id: svn://kolibrios.org@5475 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
1c2d34b341
commit
7c431a8f82
@ -21,6 +21,8 @@ ini_data:
|
||||
db "location", 0
|
||||
.fsize_name:
|
||||
db "fsize", 0
|
||||
.ashow_name:
|
||||
db "ashow", 0
|
||||
;-------------------------------------------------------------------------------
|
||||
load_lib_start:
|
||||
lib1 l_libs img.name, \
|
||||
|
@ -135,6 +135,8 @@ dock_items:
|
||||
rd 1
|
||||
.fsize:
|
||||
rb 1
|
||||
.ashow:
|
||||
rb 1
|
||||
;-------------------------------------------------------------------------------
|
||||
buf_128:
|
||||
rb 128
|
||||
|
@ -34,6 +34,8 @@ main:
|
||||
mov [dock_items.location], eax
|
||||
invoke ini.get_int, ini_data.file_name, ini_data.settings_name, ini_data.fsize_name, 0
|
||||
mov [dock_items.fsize], eax
|
||||
invoke ini.get_int, ini_data.file_name, ini_data.settings_name, ini_data.ashow_name, 0
|
||||
mov [dock_items.ashow], eax
|
||||
|
||||
invoke ini.sections, ini_data.file_name, sections_callback
|
||||
|
||||
@ -265,6 +267,24 @@ main:
|
||||
|
||||
mov eax, [win.y_hdn]
|
||||
mov [win.y], eax
|
||||
|
||||
cmp byte[dock_items.ashow],1
|
||||
jne .not_ashow
|
||||
|
||||
mov eax, [win.width_opn]
|
||||
mov [win.width], eax
|
||||
|
||||
mov eax, [win.x_opn]
|
||||
mov [win.x], eax
|
||||
|
||||
mov eax, [win.height_opn]
|
||||
mov [win.height], eax
|
||||
|
||||
mov eax, [win.y_opn]
|
||||
mov [win.y], eax
|
||||
|
||||
.not_ashow:
|
||||
|
||||
|
||||
;-------------------------------------------------------------------------------
|
||||
; ==== START ====
|
||||
@ -531,8 +551,12 @@ event_mouse:
|
||||
mov eax, [win.y_opn]
|
||||
mov [win.y], eax
|
||||
|
||||
|
||||
cmp byte[dock_items.ashow],1
|
||||
je .change_nothing
|
||||
mcall 67, [win.x], [win.y], [win.width], [win.height]
|
||||
|
||||
.change_nothing:
|
||||
call DRAW_WINDOW
|
||||
call DRAW_SELECTION
|
||||
jmp main_loop
|
||||
@ -549,6 +573,9 @@ wnd_hide:
|
||||
mov byte[win.state], 0
|
||||
mov byte[win.button_index], -1
|
||||
|
||||
cmp byte[dock_items.ashow],1
|
||||
je .do_no_hide
|
||||
|
||||
mov eax, [win.width_hdn]
|
||||
mov [win.width], eax
|
||||
|
||||
@ -563,6 +590,7 @@ wnd_hide:
|
||||
|
||||
mcall 67, [win.x], [win.y], [win.width], [win.height]
|
||||
|
||||
.do_no_hide:
|
||||
call DRAW_WINDOW
|
||||
jmp main_loop
|
||||
;-------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user