Subversion Repositories Kolibri OS

Rev

Rev 6371 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6371 Rev 6385
Line 9... Line 9...
9
	
9
	
10
	mov	eax,[procinfo+70] ;staus of window
10
	mov	eax,[procinfo+70] ;staus of window
11
	test eax,100b
11
	test eax,100b
Line -... Line 12...
-
 
12
	jne	still
-
 
13
	
12
	jne	still
14
	call GetMouseClick
13
	
15
 
14
	call GetMouseCoordinats
16
	call GetMouseCoordinats
15
	mov	eax,[MouseX]
17
	mov	eax,[MouseX]
16
	mov	ebx,[MouseY]
18
	mov	ebx,[MouseY]
Line 27... Line 29...
27
	jmp	no_scrollers
29
	jmp	no_scrollers
Line 28... Line 30...
28
 
30
 
29
mouse_scroll:
31
mouse_scroll:
30
	mov	[exit_from_work_arrea],1 ;mouse situated after work arrea
32
	mov	[exit_from_work_arrea],1 ;mouse situated after work arrea
31
;scrollers
33
;scrollers
32
	call GetMouseClick
-
 
33
	cmp	eax,1
34
	cmp [MouseBut],0
Line 34... Line 35...
34
	jne	still
35
	je still
35
 
36
 
36
	call	GetMouseCoordinats
37
	;call GetMouseCoordinats
37
;interraction with horizontal scroller
38
;interraction with horizontal scroller
38
	mov	eax,[Scroll1CoordinatX]
39
	mov	eax,[Scroll1CoordinatX]
39
	mov	ebx,[Scroll1CoordinatY]
40
	mov	ebx,[Scroll1CoordinatY]
Line 177... Line 178...
177
	;set cursor for current instrument
178
	;set cursor for current instrument
178
	mov eax,CursorsID
179
	mov eax,CursorsID
179
	mov ebx,[Current_instrument]
180
	mov ebx,[Current_instrument]
180
	call set_cursor
181
	call set_cursor
Line 181... Line 182...
181
 
182
 
182
	call	GetMouseClick
-
 
183
	test	eax,eax
183
	cmp [MouseBut],0
Line 184... Line 184...
184
	jz	no_use_instruments
184
	je no_use_instruments
185
 
185
 
186
	cmp	[Activate_instrument],0
186
	cmp	[Activate_instrument],0
187
	jnz	no_undo___
187
	jne	no_undo___
188
;------------begin copy for undo-------------
188
;------------begin copy for undo-------------
189
;copy bufer_0 -> bufer_2
189
;copy bufer_0 -> bufer_2
190
	mov edi,[PointerToCopyPicture2]
190
	mov edi,[PointerToCopyPicture2]
Line 208... Line 208...
208
	mov [PointerToCopyPicture],eax
208
	mov [PointerToCopyPicture],eax
209
	mov [PointerToCopyPicture2],ebx
209
	mov [PointerToCopyPicture2],ebx
210
;--------------end copy for undo-------------
210
;--------------end copy for undo-------------
211
no_undo___:
211
no_undo___:
212
	call TakeButtonInstruments
212
	call TakeButtonInstruments
213
 
-
 
214
	jmp still
213
	jmp still
Line 215... Line 214...
215
 
214
 
216
no_use_instruments:
-
 
217
	mov	eax,[Current_instrument]
215
no_use_instruments:
218
	and	[Activate_instrument],0
216
	and	[Activate_instrument],0
219
	jmp	still
217
	jmp	still
220
;-----------------------------------------------
218
;-----------------------------------------------
221
;---------get mouse cordinats-------------------
219
;---------get mouse cordinats-------------------
Line 230... Line 228...
230
	ret
228
	ret
231
;------------------------------------------------
229
;------------------------------------------------
232
;-------get mouse attributs----------------------
230
;-------get mouse attributs----------------------
233
;------------------------------------------------
231
;------------------------------------------------
234
GetMouseClick:
232
GetMouseClick:
235
	mcall SF_MOUSE_GET,SSF_BUTTON
233
	mcall SF_MOUSE_GET,SSF_BUTTON_EXT
-
 
234
	mov [MouseBut],eax
236
	ret
235
	ret
237
236