Rev 2102 | Rev 2632 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2102 | Rev 2125 | ||
---|---|---|---|
Line 192... | Line 192... | ||
192 | red_win: |
192 | red_win: |
193 | call draw_window |
193 | call draw_window |
Line 194... | Line 194... | ||
194 | 194 | ||
195 | align 4 |
195 | align 4 |
196 | still: |
- | |
197 | mov eax,10 |
196 | still: |
Line 198... | Line 197... | ||
198 | mcall |
197 | mcall 10 |
199 | 198 | ||
200 | cmp al,1 ;¨§¬. ¯®«®¦¥¨¥ ®ª |
199 | cmp al,1 ;¨§¬¥¨«®áì ¯®«®¦¥¨¥ ®ª |
201 | jz red_win |
200 | jz red_win |
202 | cmp al,2 |
201 | cmp al,2 |
203 | jz key |
202 | jz key |
204 | cmp al,3 |
203 | cmp al,3 |
- | 204 | jz button |
|
- | 205 | cmp al,6 ;¬ëèì |
|
- | 206 | jne @f |
|
- | 207 | mcall 9,procinfo,-1 |
|
205 | jz button |
208 | cmp ax,word[procinfo+4] |
206 | cmp al,6 |
209 | jne @f ;®ª® ¥ ªâ¨¢® |
207 | jz mouse |
210 | jmp mouse |
Line 208... | Line 211... | ||
208 | 211 | @@: |
|
209 | jmp still |
212 | jmp still |
210 | 213 | ||
Line 211... | Line -... | ||
211 | align 4 |
- | |
212 | draw_window: |
- | |
213 | mcall 12,1 |
- | |
214 | 214 | align 4 |
|
215 | xor eax,eax |
215 | draw_window: |
216 | mov ebx,10*65536+485 |
216 | mcall 12,1 |
217 | mov ecx,10*65536+320 |
- | |
218 | mov edx,[sc.work] |
- | |
219 | or edx,0x73000000 |
217 | |
Line 220... | Line 218... | ||
220 | mov edi,hed |
218 | mov edx,[sc.work] |
- | 219 | or edx,0x73000000 |
|
221 | int 0x40 |
220 | mov edi,hed |
Line 222... | Line 221... | ||
222 | 221 | mcall 0,(10 shl 16)+485,(10 shl 16)+320 |
|
223 | mov edi,tedit0 |
222 | |
224 | 223 | mcall 9,procinfo,-1 |
|
225 | mcall 9,procinfo,-1 |
224 | mov edi,tedit0 ;§ 票¥ edi 㦮 ¤«ï EvSize ¨ ted_wnd_t |
Line 288... | Line 287... | ||
288 | stdcall [tl_mouse], tree1 |
287 | stdcall [tl_mouse], tree1 |
289 | ;----------------------------------------------- |
288 | ;----------------------------------------------- |
290 | .menu_bar_1: |
289 | .menu_bar_1: |
291 | mov [menu_data_1.get_mouse_flag],1 |
290 | mov [menu_data_1.get_mouse_flag],1 |
292 | ; mouse event for Menu 1 |
291 | ; mouse event for Menu 1 |
293 | push dword menu_data_1 |
292 | stdcall [menu_bar_mouse],dword menu_data_1 |
294 | call [menu_bar_mouse] |
- | |
295 | cmp [menu_data_1.click],dword 1 |
293 | cmp dword[menu_data_1.click],1 |
296 | jne .mnu_1 |
294 | jne .mnu_1 |
297 | cmp [menu_data_1.cursor_out],dword 4 |
295 | cmp dword[menu_data_1.cursor_out],4 |
298 | je button.exit |
296 | je button.exit |
299 | cmp [menu_data_1.cursor_out],dword 3 |
297 | cmp dword[menu_data_1.cursor_out],3 |
300 | jne @f |
298 | jne @f |
301 | stdcall [ted_but_save_file], tedit0,run_file_70,[edit1.text] |
299 | stdcall [ted_but_save_file], tedit0,run_file_70,[edit1.text] |
302 | @@: |
300 | @@: |
303 | cmp [menu_data_1.cursor_out],dword 2 |
301 | cmp dword[menu_data_1.cursor_out],2 |
304 | jne @f |
302 | jne @f |
305 | call ted_but_open_file |
303 | call ted_but_open_file |
306 | @@: |
304 | @@: |
307 | cmp [menu_data_1.cursor_out],dword 1 |
305 | cmp dword[menu_data_1.cursor_out],1 |
308 | jne @f |
306 | jne @f |
309 | call ted_but_new_file |
307 | call ted_but_new_file |
310 | @@: |
308 | @@: |
311 | ;cmp [menu_data_1.cursor_out],dword 0 |
- | |
312 | ;jne @f |
- | |
313 | .mnu_1: |
309 | .mnu_1: |
314 | jmp still |
310 | jmp still |
315 | ;--------------------------------------------------------------------- |
311 | ;--------------------------------------------------------------------- |
Line 316... | Line 312... | ||
316 | 312 |