194,21 → 194,18 |
|
align 4 |
still: |
mcall 10 |
mov eax,10 |
mcall |
|
cmp al,1 ;¨§¬¥¨«®áì ¯®«®¦¥¨¥ ®ª |
cmp al,1 ;¨§¬. ¯®«®¦¥¨¥ ®ª |
jz red_win |
cmp al,2 |
jz key |
cmp al,3 |
jz button |
cmp al,6 ;¬ëèì |
jne @f |
mcall 9,procinfo,-1 |
cmp ax,word[procinfo+4] |
jne @f ;®ª® ¥ ªâ¨¢® |
jmp mouse |
@@: |
cmp al,6 |
jz mouse |
|
jmp still |
|
align 4 |
215,14 → 212,18 |
draw_window: |
mcall 12,1 |
|
xor eax,eax |
mov ebx,10*65536+485 |
mov ecx,10*65536+320 |
mov edx,[sc.work] |
or edx,0x73000000 |
mov edi,hed |
mcall 0,(10 shl 16)+485,(10 shl 16)+320 |
int 0x40 |
|
mov edi,tedit0 |
|
mcall 9,procinfo,-1 |
mov edi,tedit0 ;§ 票¥ edi 㦮 ¤«ï EvSize ¨ ted_wnd_t |
call EvSize |
stdcall EvSize,edi |
|
mov eax,13 ;¢¥à娩 ¯àאַ㣮«ì¨ª, ¤«ï ®ç¨á⪨ ¢¥à奩 ¯ ¥«¨ |
xor ebx,ebx |
289,23 → 290,26 |
.menu_bar_1: |
mov [menu_data_1.get_mouse_flag],1 |
; mouse event for Menu 1 |
stdcall [menu_bar_mouse],dword menu_data_1 |
cmp dword[menu_data_1.click],1 |
push dword menu_data_1 |
call [menu_bar_mouse] |
cmp [menu_data_1.click],dword 1 |
jne .mnu_1 |
cmp dword[menu_data_1.cursor_out],4 |
cmp [menu_data_1.cursor_out],dword 4 |
je button.exit |
cmp dword[menu_data_1.cursor_out],3 |
cmp [menu_data_1.cursor_out],dword 3 |
jne @f |
stdcall [ted_but_save_file], tedit0,run_file_70,[edit1.text] |
@@: |
cmp dword[menu_data_1.cursor_out],2 |
cmp [menu_data_1.cursor_out],dword 2 |
jne @f |
call ted_but_open_file |
@@: |
cmp dword[menu_data_1.cursor_out],1 |
cmp [menu_data_1.cursor_out],dword 1 |
jne @f |
call ted_but_new_file |
@@: |
;cmp [menu_data_1.cursor_out],dword 0 |
;jne @f |
.mnu_1: |
jmp still |
;--------------------------------------------------------------------- |