Subversion Repositories Kolibri OS

Rev

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

Rev 7579 Rev 7583
Line 215... Line 215...
215
;txtBLe db 27
215
;txtBLe db 27
216
 
216
 
217
align 4
217
align 4
Line 218... Line 218...
218
proc draw_panels uses edi, edit:dword
218
proc draw_panels uses eax edx edi, edit:dword
219
	mov edi,[edit]
219
	mov edi,[edit]
220
	cmp ted_panel_id,TED_PANEL_FIND
220
	cmp ted_panel_id,TED_PANEL_FIND
221
	jne @f
221
	jne @f
222
		call p_find
222
		mcall SF_DEFINE_BUTTON,,,0x80000000+200
-
 
223
		mcall ,,,0x80000000+202
-
 
224
		mcall ,,,0x80000000+203
-
 
225
		mcall ,,,0x80000000+204
-
 
226
		call p_find
223
		jmp .end_f
227
		jmp .end_f
224
	@@:
228
	@@:
225
	cmp ted_panel_id,TED_PANEL_REPLACE
229
	cmp ted_panel_id,TED_PANEL_REPLACE
226
	jne @f
230
	jne @f
227
		call p_replace
231
		mcall SF_DEFINE_BUTTON,,,0x80000000+200
-
 
232
		mcall ,,,0x80000000+201
-
 
233
		mcall ,,,0x80000000+204
-
 
234
		call p_replace
228
		jmp .end_f
235
		jmp .end_f
229
	@@:
236
	@@:
230
	cmp ted_panel_id,TED_PANEL_GOTO
237
	cmp ted_panel_id,TED_PANEL_GOTO
231
	jne @f
238
	jne @f
232
		call p_goto
239
		mcall SF_DEFINE_BUTTON,,,0x80000000+200
-
 
240
		mcall ,,,0x80000000+201
-
 
241
		mcall ,,,0x80000000+202
-
 
242
		mcall ,,,0x80000000+203
-
 
243
		call p_goto
233
		jmp .end_f
244
		jmp .end_f
234
	@@:
245
	@@:
235
	cmp ted_panel_id,TED_PANEL_SYNTAX
246
	cmp ted_panel_id,TED_PANEL_SYNTAX
236
	jne @f
247
	jne @f
237
		call p_syntax
248
		mcall SF_DEFINE_BUTTON,,,0x80000000+201
238
		jmp .end_f
-
 
239
	@@:
-
 
240
	push eax edx
-
 
241
		mcall SF_DEFINE_BUTTON,,,0x80000000+200
-
 
242
		mcall ,,,0x80000000+201
249
		mcall ,,,0x80000000+202
243
		mcall ,,,0x80000000+202
-
 
244
		mcall ,,,0x80000000+203
250
		mcall ,,,0x80000000+203
245
		mcall ,,,0x80000000+204
251
		mcall ,,,0x80000000+204
246
	pop edx eax
252
		call p_syntax
247
	.end_f:
253
		;jmp .end_f
-
 
254
	@@:
-
 
255
	.end_f:
248
	ret
256
	ret
249
endp
257
endp
250
 
258
 
Line 251... Line 259...
251
align 4
259
align 4
Line 269... Line 277...
269
 
277
 
Line 270... Line 278...
270
		mov ecx,ted_wnd_t
278
		mov ecx,ted_wnd_t
271
		shl ecx,16
279
		shl ecx,16
272
		add ecx,(93 shl 16)+20
280
		add ecx,(111 shl 16)+20
273
		mcall SF_DEFINE_BUTTON,(5 shl 16)+85,,201,[sc.work_button] ;201 - button id
281
		mcall SF_DEFINE_BUTTON,(5 shl 16)+85,,201,[sc.work_button] ;201 - button id
Line 274... Line 282...
274
 
282
 
275
		mov ebx,(23 shl 16)+7
283
		mov ebx,(23 shl 16)+7
276
		add ebx,ted_wnd_t
284
		add ebx,ted_wnd_t
277
		mov ecx,[sc.work_text]
285
		mov ecx,[sc.work_text]
278
		or ecx,0x80000000
286
		or ecx,0x80000000
Line 279... Line 287...
279
		mcall SF_DRAW_TEXT,,,txtFindCapt
287
		mcall SF_DRAW_TEXT,,,txtFindCapt
280
 
288
 
281
		mov ecx,[sc.work_button_text]
289
		mov ecx,[sc.work_button_text]
282
		or ecx,0x80000000
290
		or ecx,0x80000000
283
		mov ebx,(15 shl 16)+100
291
		mov ebx,(15 shl 16)+118
Line 284... Line 292...
284
		add ebx,ted_wnd_t
292
		add ebx,ted_wnd_t
-
 
293
		mcall ,,,txtFindNext
285
		mcall ,,,txtFindNext
294
 
286
 
295
		stdcall [option_box_draw], opt_grlist1
Line 287... Line 296...
287
		stdcall [option_box_draw], opt_grlist1
296
		stdcall [check_box_draw], ch1
288
	pop edx ecx ebx eax
297
	pop edx ecx ebx eax