forked from KolibriOS/kolibrios
Icon - deactivate the window after click (working to kernel r.2244 and above)
git-svn-id: svn://kolibrios.org@2245 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
6e5e6b3c02
commit
608f4346d0
13
programs/system/icon/trunk/build.sh
Normal file
13
programs/system/icon/trunk/build.sh
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# This script does for Linux the same as build.bat for DOS,
|
||||||
|
# it compiles the current KolibriOS applications
|
||||||
|
|
||||||
|
echo "lang fix en"
|
||||||
|
echo "lang fix en" > lang.inc
|
||||||
|
fasm -m 16384 icon.asm icon
|
||||||
|
kpack icon
|
||||||
|
rm -f lang.inc
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
|||||||
@erase lang.inc
|
@erase lang.inc
|
||||||
@echo lang fix en >lang.inc
|
@echo lang fix en >lang.inc
|
||||||
@fasm icon.asm icon
|
@fasm -m 16384 icon.asm icon
|
||||||
|
@kpack icon
|
||||||
@erase lang.inc
|
@erase lang.inc
|
||||||
@pause
|
@pause
|
@ -1,5 +1,6 @@
|
|||||||
@erase lang.inc
|
@erase lang.inc
|
||||||
@echo lang fix ge >lang.inc
|
@echo lang fix ge >lang.inc
|
||||||
@fasm icon.asm icon
|
@fasm -m 16384 icon.asm icon
|
||||||
|
@kpack icon
|
||||||
@erase lang.inc
|
@erase lang.inc
|
||||||
@pause
|
@pause
|
@ -1,5 +1,6 @@
|
|||||||
@erase lang.inc
|
@erase lang.inc
|
||||||
@echo lang fix ru >lang.inc
|
@echo lang fix ru >lang.inc
|
||||||
@fasm icon.asm icon
|
@fasm -m 16384 icon.asm icon
|
||||||
|
@kpack icon
|
||||||
@erase lang.inc
|
@erase lang.inc
|
||||||
@pause
|
@pause
|
@ -955,7 +955,6 @@ thread:
|
|||||||
mcall
|
mcall
|
||||||
|
|
||||||
still2:
|
still2:
|
||||||
|
|
||||||
mov eax,10
|
mov eax,10
|
||||||
mcall
|
mcall
|
||||||
|
|
||||||
@ -991,7 +990,8 @@ still2:
|
|||||||
@@: call get_bg_info
|
@@: call get_bg_info
|
||||||
mcall 67,[ebp+0],[ebp+4],51,51
|
mcall 67,[ebp+0],[ebp+4],51,51
|
||||||
|
|
||||||
.lp1: call draw_window2
|
.lp1:
|
||||||
|
call draw_window2
|
||||||
jmp still2
|
jmp still2
|
||||||
|
|
||||||
button2:
|
button2:
|
||||||
@ -1001,6 +1001,18 @@ still2:
|
|||||||
cmp ah, 2
|
cmp ah, 2
|
||||||
jnz still2
|
jnz still2
|
||||||
|
|
||||||
|
mcall 9,I_END,-1
|
||||||
|
mov ecx,[ebx+30] ; PID
|
||||||
|
mcall 18,21
|
||||||
|
mov edx,eax ; SLOT
|
||||||
|
mcall 18,7
|
||||||
|
cmp edx,eax ; compare with active SLOT
|
||||||
|
jne @f
|
||||||
|
mov ecx,edx
|
||||||
|
mcall 18,1 ; set to down
|
||||||
|
call draw_window2
|
||||||
|
@@:
|
||||||
|
|
||||||
mov esi,[ebp+8]
|
mov esi,[ebp+8]
|
||||||
mov ebx,1
|
mov ebx,1
|
||||||
mov edi,finfo.path
|
mov edi,finfo.path
|
||||||
@ -1352,7 +1364,6 @@ create_thread_event db 0
|
|||||||
image dd 0x3000
|
image dd 0x3000
|
||||||
|
|
||||||
I_Param:
|
I_Param:
|
||||||
|
|
||||||
icon_data = I_END+0x1400
|
icon_data = I_END+0x1400
|
||||||
process_table = I_END+0x2400
|
process_table = I_END+0x2400
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user