Subversion Repositories Kolibri OS

Rev

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

Rev 6083 Rev 6130
Line 47... Line 47...
47
open_b rb 560
47
open_b rb 560
Line 48... Line 48...
48
 
48
 
49
;
49
;
50
main_wnd_height equ 460 ;¢ëá®â  £« ¢­®£® ®ª­  ¯à®£à ¬¬ë
50
main_wnd_height equ 460 ;¢ëá®â  £« ¢­®£® ®ª­  ¯à®£à ¬¬ë
51
fn_toolbar db 'toolbar.png',0
51
fn_toolbar db 'toolbar.png',0
52
IMAGE_TOOLBAR_ICON_SIZE equ 16*16*3
52
IMAGE_TOOLBAR_ICON_SIZE equ 21*21*3
53
IMAGE_TOOLBAR_SIZE equ IMAGE_TOOLBAR_ICON_SIZE*12+54
53
IMAGE_TOOLBAR_SIZE equ IMAGE_TOOLBAR_ICON_SIZE*12+54
54
image_data_toolbar dd 0
54
image_data_toolbar dd 0
55
;
55
;
56
TREE_ICON_SYS16_BMP_SIZE equ IMAGE_TOOLBAR_ICON_SIZE*11+54 ;à §¬¥à bmp ä ©«  á á¨á⥬­ë¬¨ ¨ª®­ª ¬¨
56
TREE_ICON_SYS16_BMP_SIZE equ IMAGE_TOOLBAR_ICON_SIZE*11+54 ;à §¬¥à bmp ä ©«  á á¨á⥬­ë¬¨ ¨ª®­ª ¬¨
Line 455... Line 455...
455
	mov word[w_scr_t1.x_pos],ax
455
	mov word[w_scr_t1.x_pos],ax
456
	add ax,16+5
456
	add ax,16+5
457
	mov word[buf_0.l],ax
457
	mov word[buf_0.l],ax
Line 458... Line 458...
458
 
458
 
459
	mov esi,[sc.work_button]
459
	mov esi,[sc.work_button]
460
	mcall SF_DEFINE_BUTTON,(5 shl 16)+20,(5 shl 16)+20,3
460
	mcall SF_DEFINE_BUTTON,(5 shl 16)+20,(5 shl 16)+20,0x40000003
Line 461... Line 461...
461
	mcall ,(30 shl 16)+20,,4
461
	mcall ,(30 shl 16)+20,,0x40000004
462
 
462
 
463
	cmp byte[can_save],0
463
	cmp byte[can_save],0
464
	je @f
464
	je @f
465
		mcall ,(55 shl 16)+20,,5
465
		mcall ,(55 shl 16)+20,,0x40000005
466
	@@:
466
	@@:
Line 467... Line 467...
467
	mcall ,(85 shl 16)+20,,6 ;®ª­® á ª®®à¤¨­ â ¬¨
467
	mcall ,(85 shl 16)+20,,0x40000006 ;®ª­® á ª®®à¤¨­ â ¬¨
Line 468... Line 468...
468
	mcall ,(110 shl 16)+20,,7 ;㤠«¥­¨¥ ¡«®ª 
468
	mcall ,(110 shl 16)+20,,0x40000007 ;㤠«¥­¨¥ ¡«®ª 
469
 
469
 
470
	mcall SF_PUT_IMAGE,[image_data_toolbar],(16 shl 16)+16,(7 shl 16)+7 ;new
470
	mcall SF_PUT_IMAGE,[image_data_toolbar],(21 shl 16)+21,(5 shl 16)+5 ;new
Line 471... Line 471...
471
 
471
 
472
	add ebx,IMAGE_TOOLBAR_ICON_SIZE
472
	add ebx,IMAGE_TOOLBAR_ICON_SIZE
473
	mov edx,(32 shl 16)+7 ;open
473
	mov edx,(30 shl 16)+5 ;open
474
	int 0x40
474
	int 0x40
475
 
475
 
476
	cmp byte[can_save],0
476
	cmp byte[can_save],0
477
	je @f
477
	je @f
Line 478... Line 478...
478
		add ebx,IMAGE_TOOLBAR_ICON_SIZE
478
		add ebx,IMAGE_TOOLBAR_ICON_SIZE
479
		mov edx,(57 shl 16)+7 ;save
479
		mov edx,(55 shl 16)+5 ;save
480
		int 0x40
480
		int 0x40
Line 481... Line 481...
481
		sub ebx,IMAGE_TOOLBAR_ICON_SIZE
481
		sub ebx,IMAGE_TOOLBAR_ICON_SIZE
482
	@@:
482
	@@:
483
 
483
 
Line 484... Line 484...
484
	add ebx,4*IMAGE_TOOLBAR_ICON_SIZE
484
	add ebx,4*IMAGE_TOOLBAR_ICON_SIZE
485
	mov edx,(87 shl 16)+7
485
	mov edx,(85 shl 16)+5