Rev 539 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 539 | Rev 872 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | red: ; redraw |
28 | red: ; redraw |
29 | call draw_window ; at first, draw the window |
29 | call draw_window ; at first, draw the window |
Line 30... | Line 30... | ||
30 | 30 | ||
Line 31... | Line 31... | ||
31 | still: |
31 | still: |
32 | - | ||
Line 33... | Line 32... | ||
33 | mov eax,10 ; wait here for event |
32 | |
34 | mcall |
33 | mcall 10 ; wait here for event |
35 | 34 | ||
36 | dec eax ; redraw request ? |
35 | dec eax ; redraw request ? |
Line 37... | Line 36... | ||
37 | jz red |
36 | jz red |
38 | dec eax ; key in buffer ? |
37 | dec eax ; key in buffer ? |
39 | jz key |
- | |
Line 40... | Line 38... | ||
40 | 38 | jz key |
|
Line 41... | Line 39... | ||
41 | button: ; button |
39 | |
42 | mov al,17 ; get id |
40 | button: ; button |
Line 121... | Line 119... | ||
121 | sub eax,65 |
119 | sub eax,65 |
122 | mov ebx,9 |
120 | mov ebx,9 |
123 | sub ebx,eax |
121 | sub ebx,eax |
124 | imul ebx,70 |
122 | imul ebx,70 |
125 | push ebx |
123 | push ebx |
126 | mov eax,14 |
- | |
127 | mcall |
124 | mcall 14 |
128 | pop ebx |
125 | pop ebx |
129 | shr eax,16 |
126 | shr eax,16 |
130 | sub eax,51+15 |
127 | sub eax,51+15 |
131 | sub eax,ebx |
128 | sub eax,ebx |
132 | x_done: |
129 | x_done: |
Line 557... | Line 554... | ||
557 | ; ********************************************* |
554 | ; ********************************************* |
Line 558... | Line 555... | ||
558 | 555 | ||
Line 559... | Line 556... | ||
559 | 556 | ||
560 | draw_window: |
- | |
561 | - | ||
Line 562... | Line 557... | ||
562 | mov eax,12 ; function 12:tell os about windowdraw |
557 | draw_window: |
563 | mov ebx,1 ; 1, start of draw |
- | |
564 | mcall |
558 | |
565 | 559 | mcall 12,1 ; function 12,1 - tell os about start of draw window |
|
566 | ; DRAW WINDOW |
560 | |
567 | xor eax,eax |
561 | xor eax,eax ; DRAW WINDOW |
568 | mov ebx,210*65536+300 |
562 | mov ebx,210*65536+300 |
Line 678... | Line 672... | ||
678 | cmp [edx],byte 'x' |
672 | cmp [edx],byte 'x' |
679 | jne newline |
673 | jne newline |
Line 680... | Line 674... | ||
680 | 674 | ||
Line 681... | Line 675... | ||
681 | call print_strings |
675 | call print_strings |
682 | - | ||
683 | mov eax,12 ; function 12:tell os about windowdraw |
- | |
Line 684... | Line 676... | ||
684 | mov ebx,2 ; 2, end of draw |
676 | |
Line 685... | Line 677... | ||
685 | mcall |
677 | mcall 12,2 ; function 12,2 - tell os about end of draw window |
Line 700... | Line 692... | ||
700 | 692 | ||
Line 701... | Line 693... | ||
701 | icons_reserved: |
693 | icons_reserved: |
Line 702... | Line -... | ||
702 | - | ||
703 | times 10 db ' ' |
694 | |
704 | 695 | times 10 db ' ' |
|
705 | 696 | ||
706 | text: |
697 | text: |
707 | db 0,0,0,0, 'Click on icon position to edit ' |
698 | db 0,0,0,0, 'Click on icon position to edit ' |