Subversion Repositories Kolibri OS

Rev

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

Rev 6358 Rev 6359
Line 1... Line 1...
1
;---------------------------------------------
1
;---------------------------------------------
2
;-------------interraction MOUSE--------------
2
;-------------interraction MOUSE--------------
3
;---------------------------------------------
3
;---------------------------------------------
4
mouse:
4
mouse:
-
 
5
	stdcall [kmainmenu_dispatch_cursorevent], [main_menu]
-
 
6
 
5
	or ecx,-1
7
	or ecx,-1
6
	mcall SF_THREAD_INFO,procinfo
8
	mcall SF_THREAD_INFO,procinfo
Line 7... Line 9...
7
	
9
	
8
	mov	eax,[procinfo+70] ;staus of window
10
	mov	eax,[procinfo+70] ;staus of window
Line 12... Line 14...
12
	call GetMouseCoordinats
14
	call GetMouseCoordinats
13
;panel
15
;panel
14
	mov	edx,[Window_SizeX]
16
	mov	edx,[Window_SizeX]
15
	sub	edx,5
17
	sub	edx,5
Line 16... Line 18...
16
 
18
 
17
	cmp	ebx,20
19
	;cmp ebx,0
Line 18... Line 20...
18
	jle	no_panel
20
	;jle no_panel
19
 
21
 
Line 20... Line 22...
20
	cmp	ebx,20+15
22
	cmp ebx,ci_panel_y_pos
21
	jae	no_panel
23
	jae no_panel
Line 22... Line 24...
22
 
24
 
23
	cmp	eax,5
25
	cmp	eax,5
Line 24... Line 26...
24
	jle	no_panel
26
	jle	no_panel
25
 
-
 
26
	cmp	eax,edx
-
 
27
	jae	no_panel
27
 
Line 28... Line 28...
28
 
28
	cmp	eax,edx
29
	call GetMouseCoordinats
29
	jae	no_panel
30
	mov	[counter],7
30
 
Line 31... Line -...
31
	mov	edi,panel_text
-
 
32
	jmp	panel_interraction
-
 
33
 
31
	call GetMouseCoordinats
Line 34... Line 32...
34
no_panel:
32
	jmp	panel_interraction
35
	cmp	[Panel_flag],0
33
 
36
	jz	no_redraw_panel
34
no_panel: